Answers to: Iptables - How to block sites with Iptables.http://linuxexchange.org/questions/2742/iptables-how-to-block-sites-with-iptables<p>Hello! I desire block sites unnecessary with the Iptables. Which the process ? And for save the commands ?</p> <p>Thanks you!</p>enMon, 21 Nov 2011 10:04:15 -0500Answer by Ronhttp://linuxexchange.org/questions/2742/iptables-how-to-block-sites-with-iptables/2747<p>If you want to block certain countries or IP ranges on one computer, then configuring iptables on that specific computer is the way to go.</p> <p>If you want to block certain websites on one computer, then you want to work with the host allow and deny files on that specific computer.</p> <p>If you want to block websites on all computers on the network, then you'd be better off setting up a proxy server like squid and using that instead.</p> <p>By "sites", I'm assuming that you mean "websites", correct? Please clarify your question.</p> <p>As for the save command for iptables, it's iptables-save and iptables-restore. Settings are not saved on reboot, so you need to iptables-save &gt; /etc/iptables.rules and then in your /etc/network/interfaces do a pre-up with iptables-restore &lt; /etc/iptables.rules</p>RonMon, 21 Nov 2011 10:04:15 -0500http://linuxexchange.org/questions/2742/iptables-how-to-block-sites-with-iptables/2747