View previous topic :: View next topic |
Author |
Message |
cyrus n00b

Joined: 13 Jun 2002 Posts: 54
|
Posted: Thu Nov 03, 2005 1:51 am Post subject: [solved] ip-up doesn't start firewall script |
|
|
I'm using fairnat.sh as on my gentoo router for doing nat, firewall and so on... It is startet by executing /usr/local/bin/fairnat.sh (its a bashscript).
Doing so manually does work.
Calling it from /etc/ppp/ip-up.local does work too when I execute /etc/ppp/ip-up.local
When pppd executes ip-up (and that sources ip-up.local) it does NOT work.
But i'm absolutly sure that ip-up.local gets executed when connecting. (I tested this by adding a "touch /test" in ip-up.local, and the file /test gets created after every connect - but the fairnat script that is on line beneath seems to be ignored)
Help! This is urgent, because i have to get this box running. Any Ideas? (It's no permission problem either, i tested that too)
ip-up.local:
Code: | #!/bin/sh
# this is a script which is executed after connecting the ppp interface.
# look at man pppd for details
# the followings parameters are available:
# $1 = interface-name
# $2 = tty-device
# $3 = speed
# $4 = local-IP-address
# $5 = remote-IP-address
# $6 = ipparam
/usr/local/bin/fairnat.sh |
Last edited by cyrus on Thu Nov 03, 2005 12:40 pm; edited 1 time in total |
|
Back to top |
|
 |
Cocker68 Apprentice

Joined: 16 Jan 2003 Posts: 227 Location: Germany
|
Posted: Thu Nov 03, 2005 10:50 am Post subject: |
|
|
in ip-up there is no default-PATH set.
Compare this thread
- Cocker :wq |
|
Back to top |
|
 |
cyrus n00b

Joined: 13 Jun 2002 Posts: 54
|
Posted: Thu Nov 03, 2005 12:40 pm Post subject: |
|
|
Thank you very much... exporting PATH in ip-up.local did it  |
|
Back to top |
|
 |
|