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, 05 Dec 2011 14:04:25 -0500Comment by Ron on Ron's answerhttp://linuxexchange.org/questions/2742/iptables-how-to-block-sites-with-iptables#2755<p>Since I took the time to respond, it'd be nice if you would at least read what I wrote and respond in kind, however, I think like many, you posted, waited a few minutes, and if you didn't get a response, you moved on, thus wasting both our time. You for not reading the replies and posting in kind, and for those who anser, their time is wasted because there is no discourse or discussion. In many cases, I've asked not only provided possible answers on what little information I've been given, but I've also asked for clarification of the question, only to never get a response from the OP at all.</p> <p>When this happens enough, people will not respond simply they don't want to waste their time responding to posts that the OP won't read or care to respond to.</p>RonMon, 05 Dec 2011 14:04:25 -0500http://linuxexchange.org/questions/2742/iptables-how-to-block-sites-with-iptables#2755Answer 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/2747Comment by Joehillen on gshack's questionhttp://linuxexchange.org/questions/2742/iptables-how-to-block-sites-with-iptables#2743<p>Outbound or inbound?</p>JoehillenThu, 17 Nov 2011 19:28:48 -0500http://linuxexchange.org/questions/2742/iptables-how-to-block-sites-with-iptables#2743