[lug] pptp with init script help

Paul Nowosielski paulnowosielski at yahoo.com
Sun Dec 12 13:50:57 MST 2010




/var/log/messages has this:


Dec 12 13:07:11 luke kernel: PPP MPPE Compression module registered
Dec 12 13:07:11 luke pppd[4268]: pppd 2.4.4 started by root, uid 0
Dec 12 13:07:11 luke pppd[4268]: Using interface ppp0
Dec 12 13:07:11 luke pppd[4268]: Connect: ppp0 <--> /dev/pts/0
Dec 12 13:07:11 luke pptp[4271]: anon log[main:pptp.c:314]: The synchronous pptp 
option is NOT activated
Dec 12 13:07:11 luke pptp[4281]: anon warn[open_unixsock:pptp_callmgr.c:357]: 
bind: Permission denied
Dec 12 13:07:11 luke pptp[4281]: anon fatal[callmgr_main:pptp_callmgr.c:129]: 
Could not open unix socket for {ip.hidden.for.lug}
Dec 12 13:07:11 luke pptp[4271]: anon fatal[open_callmgr:pptp.c:479]: Call 
manager exited with error 256
Dec 12 13:07:11 luke pppd[4268]: Modem hangup
Dec 12 13:07:11 luke pppd[4268]: Connection terminated.
Dec 12 13:07:11 luke pppd[4268]: Exit.



Cron log has no info:

Dec 12 13:15:01 luke crond[4353]: (root) CMD (/root/scripts/have_vpn.sh)




Here is the message when I call the script:


Dec 12 13:37:39 luke pppd[4518]: Using interface ppp0
Dec 12 13:37:39 luke pppd[4518]: Connect: ppp0 <--> /dev/pts/1
Dec 12 13:37:39 luke pptp[4520]: anon log[main:pptp.c:314]: The synchronous pptp 
option is NOT activated
Dec 12 13:37:39 luke pptp[4528]: anon log[ctrlp_rep:pptp_ctrl.c:251]: Sent 
control packet type is 1 'Start-Control-Connection-Request'
Dec 12 13:37:40 luke pptp[4528]: anon log[ctrlp_disp:pptp_ctrl.c:739]: Received 
Start Control Connection Reply
Dec 12 13:37:40 luke pptp[4528]: anon log[ctrlp_disp:pptp_ctrl.c:773]: Client 
connection established.
Dec 12 13:37:40 luke pptp[4528]: anon log[ctrlp_rep:pptp_ctrl.c:251]: Sent 
control packet type is 7 'Outgoing-Call-Request'
Dec 12 13:37:41 luke pptp[4528]: anon log[ctrlp_disp:pptp_ctrl.c:858]: Received 
Outgoing Call Reply.
Dec 12 13:37:41 luke pptp[4528]: anon log[ctrlp_disp:pptp_ctrl.c:897]: Outgoing 
call established (call ID 0, peer's call ID 128).
Dec 12 13:37:41 luke pppd[4518]: CHAP authentication succeeded
Dec 12 13:37:41 luke pppd[4518]: MPPE 128-bit stateless compression enabled
Dec 12 13:37:41 luke pppd[4518]: local  IP address 192.168.66.100
Dec 12 13:37:41 luke pppd[4518]: remote IP address 192.168.66.1





----- Original Message ----
From: Aaron Nichols <anichols at trumped.org>
To: Boulder (Colorado) Linux Users Group -- General Mailing List 
<lug at lug.boulder.co.us>
Sent: Sunday, December 12, 2010 15:41:54
Subject: Re: [lug] pptp with init script help

On Sun, Dec 12, 2010 at 12:55 PM, Paul Nowosielski
<paulnowosielski at yahoo.com> wrote:
> I wrote a simple start up script. If I run it from the command line
> it works fine but it fails if its run via the init script.

Can you give us an example of what it looks like when it fails? Errors?

>
> I also have a cron job that checks the vpn.
> If the vpn is not up it should start the vpn tunnel by calling the script
> below.
> Once again, it works if I run it manually but does not work if
> the cron daemon calls it.

Any errors in the cron logs suggesting why it's not working?
_______________________________________________
Web Page:  http://lug.boulder.co.us
Mailing List: http://lists.lug.boulder.co.us/mailman/listinfo/lug
Join us on IRC: irc.hackingsociety.org port=6667 channel=#hackingsociety






More information about the LUG mailing list