The only problem is setting up port forwarding, I can't for the life of
me work out how to get iptables to be set up (and just to be certain it
is port forwarding I mean) so that for the internet I am running (for
example) a webserver on port 80, when really it is on an internal machine
on port 8080. I have had several attempts at it, most resulting in bad
things happening in networking, and almost all the help on the net seems
to be for ipfwadm and 2.2.x and 2.0.x kernels.
Please can some one inform me of the 2 lines (I think its 2 one for doing
it and one for allowing it, something like that anyway :-)) which I will
need.
TIA
Toby
This will allow traffic to port 80 on your external card (assuming eth0 is
your external interface):
/sbin/iptables -A INPUT -p tcp -i eth0 --dport 80 -j ACCEPT
This will forward any incoming traffic to port 80 on your external card to
ip 192.168.1.7 port 8080:
/sbin/iptables -t nat -A PREROUTING -p tcp -i eth0 --dport 80 -j DNAT --to
192.168.1.7:8080
/Cheers
"Toby Gray" <toby...@ntlworld.com> wrote in message
news:QMeb7.7631$hs5.1...@news2-win.server.ntlworld.com...