Networking Forums

Networking Forums > Computer Networking > Linux Networking > pppd ip-up.d script not executing

Reply
Thread Tools Display Modes

pppd ip-up.d script not executing

 
 
TopperUK
Guest
Posts: n/a

 
      05-21-2007, 11:15 PM
Hi All

Can anyone shine some light on this problem I'm having! I'm currently
running a speedtouch 330 ADSL modem on Ubuntu Server 7.04. I can
connect and get a working connection and manually run my iptables
script but i can not get ppp to run my script located in

/etc/ppp/ip-up.d/

i have set the file permission of this script to 700 and is owned by
root. the script that runs is simple and like say can be run manually
from the command line.


code:
#!/bin/sh
echo 1 > /proc/sys/net/ipv4/ip_forward
iptables-restore < /etc/network/iptables.up.rules


Aim i missing something hear. The man pages say this is the right
place, and i think the other scripts in the ip-up.d directory are
being executed, namely 0000usepeerdns 0dns-up or i would not get my
peer dns server addresses placed into resolv.conf.

Can anyone help

Thanks Tom

 
Reply With Quote
 
 
 
 
Pascal Hambourg
Guest
Posts: n/a

 
      05-22-2007, 08:33 AM
Hello,

TopperUK a écrit :
>
> Can anyone shine some light on this problem I'm having! I'm currently
> running a speedtouch 330 ADSL modem on Ubuntu Server 7.04. I can
> connect and get a working connection and manually run my iptables
> script but i can not get ppp to run my script located in
>
> /etc/ppp/ip-up.d/
>
> i have set the file permission of this script to 700 and is owned by
> root. the script that runs is simple and like say can be run manually
> from the command line.
>
> code:
> #!/bin/sh
> echo 1 > /proc/sys/net/ipv4/ip_forward
> iptables-restore < /etc/network/iptables.up.rules


If Ubuntu works like Debian, scripts in /etc/ppp/ip-up.d/ and the like
are run using run-parts. You can check it in the /etc/ppp/ip-up script.
IIRC, scripts must meet the following three conditions in order to work
with run-parts :

- be executable (seems ok) ;
- start with the interpreter definition #!/path/interpreter (seems ok) ;
- the filename must contain only letters, digits, underscores and
hyphens [a-zA-Z_-] ; it must not contain periods like in "script.sh".

You can check which scripts run-parts would run in a directory with the
--test option :

# run-parts --test /etc/ppp/ip-up.d
 
Reply With Quote
 
Mark Hobley
Guest
Posts: n/a

 
      05-22-2007, 10:08 AM
TopperUK <(E-Mail Removed)> wrote:
> Can anyone shine some light on this problem I'm having! I'm currently
> running a speedtouch 330 ADSL modem on Ubuntu Server 7.04.


These are some notes, provided by a friend of mine running Ubuntu using the same
modem.

http://markhobley.yi.org:8000/PPPThomp330

Regards,

Mark.

--
Mark Hobley
393 Quinton Road West
QUINTON
Birmingham
B32 1QE

Email: markhobley at hotpop dot donottypethisbit com

http://markhobley.yi.org/

 
Reply With Quote
 
SEND NO SPAM
Guest
Posts: n/a

 
      05-22-2007, 03:00 PM
TopperUK wrote:
> Hi All
>
> Can anyone shine some light on this problem I'm having! I'm currently
> running a speedtouch 330 ADSL modem on Ubuntu Server 7.04. I can
> connect and get a working connection and manually run my iptables
> script but i can not get ppp to run my script located in
>
> /etc/ppp/ip-up.d/
>
> i have set the file permission of this script to 700 and is owned by
> root. the script that runs is simple and like say can be run manually
> from the command line.
>
>
> code:
> #!/bin/sh
> echo 1 > /proc/sys/net/ipv4/ip_forward
> iptables-restore < /etc/network/iptables.up.rules
>
>
> Aim i missing something hear. The man pages say this is the right
> place, and i think the other scripts in the ip-up.d directory are
> being executed, namely 0000usepeerdns 0dns-up or i would not get my
> peer dns server addresses placed into resolv.conf.
>
> Can anyone help
>
> Thanks Tom
>


Try preceeding the iptables-restore command with the full path

if that doesn't help try 755 permission
 
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
OpenSuse 11.1 Kinternet error: "pppd[0] died: pppd options error (exit code 2) Trevor Linux Networking 4 04-22-2009 06:31 PM
executing ssh from shell script R C V Linux Networking 2 03-23-2008 07:20 PM
executing ssh from shell script R C V Linux Networking 3 03-19-2008 07:53 PM
Executing programs Manfred Nowak Windows Networking 0 03-06-2004 09:34 PM
PPPD server routing problem? Mandrake/mgetty/pppd/D-link router martin02 Linux Networking 17 10-06-2003 03:06 PM



1 2 3 4 5 6 7 8 9 10 11