pptp ipv6-up script no longer work after LCP session is up !!
Hi all ,
im trying to establish ipv6 over pptp.
actually i need to run "radvd" after LCP session is open during pptp negotiations.
i had the info of the script from here :
Hi ,
thanks so much for reply ....im trying to deploy it on centos , but the problem is the script of(( ipv6-up)) dont run after LCP state get !ON
======================
cat /etc/ppp/ipv6-up
#!/bin/bash
ip -6 addr add 2001:db8:0:10::1/64 dev ppp0
service radvd start
exit 0
===================
my pptp server works fine with ipv4 , but ipv6 dont get an ip , it only get ip link local !
this is my problem .... if i run it manually by "bash script name " it works.
but when the user is logging to server , i see from the logs that it dont get executed and here is sample of the log i have :
=========================================
Aug 20 00:19:04 centOS pptpd[29534]: CTRL: Client 176.58.69.250 control connection started
Aug 20 00:19:04 centOS pptpd[29534]: CTRL: Starting call (launching pppd, opening GRE)
Aug 20 00:19:04 centOS pppd[29535]: Plugin /usr/lib64/pptpd/pptpd-logwtmp.so loaded.
Aug 20 00:19:04 centOS pppd[29535]: pppd 2.4.5 started by root, uid 0
Aug 20 00:19:04 centOS pppd[29535]: Using interface ppp0
Aug 20 00:19:04 centOS pppd[29535]: Connect: ppp0 <--> /dev/pts/2
Aug 20 00:19:08 centOS pppd[29535]: peer from calling number 176.58.69.250 authorized
Aug 20 00:19:09 centOS pppd[29535]: MPPE 128-bit stateless compression enabled
Aug 20 00:19:10 centOS pppd[29535]: local LL address fe80::0000:0000:0000:0001
Aug 20 00:19:10 centOS pppd[29535]: remote LL address fe80::6059:e02c:3d9e:a552
Aug 20 00:19:10 centOS pppd[29535]: Can't execute /etc/ppp/ipv6-up: Invalid argument
Aug 20 00:19:11 centOS pppd[29535]: Cannot determine ethernet address for proxy ARP
Aug 20 00:19:11 centOS pppd[29535]: local IP address 172.16.36.1
Aug 20 00:19:11 centOS pppd[29535]: remote IP address 172.16.36.2
=========================================
as we see, the script , ipv6-up is not goining to work !!
Aug 20 00:19:10 centOS pppd[29535]: Can't execute /etc/ppp/ipv6-up: Invalid argument
but if i type , bash /etc/ppp/ipv6-up it works !!
why not works during LCP is up ????
any help ???
regards
|