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....