I recently got a laptop which uses a combo pcmcia card for connectivity.

This means that I do not have eth0 or ppp0 active all the time.

With ppp on my desktop machine, I know I can put commands to be executed when
the ppp interface comes up in /etc/ppp/ip-up.local, and turn them off in
/etc/ppp/ip-down.local.

I want to make sure portsentry and my ipchains rules start up when I plug into
a network.  since I am using this laptop as a road-warrior machine at
differrent client sites, I use pump as a dhcp client to get my ip address, so I
cannot depend on having the same (ip address, default gateway, etc. etc.)
assigned all the time and so cannot set these services up at boot time. 

Where do I put commands that I want activated when my eth0 interface
comes up under pcmcia control?  What about deactivating these commands when I take the 
interface down?  

I have everything setup in scripts, and even have them customized so they can
be called for eth0 or ppp0 as the case may be, but I just need to know where to
put them.

Any pointers or FAQ's welcome.

-- 
Tom Porter                                       [EMAIL PROTECTED]
------------------------------------------------------------------------
"On two occasions I have been asked [by members of Parliament], 
'Pray, Mr. Babbage, if you put into the machine wrong figures, will 
the right answers come out?'  I am not able rightly to apprehend the 
kind of confusion of ideas that could provoke such a question."


-- 
To unsubscribe: mail [EMAIL PROTECTED] with "unsubscribe"
as the Subject.

Reply via email to