[Gllug] port forwarding
Adrian McMenamin
adrian at mcmen.demon.co.uk
Fri Jun 24 10:16:08 UTC 2005
On Fri, 2005-06-24 at 11:10 +0100, t.clarke wrote:
> When I tried it, it
> looked very much as if the incoming packets were being directed to the webserver
> box but the replies were going nowhere. Maybe another rule is needed.
> The rules I used were:
> iptables -A PREROUTING -t nat -i eth0 -p tcp --dport 80 -j DNAT --to \
> 192.168.n.n:80
> iptables -A INPUT -p tcp -m --state NEW --dport 80 -i eth0 -j ACCEPT
>
>
Is Masquerading on? I assume the webserver doesn't have a public ip
address.
--
Gllug mailing list - Gllug at gllug.org.uk
http://lists.gllug.org.uk/mailman/listinfo/gllug
More information about the GLLUG
mailing list