Hello! I desire block sites unnecessary with the Iptables. Which the process ? And for save the commands ?
asked 15 Nov '11, 19:33
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.
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.
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.
By "sites", I'm assuming that you mean "websites", correct? Please clarify your question.
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 > /etc/iptables.rules and then in your /etc/network/interfaces do a pre-up with iptables-restore < /etc/iptables.rules
answered 21 Nov '11, 10:04