pppd not running ip-up

pppd not running ip-up

Post by Brad Hei » Tue, 12 Sep 2000 07:56:32



I am running the latest version of pppd (2.4.0)
when pppd connects to my isp it doesn't run the ip-up script in /etc/ppp
yes, it has x permissions.

what can it be?

 
 
 

pppd not running ip-up

Post by Bill Unr » Tue, 12 Sep 2000 10:31:38



Quote:>I am running the latest version of pppd (2.4.0)
>when pppd connects to my isp it doesn't run the ip-up script in /etc/ppp
>yes, it has x permissions.

How do you know it is not running ip-up? Where is it located? Is it a
valid script(what happens if you run it on its own). What does the debug
log say?

 
 
 

pppd not running ip-up

Post by Brad Hei » Tue, 12 Sep 2000 14:18:31


Quote:> >I am running the latest version of pppd (2.4.0)
> >when pppd connects to my isp it doesn't run the ip-up script in /etc/ppp
> >yes, it has x permissions.

> How do you know it is not running ip-up? Where is it located? Is it a
> valid script(what happens if you run it on its own). What does the debug
> log say?

In /etc/ppp/ip-up i have 1 command:
/etc/rc.d/rc.firewall

but that script never gets called. When the interface comes up, i can use
the internet on the server, but not on the LAN clients. this is because the
firewall rules are never added because the rc.firewall is never called. If i
manually run the file, then the rules are added and the LAN can make friends
with the internet.

pppd debugging doesn't even mension anything about ip-up or any other
scripts being executed.

if i run the script on its own then it runs good and does what its supposed
to.

# ./ip-up
lalala adding firewall rules... lalala
ok lan works now
incoming message from computer: haha, i didnt call your ip-up script
# oh yah? take this!
# deltree /

 
 
 

pppd not running ip-up

Post by Bill Unr » Tue, 12 Sep 2000 15:35:52



]> >I am running the latest version of pppd (2.4.0)
]> >when pppd connects to my isp it doesn't run the ip-up script in /etc/ppp
]> >yes, it has x permissions.
]>
]> How do you know it is not running ip-up? Where is it located? Is it a
]> valid script(what happens if you run it on its own). What does the debug
]> log say?

]In /etc/ppp/ip-up i have 1 command:
]/etc/rc.d/rc.firewall

]but that script never gets called. When the interface comes up, i can use

Publishing the script might help. Remember that it is a shell script
which is executed, not sourced. Ie, it must start with
#!/bin/bash
(ip-up that is)

 
 
 

pppd not running ip-up

Post by Clifford Kit » Tue, 12 Sep 2000 23:05:59



> I am running the latest version of pppd (2.4.0) when pppd connects
> to my isp it doesn't run the ip-up script in /etc/ppp yes, it has
> x permissions.

Works for me.  Check that you specify full path names for the programs
you try to execute.  Messages  with "echo" require special attention.
You must say what it is that indicates that "it doesn't run the ip-up
script."

--

/* Those who can't write, write manuals. */

 
 
 

pppd not running ip-up

Post by Clifford Kit » Wed, 13 Sep 2000 04:22:53



> pppd debugging doesn't even mension anything about ip-up or any other
> scripts being executed.

Does this mean that there is no mention in the logs even when you
use the pppd debug option?  If that's so then it *is* strange,
but, as Bill Unruh suggested, the first line of the ip-up script
must be "#!/bin/bash" or the equivalent.

--

/* Recipe for a unified PPP debug log file:  Add the line
   " local2.*;*.=debug;*.=notice   /var/log/ppp-log "
   (may need Tab separators) to the /etc/syslog.conf file, and then do
   " kill -HUP `pidof syslogd` " to make syslogd reread it. */

 
 
 

1. ip-up not being run by pppd

I'm having trouble getting pppd to run /etc/ppp/ip-up after LCP comes up
during a dail-in to my ISP. First my /etc/ppp/ip-up has 777 permissions,
and is owned by root/root.  I have the 'hash bang' at the top
(#!/bin/bash).

Now the fun part.  With the debug option set in options.ttyS1, and daemon
logging enabled, the following shows up in the log file
'/var/log/daemon':
('home' is my system name)

Jul  1 11:40:49 home pppd[4097]: rcvd [IPCP ConfReq id=0x1 <compress VJ 0f
01> <addr 216.118.29.34>]
Jul  1 11:40:49 home pppd[4097]: sent [IPCP ConfAck id=0x1 <compress VJ 0f
01> <addr 216.118.29.34>]
Jul  1 11:40:49 home pppd[4097]: rcvd [IPCP ConfNak id=0x1 <addr 216.118.43
.103>]
Jul  1 11:40:49 home pppd[4097]: sent [IPCP ConfReq id=0x2 <addr 216.118.43
.103> <compress VJ 0f 01>]  
Jul  1 11:40:49 home pppd[4097]: rcvd [IPCP ConfAck id=0x2 <addr 216.118.43
.103> <compress VJ 0f 01>]
Jul  1 11:40:49 home pppd[4097]: local  IP address 216.118.43.103
Jul  1 11:40:49 home pppd[4097]: remote IP address 216.118.29.34
Jul  1 11:40:49 home pppd[4110]: Script /etc/ppp/ip-up started (pid 4111)
Jul  1 11:40:49 home pppd[4110]: Script /etc/ppp/ip-up finished (pid 4111), status = 0x0

So it looks like pppd is trying to do right.  However, if ip-up is really
run, it in turn runs ip-up.local which runs fetchmail.  Doing a 'ps aux |
grep fetchmail' turns up no fetchmail.  Then if I manually run
/etc/ppp/ip-up in a terminal window, I can find fetchmail running as
above.

So what is wrong ?  Why do I have to run ip-up manually ?

Hope I've given enough information.
--
Thanks,


(I'd rather be a free electron than a loose cannon.)

2. Redhat Linux 4.2 on DEC 433a

3. ip-up script will not run after successfull pppd connect

4. Unable to reset keyboard

5. pppd not running ip-up...

6. WP-PCF, Linux, RISC?

7. pppd doesn't run ip-up script

8. HELP: linking problem on Linux

9. Getting pppd to run ip-up

10. ip-up/ip-down do not run

11. ip-up/ip-down scripts not running

12. pppd not executing ip-up?!?

13. pppd not executing /etc/ppp/ip-up