Click to See Complete Forum and Search --> : VPN...help me
ervalerio
08-30-2002, 01:06 PM
hi there
i'm somewhere in trouble trying to get my vpn client up&working.
I'm a mandrake (2.4.8-26mdk)-no-recompiled-kernel user.
This is how the situation is now:
[root@localhost pppmodulo]# pptp uib-vpn-gw debug name ******* noauth
(unknown)[2461]: log[pptp_dispatch_ctrl_packetptp_ctrl.c:531]: Client connection established.
(unknown)[2461]: log[pptp_dispatch_ctrl_packetptp_ctrl.c:637]: Outgoing call established.
so the client seems to work..but having a look with ifconfig, there's no any ppp0 interface..
how can I turn up a ppp0 interface?
ppp_generic,ppp_deflate and ppp_async are all loaded as modules. My connection doesn't need mppe (even if I tried using it aswell).
thanks
Valerio
jumpedintothefire
08-30-2002, 05:24 PM
Sounds like your not getting authenticated, what do you need to use chap or pap? Then check your option.pptp file for +chap or +pap as required. Make sure the user password combo is in either /ppp/chap-secrets or /ppp/pap-secrets. you may have to "user <name> on the command line when starting pptp. <name> should be the username that is in the chap-secrets or pap-secrets files. Without seeing some config files, I can't pinpoint the problem. Also use "debug" on the command line after the "noauth" to get the chat sequence logged to /var/log/messages.
Hope this points you in the right direction....
man pppd is you friend.....
ervalerio
08-30-2002, 07:45 PM
thanks for answer!.
Here it is:
this is the log (as you can sees)
Aug 31 01:27:38 localhost kernel: CSLIP: code copyright 1989 Regents of the University of California
Aug 31 01:27:38 localhost kernel: PPP generic driver version 2.4.1
Aug 31 01:27:43 localhost kernel: PPP Deflate Compression module registered
Aug 31 01:27:57 localhost anacron[1537]: Job `cron.daily' terminated
Aug 31 01:27:57 localhost anacron[1537]: Normal exit (1 jobs run)
Aug 31 01:28:40 localhost (unknown)[2199]: log[pptp_dispatch_ctrl_packet:pptp_ctrl.c:531]: Client connection established.
Aug 31 01:28:41 localhost (unknown)[2199]: log[pptp_dispatch_ctrl_packet:pptp_ctrl.c:637]: Outgoing call established.
Aug 31 01:28:41 localhost pppd[2202]: pppd 2.4.0 started by root, uid 0
Aug 31 01:28:41 localhost pppd[2202]: Using interface ppp0
Aug 31 01:28:41 localhost pppd[2202]: Connect: ppp0 <--> /dev/ttya0
Maybe the problem is in here, but i don't know how to solve it..maybe there's some symbolic link between ppp0 and /dev/ttya0 , but i searched for that dev in /dev/ and it didn't exist!.
This my routing table at the moment:
Kernel IP routing table
Destination Gateway Genmask Flags MSS Window irtt Iface
10.10.64.0 0.0.0.0 255.255.240.0 U 40 0 0 eth0
127.0.0.0 0.0.0.0 255.0.0.0 U 40 0 0 lo
0.0.0.0 10.10.64.1 0.0.0.0 UG 40 0 0 eth0
and my ifconfig:
[root@localhost pppmodulo]# ifconfig
eth0 Link encap:Ethernet HWaddr 00:E0:18:0F:A5:19
inet addr:10.10.77.113 Bcast:10.10.79.255 Mask:255.255.240.0
UP BROADCAST NOTRAILERS RUNNING MTU:1500 Metric:1
RX packets:3274 errors:0 dropped:0 overruns:0 frame:0
TX packets:97 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:100
RX bytes:537707 (525.1 Kb) TX bytes:8631 (8.4 Kb)
Interrupt:9 Base address:0xbc00
lo Link encap:Local Loopback
inet addr:127.0.0.1 Mask:255.0.0.0
UP LOOPBACK RUNNING MTU:16436 Metric:1
RX packets:134 errors:0 dropped:0 overruns:0 frame:0
TX packets:134 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:0
RX bytes:7860 (7.6 Kb) TX bytes:7860 (7.6 Kb)
[root@localhost pppmodulo]#
i cheched about pap-secrets and chat-secrets (i have to use the first one), and everything was all right with passwords and username. I also tried to use the option user <name> without any good results.
thanks again
jumpedintothefire
08-30-2002, 10:43 PM
Don't think that was with debug or you cut the logging short...
http://pptpclient.sourceforge.net/howto-diagnosis.phtml#debug
has good deal of info.
What's in /ppp/options.pptp? /ppp/options? /etc/modules.conf?
My RH 7.3 shows ppp0 <--> /dev/pts/2
My RH 6.2 shows ppp0 <--> /dev/ttyp0
You might be on to something... which version did you install and how? rpm? tarball?
Might just need to upgrade pppd, that is just a guess at this point.
>>10.10.64.0 0.0.0.0 255.255.240.0 U 40 0 0 eth0
hey your at the same place as 'puccio' from this thread:
http://linuxnewbie.org/forum/showthread.php?s=&threadid=60328
ervalerio
08-31-2002, 04:24 AM
I installed pppd as rpm.
Maybe this can be useful:
cat /etc/sysconfig/network-scripts/ifcfg-ppp0
DEVICE="ppp0"
ONBOOT="no"
USERCTL="no"
MODEMPORT="/dev/modem"
LINESPEED="115200"
PERSIST="yes"
DEFABORT="yes"
DEBUG="yes"
INITSTRING="ATZ"
DEFROUTE="yes"
HARDFLOWCTL="yes"
ESCAPECHARS="no"
PPPOPTIONS=""
PAPNAME="ervalerio"
REMIP=""
NETMASK=""
IPADDR=""
MRU=""
MTU=""
DISCONNECTTIMEOUT="5"
RETRYTIMEOUT="60"
BOOTPROTO="none"
PEERDNS="yes"
I copied options.pptp from Puccio's configuration.
I've upgraded to pppd 2.4.1 (it was 2.4.0),but still not working.
/var/log/messages:
Aug 31 10:08:58 localhost (unknown)[2092]: log[pptp_dispatch_ctrl_packet:pptp_ctrl.c:531]: Client connection established.
Aug 31 10:08:59 localhost (unknown)[2092]: log[pptp_dispatch_ctrl_packet:pptp_ctrl.c:637]: Outgoing call established.
Aug 31 10:08:59 localhost pppd[2095]: pppd 2.4.1 started by root, uid 0
Aug 31 10:08:59 localhost pppd[2095]: Using interface ppp0
Aug 31 10:08:59 localhost pppd[2095]: Connect: ppp0 <--> /dev/ttya0
Aug 31 10:09:29 localhost pppd[2095]: LCP: timeout sending Config-Requests
Aug 31 10:09:29 localhost pppd[2095]: Connection terminated.
Aug 31 10:09:30 localhost pppd[2095]: Exit.
I know, I'm on the same network as Puccio,and I will not have any problem about routing...but I just can't fix my routing table without a ppp0 interface.
how can I help you more to pinpoint the problem?
ervalerio
08-31-2002, 05:08 AM
everything works fine now!
I used this script:
#########
# PPTP-ON
#########
#!/bin/bash
/bin/rm -f /var/run/pptp/* 1>/dev/null 2>/dev/null
/usr/sbin/pptp uib-vpn-gw debug name xxxxxx noauth debug
sleep 10
and everything magically was fine!:-))
Thanks for your help!
Valerio