Hi all,
I've read countless posts on this and still can't seem to figure it out.
Here's my situation.
On my Linux router box I have eth0, which is connected to the internal
network 192.168.0.1, and eth1 which is connected to my cable modem and the
Internet. On a machine in my internal network, 192.168.0.254, I am running a
web server on port 8080 and want to forward connections received on the
Linux box from the Internet to be forwarded to 192.168.0.254:8080, so:
eth1

utside internet:8080 --forward--> eth0:192.168.0.254:8080
No matter what I try, I can't get this to work. I flushed all other rules,
set all the policies to ACCEPT, and here are the rules I'm trying to use to
accomplish the forwarding:
iptables -t nat -A PREROUTING -p tcp -i eth1 -o eth0 -d <internet
IP> --dport 8080 -j DNAT --to 192.168.0.254:8080
iptables -A FORWARD -p tcp -i eth0 -o eth0 -d 192.168.0.254 --dport 8080 -j
ACCEPT
But even with these rules, I just get a 'Connection refused' error.
Can anyone help?
Joe