[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: iptables at boot



From: Matthijs <vanaalten@hotmail.com>
To: debian-user@lists.debian.org
Subject: Re: iptables at boot
Date: Sun, 02 Apr 2006 11:28:16 +0200

On Sun, 02 Apr 2006 03:30:15 +0200, BTP <smokefat@gmail.com> wrote:

> I was wondering if someone would be able to give me the correct way of
> disabling all network activity (iptables commands/script) during the
> boot process so that my network is inoperable during bootup until I
> activate it manually.
>
> I'm unsure in which startup script I would place this on debian.

I'm not sure either (so someone with knowledge please comment!), but
I've placed it in /etc/network/interfaces:

-------------------------------------------------------------------
# The loopback interface
auto lo
iface lo inet loopback

# The first network card
auto eth0
iface eth0 inet static
pre-up /etc/iptables.scr
address 192.168.1.3
netmask 255.255.255.0
gateway 192.168.1.1
broadcast 192.168.1.255
-------------------------------------------------------------------

This way, I expect the iptables script to be run just before the
network is activated.

to disable the network during boot you've to comment the "auto eth0" so your interface doesn't have any ip address until you do "ifup eth0" with root priviledge (once logged in your machine)....

_________________________________________________________________
Personalizza MSN Messenger con sfondi e fotografie! http://www.ilovemessenger.msn.it/



Reply to: