How to make iptables persistent after a reboot and therafter
Posted: Thu Apr 03, 2014 11:27 pm
Greetings,
I am trying to make those two iptables lines Persistent after a reboot
So i added them to the Etc/rc.local file
After rebooting, i check the status with "iptables -t nat -L PREROUTING -v" and the 2 lines are present in my iptable. All is good.
However, after some time....they disapear! Looks like there is a job in gargoyle rebuilding the iptables and clearing my custom lines....Any idea what's happening there?
I use this to watch netflix US on chromecast from canada. It works fine even after a reboot, then after some time netflix stops working, that's how i saw that the config was flushed after a while....
I am trying to make those two iptables lines Persistent after a reboot
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
Code: Select all
# Put your custom commands here that should be executed once
# the system init finished. By default this file does nothing.
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
exit 0
However, after some time....they disapear! Looks like there is a job in gargoyle rebuilding the iptables and clearing my custom lines....Any idea what's happening there?
I use this to watch netflix US on chromecast from canada. It works fine even after a reboot, then after some time netflix stops working, that's how i saw that the config was flushed after a while....