Re: firewall on laptop
On 2010-02-07, Daniel Dalton <d.dalton@iinet.net.au> wrote:
> Hi,
>
> 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?
>
> Thanks,
> Dan
>
>
wicd allows you to define a script for each network. See the
'beforescript' and 'afterscipt' properties in the file
/etc/wicd/wireless-settings.conf.
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.
--
Liam O'Toole
Birmingham, United Kingdom
Reply to: