Hi,
El 19/07/2014 3:19, winetbox escribió:
sorry for being a little out of topic again.
iptables -t nat -A PREROUTING -i eth0 -p tcp --dport 80 -j REDIRECT
--to-port 3129
doesn't seem saved on the machine. when i reboot the system, i will have to
do that again in order the squid to work again. what to do? i'm running
ubuntu 14.04 LTS
--
View this message in context: http://squid-web-proxy-cache.1019090.n4.nabble.com/access-denied-tp4666619p4666988.html
Sent from the Squid - Users mailing list archive at Nabble.com.
You can save your current iptables configuration via this config:
iptables-save > /etc/iptables.conf
Then create a file at /etc/network/if-up.d called for example
'load-iptables' and put this inside:
#!/bin/bash
iptables-restore < /etc/iptables.conf
Then just make it executable running:
chmod u+x /etc/if-up.d/load-iptables
This way each time your network interface brings up it will run this
script and load your iptables rules. Of course, if you change your
iptables rules, you'll have to run again the first command in order to
update the /etc/iptables.conf file.
Regards.