PDA

View Full Version : PPTP Client / VPN



SideshowMel
11th April 2007, 08:41 PM
I tried the PPTP forums, but they weren't any help because the Fault Tree just tells you what to find out, not how to fix it. I have this debug log:

pptpconfig: debug information dump begins
WARNING: security sensitive information follows
pptpconfig 1.12 2006/08/21 06:19:12
# pptp --version
pptp version 1.7.1
# pppd --version
pppd version 2.4.4
# uname -a
Linux localhost.localdomain 2.6.20-1.2933.fc6 #1 SMP Mon Mar 19 10:42:48 EDT 2007 i686 i686 i386 GNU/Linux
# modinfo ppp_mppe || modinfo ppp_mppe_mppc
filename: /lib/modules/2.6.20-1.2933.fc6/kernel/drivers/net/ppp_mppe.ko
version: 1.0.2
alias: ppp-compress-18
license: Dual BSD/GPL
description: Point-to-Point Protocol Microsoft Point-to-Point Encryption support
author: Frank Cusack <fcusack@fcusack.com>
srcversion: 39166EF06A40CF00F255FC5
depends: ppp_generic
vermagic: 2.6.20-1.2933.fc6 SMP mod_unload 586 4KSTACKS
# grep mppe /proc/modules
Array
(
[name] => VPN
[server] => my.work.ip.address
[domain] => (hidden by pptpconfig)
[username] => MyUsername
[password] => (hidden by pptpconfig)
[pppd-options] =>
[pptp-options] =>
[resolv] =>
[dns-options] =>
[routing] => routing_client_to_lan
[usepeerdns] => 1
[require-mppe] => 1
[nomppe-40] =>
[nomppe-128] =>
[refuse-eap] =>
[mppe-stateful] =>
[autostart] =>
[iconify] =>
[persist] =>
[debug] => 1
[client-to-lan] =>
)
# route -n (before pppd)
Kernel IP routing table
Destination Gateway Genmask Flags Metric Ref Use Iface
192.168.240.0 0.0.0.0 255.255.255.0 U 0 0 0 vmnet1
172.16.102.0 0.0.0.0 255.255.255.0 U 0 0 0 vmnet8
192.168.0.0 0.0.0.0 255.255.255.0 U 0 0 0 eth0
169.254.0.0 0.0.0.0 255.255.0.0 U 0 0 0 eth0
0.0.0.0 192.168.0.1 0.0.0.0 UG 0 0 0 eth0
pptpconfig: debug information dump ends, starting pppd
pppd options in effect:
debug # (from /etc/ppp/peers/VPN)
updetach # (from command line)
logfd 1 # (from command line)
linkname VPN # (from /etc/ppp/peers/VPN)
dump # (from /etc/ppp/peers/VPN)
noauth # (from /etc/ppp/options.pptp)
refuse-chap # (from /etc/ppp/options.pptp)
refuse-mschap # (from /etc/ppp/options.pptp)
refuse-eap # (from /etc/ppp/options.pptp)
name domain\\MyUsername # (from /etc/ppp/peers/VPN)
remotename VPN # (from /etc/ppp/peers/VPN)
# (from /etc/ppp/options.pptp)
pty pptp my.work.ip.address --nolaunchpppd # (from /etc/ppp/peers/VPN)
ipparam VPN # (from /etc/ppp/peers/VPN)
usepeerdns # (from /etc/ppp/peers/VPN)
nobsdcomp # (from /etc/ppp/options.pptp)
nodeflate # (from /etc/ppp/options.pptp)
require-mppe # (from /etc/ppp/peers/VPN)
using channel 1
Using interface ppp0
pptpconfig: monitoring interface ppp0
Connect: ppp0 <--> /dev/pts/1
anon warn[open_inetsock:pptp_callmgr.c:326]: connect: Connection refused
anon fatal[callmgr_main:pptp_callmgr.c:124]: Could not open control connection to my.work.ip.address
anon fatal[open_callmgr:pptp.c:439]: Call manager exited with error 256
Modem hangup
Connection terminated.
Script pptp my.work.ip.address --nolaunchpppd finished (pid 3610), status = 0x1
# route -n (after pppd exit)
Kernel IP routing table
Destination Gateway Genmask Flags Metric Ref Use Iface
192.168.240.0 0.0.0.0 255.255.255.0 U 0 0 0 vmnet1
172.16.102.0 0.0.0.0 255.255.255.0 U 0 0 0 vmnet8
192.168.0.0 0.0.0.0 255.255.255.0 U 0 0 0 eth0
169.254.0.0 0.0.0.0 255.255.0.0 U 0 0 0 eth0
0.0.0.0 192.168.0.1 0.0.0.0 UG 0 0 0 eth0
pptpconfig: pppd process terminated by signal 16 (failed)
pptpconfig: SIGUSR1
# route -n (after completion)
Kernel IP routing table
Destination Gateway Genmask Flags Metric Ref Use Iface
192.168.240.0 0.0.0.0 255.255.255.0 U 0 0 0 vmnet1
172.16.102.0 0.0.0.0 255.255.255.0 U 0 0 0 vmnet8
192.168.0.0 0.0.0.0 255.255.255.0 U 0 0 0 eth0
169.254.0.0 0.0.0.0 255.255.0.0 U 0 0 0 eth0
0.0.0.0 192.168.0.1 0.0.0.0 UG 0 0 0 eth0

and I have failed fault tree items 1, 2, and 3 at
http://pptpclient.sourceforge.net/howto-diagnosis.phtml#fault_tree
but I don't know how to fix them.
I have enabled PPTP and IPSec on my router, forwarded port 1723, allowed 1723 on the Fedora firewall.
Any suggestions? Thanks.

SideshowMel
11th April 2007, 08:44 PM
Fault Tree results:
[root@localhost /]# ping pptpserver
ping: unknown host pptpserver
[root@localhost /]# traceroute pptpserver
pptpserver: Name or service not known
Cannot handle "host" cmdline arg `pptpserver' on position 1 (argc 1)
[root@localhost /]# telnet pptpserver 1723
pptpserver/1723: Name or service not known