Re: IPTables Location



Johnno wrote:

I have just install debian, but can't find the location where the IPTable
routines are loaded on bootup..

There isn't one.

The closest thing to it is the /var/lib/iptables/active file. You can
create this by first adding the firewall rules by hand (or through a
script) and then running:

iptables-save > /var/lib/iptables/active

This file will then get loaded on startup, or when you run:

invoke-rc.d iptables start

Alternatively, create your own script and symlink it into /etc/rc2.d.
This is my preferred solution.


Hope this helps,

--
George Borisov

DXSolutions Ltd

Attachment: signature.asc
Description: OpenPGP digital signature



Relevant Pages

  • Re: iptables on bootup issue
    ... > I am running some iptables at bootup from within rc.local, i have other things happen in rc.local and they work fine. ... > I have tried this from within rc.local or have rc.local call a script, both fail and yet if i run the script after logging in it ... there is nothing in any logs saying why it may have failed. ... Try disabling the default iptables script.. ...
    (linux.redhat)
  • Re: Help with Iptables on with RH linux
    ... iptables -P OUTPUT DROP ... INPUT only when packets have a destination IP of your firewall. ... the FORWARD chain contains rules that affect packets passing through ... Yes I flushed the rules before calling the script... ...
    (RedHat)
  • Re: some reality about iptables, please
    ... >>the script which can only be run by a root user. ... but it could re-inforce the fact that maybe running your iptables ... "I'm a packet filtering interface not a firewall tool." ... Generally Debian systems run at init runlevel 3 (this is a change if ...
    (Debian-User)
  • Re: IPTABLES Beginner Example Needed!
    ... after i runned this script nothing works on my computer. ... > I think i just need the translation to iptables. ... $MODPROBE ip_conntrack ... # FORWARD chain rules ...
    (linux.redhat)
  • Re: Setting Up NTP for Time Sync
    ... > I've made no changes to the script file that I know of. ... called iptables after the command "iptables" that manipulates the ... The /etc/init.d/ntpd script is the one run when ntpd is started. ... [enter root password] ...
    (comp.os.linux.networking)