Do you need to start iptables on Debian
I have just installed Debian 7.0.0 and have used
Code:
sudo iptables-restore <saved.iptables My question is, do you acually have to start or enable iptables (as with "ufw enable") or is it always running? I tried Code:
peter@app-server:~$ sudo iptables -h | grep start Thanks, Peter. |
Moved: This thread is more suitable in the Debian forum (asking how to start the firewall isn't a security issue) and has been moved accordingly to help your thread/question get the exposure it deserves.
Your options are to put a script or line running '/path/to/iptables-restore < /path/to/saved.iptables' in: - /etc/rc.d/rc.local, or - /etc/init.d/rcS (not recommended), or - /etc/network/if-preup.d/ (or /etc/network/if-up.d/) or - you could create a /etc/init.d/firewall script yourself (and use 'update-rc.d' to enable it), or - use a front-end application that takes care of things if you like that kind of convenience / hassle. |
Quote:
Also, is '/path/to/iptables-restore < /path/to/saved.iptables' sufficient to get my iptables running? Apparently RedHat uses Code:
sudo iptables start Code:
Bad argument `start' Does Debian have an equivalent? Thanks, Peter. |
Quote:
*Probably superfluous but you should note "/path/to/" indicates you should supply the valid, full path to the files. Quote:
Quote:
*Also see: - http://www.debian.org/doc/manuals/de.../index.en.html - http://debian-handbook.info/browse/wheezy/ |
All times are GMT -5. The time now is 03:31 PM. |