Networking Forums

Networking Forums > Computer Networking > Linux Networking > how to run script after adsl-start

Reply
Thread Tools Display Modes

how to run script after adsl-start

 
 
0
Guest
Posts: n/a

 
      07-29-2003, 09:32 AM
Hi NG!
I'd like to run a firewall script after the adsl-start script from the
rp-pppoe package. adsl-start monitors the dsl connection, and
reconnects if the connection was lost, thus changing my ip. I would
then need to run the firewall script again. How can I do it?
Thanks
Bernd Haller
 
Reply With Quote
 
 
 
 
Allen Kistler
Guest
Posts: n/a

 
      07-29-2003, 11:53 AM
0 wrote:
> Hi NG!
> I'd like to run a firewall script after the adsl-start script from the
> rp-pppoe package. adsl-start monitors the dsl connection, and
> reconnects if the connection was lost, thus changing my ip. I would
> then need to run the firewall script again. How can I do it?
> Thanks
> Bernd Haller


/etc/ppp/ip-up.local

Put whatever you want in that file & it'll happen.

 
Reply With Quote
 
0
Guest
Posts: n/a

 
      07-29-2003, 05:15 PM
>
> /etc/ppp/ip-up.local
>
> Put whatever you want in that file & it'll happen.


Actually, I had tried this one out already but it didn't work. in
fact, I have the feeling it didn't even call ip-up .
Do you know what I'm doing wrong? The firewall option in
/etc/ppp/pppoe.conf is set to none.

Thanks
Bernd
 
Reply With Quote
 
0
Guest
Posts: n/a

 
      07-30-2003, 06:30 PM
>
> Depending on what firewall you are using you could also specify an
> interface/device instead of an IP address,
> www.tldp.org holds the howto's check out advanced networking, with loads of
> examples.
>

The script I want to launch runs iptables and configures it to use the
running ip AND the ppp0 device. In fact, it is based on a script that
i fished in the ip-masquerade-howto, named firewall-2.4-stronger. It
is very well done and works like a charm!
Here's a link, I don't know if it is the main site but anyway:
http://www.ecst.csuchico.edu/~dranch...l-2.4-stronger

Bernd
 
Reply With Quote
 
0
Guest
Posts: n/a

 
      07-30-2003, 06:36 PM
Thaks a lot for your help! The ip-up script is run each time, as you
thought, but the reason it didn't work was a really dumb fault of
mine: i forgot to set execute permissions on ip-up.local
Sorry for the inconvenience
Bernd

Clifford Kite <(E-Mail Removed)> wrote in message news:<(E-Mail Removed)>...
> 0 <(E-Mail Removed)> wrote:
> >>
> >> /etc/ppp/ip-up.local
> >>
> >> Put whatever you want in that file & it'll happen.

>
> > Actually, I had tried this one out already but it didn't work. in
> > fact, I have the feeling it didn't even call ip-up .

>
> That's doubtful unless ip-up doesn't have read or execute permissions.
> You likely do need to have any programs called from ip-up specified with
> the full pathname.
>
> Check on whether or not it is executed by putting this line in
> /etc/ppp/ip-up:
>
> /bin/echo $4 > /tmp/local-ip\#
>
> Here I call a firewall-up script in ip-up to bring up the firewall, and
> tear it down by a call to a firewall-down script in ip-down. It's plain
> PPP, not PPPoE, but pppd should also execute these scripts when used to
> facilitate a PPPoE connection.

 
Reply With Quote
 
 
 
Reply

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
server 2k gpo/script won't start on clients alex01 Windows Networking 0 03-22-2007 11:08 AM
Adsl-start says 'connected' but the net is inaccessible Alessandro Linux Networking 4 11-17-2005 05:40 PM
ADSL-script doesn't always succeed Florian Pressler Linux Networking 0 02-21-2005 09:41 PM
dhcpd in rc script doesn't start, but it does start by hand j Linux Networking 3 06-08-2004 12:30 PM
RH9: I need to start ADSL-START as root for the first time after boot .... Gabolander Linux Networking 3 08-13-2003 09:52 AM



1 2 3 4 5 6 7 8 9 10 11