Hello, i would like to find a way, to revert ip level rooting i have done on a server of mine. A friend helped me with the following commands, to redirect traffic from 80 to 8080. Nevertheless, it needs to be rerun after server is restarted. Now i will go for standart apache2 configuration. How could i revert that ip redirection?
The commands used to do the trick of redirections, are the following (ip addresses are dummy) $ iptables -t nat -A POSTROUTING -o eth0 -j MASQUERADE $ iptables -t nat -A PREROUTING -p tcp -i eth0 -d 192.168.111.11 --dport 80 -j DNAT --to 192.168.111.11:8080 $ iptables -A FORWARD -p tcp -i eth0 -d 192.168.111.11 --dport 8080 -j ACCEPT I want to revert the effect of those comamnds.
Thanx a lot in advance