| Linux | Security | Debian | Slax | Tiny Core | Health |
|
Iptables 1 Iptables 3 Iptables 4 Iptables 9 Erase Everything from a Hard Drive |
Iptables 3Start the Firewall AutomaticallyYou have seen how to set up a firewall, but each time you turn the computer off, the firewall settings are lost. The next step is to set it up so it starts automatically each time the computer is turned on. Using the Text Editor, after the other lines, add the line:
This tells iptables to save the rules in the file "/etc/iptables.rules." You can use any file name, and any directory. You should now have:
Copy and paste this to the Root Terminal. Iptables has now saved the rules, but you need to tell the computer where to find them when it starts. To do this you need to add a line to the file "/etc/network/interfaces." Open the file "/etc/network/interfaces" with a Root Text Editor. Add the line:
Save the file. If you have used a different name for your file, use that name here. The Iptables firewall will now start every time the computer is turned on. Check and see. Turn the computer off and restart. Open the terminal and type:
If you have done everything correctly, you will see the Iptables rules. You have a firewall. If you are happy with a very simple firewall, you can leave it as it is. The way it is so far, it may prevent access to some things. If you want to learn more, continue. © Copyright Guy Shipard 2008 - 2009 |