Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
[solved] ip-up doesn't start firewall script
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Networking & Security
View previous topic :: View next topic  
Author Message
cyrus
n00b
n00b


Joined: 13 Jun 2002
Posts: 54

PostPosted: Thu Nov 03, 2005 1:51 am    Post subject: [solved] ip-up doesn't start firewall script Reply with quote

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
View user's profile Send private message
Cocker68
Apprentice
Apprentice


Joined: 16 Jan 2003
Posts: 227
Location: Germany

PostPosted: Thu Nov 03, 2005 10:50 am    Post subject: Reply with quote

in ip-up there is no default-PATH set.
Compare this thread

- Cocker :wq
Back to top
View user's profile Send private message
cyrus
n00b
n00b


Joined: 13 Jun 2002
Posts: 54

PostPosted: Thu Nov 03, 2005 12:40 pm    Post subject: Reply with quote

Thank you very much... exporting PATH in ip-up.local did it :)
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Networking & Security All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum