my local network is connected to internet with dial-up DSL.
linux Gateway: eth0: 192.168.10.10, ppp0
Windows web server: 192.168.10.88:80
I want to enable access from "outside" to the local web server by using iptables.
I use following rules but it doesn't work.
iptables -A PREROUTING -t nat -p tcp -i ppp0 --dport 80 -j DNAT --to 192.168.10.88:80
iptables -t nat -A POSTROUTING -d 192.168.10.88 -p tcp --dport 80 -j SNAT --to 192.168.10.10
Can anybody help me to find out what is wrong with these rules?
By the way, with other iptables rules I can successully enable the access from the local network to internet and block some ports like telnet and ftp.