firewall on laptop
On 2010-02-07, Daniel Dalton <firstname.lastname@example.org> wrote:
> What is the best way to run a firewall script with lots of iptables
> lines in it when a connection is put up? Eg. when I connect to ethernet
> or wifi the script should run. If I'm offline then it shouldn't run. I'm
> using wicd to manage all my wifi connections. Is it possible to get
> this script to run every time I connect to a wifi network?
wicd allows you to define a script for each network. See the
'beforescript' and 'afterscipt' properties in the file
For a more general solution, you could place scripts in the directories
/etc/network/if-up.d/ and /etc/network/if-down.d/. See the existing
scripts in those directories for examples.
Birmingham, United Kingdom
To UNSUBSCRIBE, email to debian-user-REQUEST@lists.debian.org
with a subject of "unsubscribe". Trouble? Contact email@example.com