Where to add iptables rules...?
Posted: Fri Apr 11, 2014 5:41 pm
Greetings,
I wish to add the following iptables entries:
Where should i add them to make them persistent?
P.s: i tried etc/rc.local but it gets flushed after some time.
I wish to add the following iptables entries:
Code: Select all
iptables -t nat -A PREROUTING -d 8.8.8.8 -j DNAT --to-destination 107.20.195.51
iptables -t nat -A PREROUTING -d 8.8.4.4 -j DNAT --to-destination 107.20.190.171
P.s: i tried etc/rc.local but it gets flushed after some time.