Am Montag, den 24.04.2006, 14:06 +0200 schrieb Frank:
> Hi,
>
> I got a iptables rules to allow outside hosts connect to my LAN. For
> example:
> iptables -t nat -A PREROUTING -j DNAT -p tcp --port 8080 --to 192.168.1.2:80
>
> Everyone connecting to me from outside to port 8080 will redirect to
> 192.168.1.2:80 But for transparancy reason I also need to do this from
> the server (work like workstation now and then) where the DNAT rule is
> installed to be DNAT-ed to 192.168.1.2:80 when I connect to port 8080 on
> the server. But it won't
>
If the mentioned server has 192.168.1.2, then use the rule REDIRECT
--to-ports 80
Greets
Chris Scheurer
|