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?
what can it be?
How do you know it is not running ip-up? Where is it located? Is it aQuote:>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.
In /etc/ppp/ip-up i have 1 command: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?
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 /
]> >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)
--
/* Those who can't write, write manuals. */
--
/* 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
7. pppd doesn't run ip-up script
8. HELP: linking problem on Linux
11. ip-up/ip-down scripts not running
12. pppd not executing ip-up?!?
13. pppd not executing /etc/ppp/ip-up