Router: Linksys e3000
Firmware: E3000 Ext (for Linksys E3000 ONLY!)
I have 5 leased static IP addresses from Comcast. I would like to point one of those (x.x.x.09) to my ftp server (192.168.x.25)
on my lan and x.x.x.10 to my web server (192.168.x.30). I followed the example shown in the tutorial making the appropriate changes to the address, saved the commands, and then rebooted. But it doesn't work.
I have confirmed the ftp and web server are working by connecting to it from another machine on the lan. I don't know if it matters but I use only sftp so port 23 is the one I'm worried about. The web server uses several ports obviously. Anyway,
here's what I have entered in the Administration->Scripts->Firewall tab.
/usr/sbin/ip addr add x.x.x.09/30 dev vlan1 /usr/sbin/ip addr add x.x.x.10/30 dev vlan1 /usr/sbin/iptables -t nat -I PREROUTING -d x.x.x.09 -j DNAT --to-destination 192.168.x.25 /usr/sbin/iptables -t nat -I PREROUTING -d x.x.x.10 -j DNAT --to-destination 192.168.11.30 /usr/sbin/iptables -I FORWARD -p tcp -d 192.168.x.25 --dport 22 -j ACCEPT /usr/sbin/iptables -I FORWARD -p tcp -d 192.168.x.30 --dport 22 -j ACCEPT /usr/sbin/iptables -t nat -I POSTROUTING 1 -p all -s 192.168.x.25 -j SNAT --to x.x.x.09 /usr/sbin/iptables -t nat -I POSTROUTING 1 -p all -s 192.168.x.30 -j SNAT --to x.x.x.10
Don't I need an ifconfig command in the Init tab as well? Any help would be greatly appreciated.