View Single Post

   
  #2 (permalink)  
Old 01-17-2008, 07:08 AM
Horst Knobloch
 
Posts: n/a
Default Re: MDK 9.1: How can I run a firewall before establishing ppp0 internet connection?

Michael Badt <mibadt@actcom.net.il> wrote:

> My Mandrake 9.1 stand alone PC has an ADSL Internet connection using
> PPPoE. I use the Shorewall firewall which is configured to interface with
> the Internet via pppp0.
> The ADSL connection does NOT come up during boot (it's a "dialer") and
> thus, ppp0 is not available after boot. As a result, after I connect to
> the Internet (using rp-pppoe) I have run the following:
> a. "shorewall clear"
> b. shorewall start"


Why don't you put these two command into some boot-up scripts
eg. rc.local and just try it? Good crafted packet filter scripts
can be setup without an existing ppp interface.

If shorewall does rely on the ppp interface to exist, you can
put your 2 commands into the /etc/ppp/ip-up.local script. This
script is called when the ppp interface has come up. You can
stop the firewall by putting the appropriate stop command to
/etc/ppp/ip-down.local.

HTH

Ciao, Horst
--
»When pings go wrong (It hurts me too)« E.Clapton/E.James/P.Tscharn
Reply With Quote