Re: iptables natting

2005-07-12 Thread Graham Smith
> | iptables -A FORWARD -i eth0 -o eth1 -d 192.168.0.10 -p tcp -j ACCEPT > | > | iptables -t nat -I PREROUTING -p tcp -i eth0 --dport 8080 -j DNAT > | --to-destination 192.168.0.10 > > Change this to: > > iptables -t nat -I PREROUTING -p tcp -i eth0 --dport 8080 -d YOURPUBLICIP > -j DNAT --to-desti

Re: iptables natting

2005-07-12 Thread Dave Ewart
On Tuesday, 12.07.2005 at 15:35 +0100, Graham Smith wrote: > I think the problem is that the redirect is to my public IP address > and I am on a machine inside the network. I'm pretty sure that if I > was outside the network this would work fine. (Haven't read all your details abov, but just an o

iptables natting

2005-07-12 Thread Graham Smith
Hi folks, I've got a bit of a problem with setting up forwarding on my firewall and I can't seem to figure out what I am doing wrong. I have a tomcat server running on port 8080 on a machine in my network. I have set up the following rules so that the outside world can get to it: iptables -A F