Re: Iptables the "Debian" way?
For information on setting up iptables under /etc/init.d/ you can check
out the file under "less /etc/default/iptables".
The writes own general feeling can be seen in the first q/a:
# Q: You concocted this init.d setup, but you do not like it?
# A: I was pretty much hounded into providing it. I do not like it.
# Don't use it. Use /etc/network/interfaces, use /etc/network/*.d/
# scripts use /etc/ppp/ip-*.d/ script. Create your own custom
# init.d script -- no need to even name it iptables. Use ferm,
# ipmasq, ipmenu, guarddog, firestarter, or one of the many other
# firewall configuration tools available. Do not use the init.d
# script.
I choose to ignore all of his warnings and use it. The machine its
running on is Woody. Not sure if the init.d script is provided in later
versions.
Here is a link in case you can't find it on your machine. Notthing
official so no guarantees:
http://lists.debian.org/debian-italian/2004/10/msg00442.html
On Tue, 2004-12-07 at 14:22 -0500, Ben Russo wrote:
> I am used to using RedHat, whereby I make sure I have the iptables
> package installed and I can use "chkconfig" to see if iptables has
> system-V runtime setup to be on or off, and the iptables-save data goes
> into /etc/sysconfig/iptables for reload on reboot (or change of SysV
> init level).
>
> What is the "Debian" way of doing this?
> I have iptables installed and I can add iptables rules and they work,
> but I did a grep for "iptables" in /etc/init.d/* and nothing matches,
> and I searched through /etc for files that contain firewall rules and
> didn't see any?
>
> Also, I installed Webmin and the webmin-iptables module. But when I go
> to the webmin interface there is no iptables module being shown (yes I
> restarted apache, webmin and my browser). Any hints?
>
> -Ben.
>
>
Reply to: