Page 1 of 1

Where to add iptables rules...?

Posted: Fri Apr 11, 2014 5:41 pm
by khisanth
Greetings,

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
Where should i add them to make them persistent?

P.s: i tried etc/rc.local but it gets flushed after some time.