OK, I have 2 PHYSICAL NICS, one NIC has 2 IP address and the other one has 1 ip connected to my LAN so I have:
eth0 and eth0:1 (both IP's ARE a public (REAL) IP Addresses (And they both work because i can ping both from the outside)
eth1 for my LAN has 10.1.1.1
I want to forward port 8080 on eth0:1 to one of my Private servers on my LAN. My server is listening on port 8080. So that is already set, I can get to my server on port 8080 from one of my other computers on my LAN.
SOOOOOO, I can't get through my Firwall from the outside, below is part of my rc.firewall script:
$IPTABLES -t nat -A POSTROUTING -o eth0 -j SNAT --to x.x.x.x #my public IP
$IPTABLES -t nat -A PREROUTING -i eth0:1 -p tcp --dport 8080 -j DNAT --to 10.1.1.20:8080
$IPTABLES -A FORWARD -i eth0:1 -o eth1 -p tcp -d 10.1.1.20 --dport 8080 -j ACCEPT
Am i missing something? Where can i look where it rejects the request? I've looked in /var/log/messages file and can't see anything in there.
Please help!?
![Confused](https://www.linuxquestions.org/questions/images/smilies/confused.gif)