Re: iptables Forwarding problem

From: Jacob Heider (lord-jacob_at_comcast.net)
Date: 10/29/03


Date: Wed, 29 Oct 2003 01:32:37 GMT

On Tue, 28 Oct 2003 23:40:40 +0100, Arne Modersohn wrote:

> Hello,
> I want to forward every incoming connection (TCP) on Port 8080 to the
> IP-Adress 192.168.2.10
> After reading the manuals and some tutorials I used this command:
>
> iptables -A PREROUTING -t nat -p tcp --dport 8080 -j DNAT --to
> 192.168.2.10
>
> I get no errors, but it don't work.
>
> Anyone know whats going wrong?
>
> Thank you!

RH displays ip forwarding by default. Add

net.ipv4.ip_forward = 1

to /etc/sysctl.conf. For this change to take place without a reboot, also
do:

echo 1 >/proc/sys/net/ipv4/ip_forward

Jacob



Relevant Pages

  • iptables Forwarding problem
    ... After reading the manuals and some tutorials I used this command: ...
    (alt.os.linux.redhat)
  • Re: check my own ip number ?
    ... On comp.unix.shell, in, "Marek ... > is it possible to check my own ip number with a certain command ... But reading the manuals of these commands I don't ...
    (comp.unix.shell)
  • Re: Man vs. Info: documenting the software
    ... S> search with a single search command is more useful to me. ... And again, I already addressed this: Manuals like that, sure, make them ... And this is why the GNU attitude is harmful; ... for which the documentation is in an awful state. ...
    (comp.unix.shell)
  • Re: A Few Questions and Observations
    ... Reading ability is not required ... of crap vehicles aren't death traps if nobody has died yet. ... read your various owner's manuals from cover-to-cover? ... they have become so reliable (as compared to a car from ...
    (rec.autos.makers.vw.watercooled)
  • [opensuse] Re: Re: How to get tty stdout to a file?
    ... hard time understanding the manuals. ... command name. ... I've dealt with *NIX documentation for so long that documentation for ... other systems, even Windows, seems difficult to understand. ...
    (SuSE)