[pptp-server] This has to be a routing issue.

Doug Olivier djolivier at bigfoot.com
Mon Feb 12 14:04:50 CST 2001


> Basically the client should log into the server obtain an local IP on that
> network and be able to telnet to the dB server on that network,
> for some reason even though the link appears to be up neither the client
or
> server can ping each other.
>
> If anyone has any ideas please help me.
>
>
> Client Linux 2.2.17
>
> route -n
> Kernel IP routing table
> Destination     Gateway         Genmask         Flags Metric Ref    Use
> Iface
> 199.29.166.70   0.0.0.0         255.255.255.255 UH    0      0        0
ppp0
> 192.168.1.0     0.0.0.0         255.255.255.0   U     0      0        0
eth1
> 199.29.166.0    199.29.166.50   255.255.255.0   UG    0      0        0
ppp0
> 199.29.166.0    199.29.166.70   255.255.255.0   UG    0      0        0
ppp0
> 63.86.241.0     0.0.0.0         255.255.255.0   U     0      0        0
eth0
> 127.0.0.0       0.0.0.0         255.0.0.0       U     0      0        0 lo
> 0.0.0.0         63.86.241.1     0.0.0.0         UG    1      0        0
eth0
>
> route add -net 199.29.166.0 netmask 255.255.255.0 gw 199.29.166.70
>
> route -n
> Kernel IP routing table
> Destination     Gateway         Genmask         Flags Metric Ref    Use
> Iface
> 199.29.166.70   0.0.0.0         255.255.255.255 UH    0      0        0
ppp0
> 192.168.1.0     0.0.0.0         255.255.255.0   U     0      0        0
eth1
> 199.29.166.0    199.29.166.70   255.255.255.0   UG    0      0        0
ppp0
> 63.86.241.0     0.0.0.0         255.255.255.0   U     0      0        0
eth0
> 127.0.0.0       0.0.0.0         255.0.0.0       U     0      0        0 lo
> 0.0.0.0         63.86.241.1     0.0.0.0         UG    1      0        0
eth0
>
> PING 199.29.166.50 (199.29.166.50): 56 data bytes
> 64 bytes from 199.29.166.50: icmp_seq=0 ttl=255 time=0.5 ms
> 64 bytes from 199.29.166.50: icmp_seq=1 ttl=255 time=0.2 ms
> 64 bytes from 199.29.166.50: icmp_seq=2 ttl=255 time=0.3 ms
> 64 bytes from 199.29.166.50: icmp_seq=3 ttl=255 time=0.2 ms
> 64 bytes from 199.29.166.50: icmp_seq=4 ttl=255 time=0.2 ms
> 64 bytes from 199.29.166.50: icmp_seq=5 ttl=255 time=0.2 ms
> 64 bytes from 199.29.166.50: icmp_seq=6 ttl=255 time=0.2 ms
> 64 bytes from 199.29.166.50: icmp_seq=7 ttl=255 time=0.2 ms
>
> --- 199.29.166.50 ping statistics ---
> 8 packets transmitted, 8 packets received, 0% packet loss
> round-trip min/avg/max = 0.2/0.2/0.5 ms
>
>
> PING 199.29.166.70 (199.29.166.70): 56 data bytes
> ping: wrote 199.29.166.70 64 chars, ret=-1
> ping: wrote 199.29.166.70 64 chars, ret=-1
> ping: wrote 199.29.166.70 64 chars, ret=-1
> ping: wrote 199.29.166.70 64 chars, ret=-1
>
> --- 199.29.166.70 ping statistics ---
> 4 packets transmitted, 0 packets received, 100% packet loss
>
> /etc/ppp/options
> noauth
> local
> passive
> debug
> remotename vpn
> ipcp-accept-local
> ipcp-accept-remote
> name tempe
>
> tail -n50 /var/adm/messages
> Feb 12 10:48:15 ip-86-241-49 (unknown)[362]:
> log[pptp_dispatch_ctrl_packet:pptp_ctrl.c:531]: Client connection
> established.
> Feb 12 10:48:16 ip-86-241-49 (unknown)[362]:
> log[pptp_dispatch_ctrl_packet:pptp_ctrl.c:637]: Outgoing call established.
> Feb 12 10:48:16 ip-86-241-49 pppd[364]: pppd 2.3.11 started by root, uid 0
> Feb 12 10:48:16 ip-86-241-49 kernel: registered device ppp1
> Feb 12 10:48:16 ip-86-241-49 pppd[364]: Using interface ppp1
> Feb 12 10:48:16 ip-86-241-49 pppd[364]: Connect: ppp1 <--> /dev/ttya0
> Feb 12 10:48:21 ip-86-241-49 pppd[364]: Remote message: Welcome to vpn.
> Feb 12 10:48:21 ip-86-241-49 pppd[364]: Deflate (15) compression enabled
> Feb 12 10:48:22 ip-86-241-49 pppd[364]: local  IP address 199.29.166.50
> Feb 12 10:48:22 ip-86-241-49 pppd[364]: remote IP address 199.29.166.70
>
> ifconfig
>
> eth0      Link encap:Ethernet  HWaddr 00:10:5A:7B:FA:BD
>           inet addr:63.86.241.49  Bcast:63.86.241.255  Mask:255.255.255.0
>           UP BROADCAST RUNNING MULTICAST  MTU:1500  Metric:1
>           RX packets:15209 errors:0 dropped:0 overruns:0 frame:0
>           TX packets:10634 errors:0 dropped:0 overruns:0 carrier:0
>           collisions:0 txqueuelen:100
>           Interrupt:11 Base address:0x6100
>
> eth1      Link encap:Ethernet  HWaddr 00:D0:B7:AF:46:4F
>           inet addr:192.168.1.1  Bcast:192.168.1.255  Mask:255.255.255.0
>           UP BROADCAST RUNNING MULTICAST  MTU:1500  Metric:1
>           RX packets:9779 errors:0 dropped:0 overruns:0 frame:0
>           TX packets:6466 errors:0 dropped:0 overruns:0 carrier:0
>           collisions:2 txqueuelen:100
>           Interrupt:9 Base address:0x6200
>
> lo        Link encap:Local Loopback
>           inet addr:127.0.0.1  Mask:255.0.0.0
>           UP LOOPBACK RUNNING  MTU:3924  Metric:1
>           RX packets:50 errors:0 dropped:0 overruns:0 frame:0
>           TX packets:50 errors:0 dropped:0 overruns:0 carrier:0
>           collisions:0 txqueuelen:0
>
> ppp0      Link encap:Point-to-Point Protocol
>           inet addr:199.29.166.50  P-t-P:199.29.166.70
Mask:255.255.255.255
>           UP POINTOPOINT RUNNING NOARP MULTICAST  MTU:1500  Metric:1
>           RX packets:23 errors:0 dropped:0 overruns:0 frame:0
>           TX packets:10 errors:0 dropped:0 overruns:0 carrier:0
>           collisions:0 txqueuelen:10
>
> Server Linux 2.2.17
>
> route -n
> Kernel IP routing table
> Destination     Gateway         Genmask         Flags Metric Ref    Use
> Iface
> 172.31.1.0      0.0.0.0         255.255.255.0   U     0      0        0
eth1
> 199.29.166.0    0.0.0.0         255.255.255.0   U     0      0        0
eth0
> 127.0.0.0       0.0.0.0         255.0.0.0       U     0      0        0 lo
> 0.0.0.0         199.29.166.2    0.0.0.0         UG    1      0        0
eth0
> PING 199.29.166.50 (199.29.166.50): 56 data bytes
>
> --- 199.29.166.50 ping statistics ---
> 3 packets transmitted, 0 packets received, 100% packet loss
> PING 199.29.166.70 (199.29.166.70): 56 data bytes
> 64 bytes from 199.29.166.70: icmp_seq=0 ttl=255 time=0.2 ms
> 64 bytes from 199.29.166.70: icmp_seq=1 ttl=255 time=0.0 ms
> 64 bytes from 199.29.166.70: icmp_seq=2 ttl=255 time=0.0 ms
> 64 bytes from 199.29.166.70: icmp_seq=3 ttl=255 time=0.0 ms
>
> --- 199.29.166.70 ping statistics ---
> 4 packets transmitted, 4 packets received, 0% packet loss
> round-trip min/avg/max = 0.0/0.0/0.2 ms
> PING 199.29.166.1 (199.29.166.1): 56 data bytes
> 64 bytes from 199.29.166.1: icmp_seq=0 ttl=64 time=0.9 ms
> 64 bytes from 199.29.166.1: icmp_seq=1 ttl=64 time=0.4 ms
> 64 bytes from 199.29.166.1: icmp_seq=2 ttl=64 time=0.5 ms
>
> --- 199.29.166.1 ping statistics ---
> 3 packets transmitted, 3 packets received, 0% packet loss
> round-trip min/avg/max = 0.4/0.6/0.9 ms
>
>
> /etc/pptpd.conf
>
############################################################################
> ####
> #
> # Sample PoPToP configuration file
> #
> # for PoPToP version 1.0.1
> #
>
############################################################################
> ####
>
> # TAG: speed
> #
> # Specifies the speed for the PPP daemon to talk at.
> # Some PPP daemons will ignore this value.
> #
> speed 115200
>
> # TAG: option
> #
> # Specifies the location of the PPP options file.
> # By default PPP looks in '/etc/ppp/options'
> #
> #option /this/is/the/options/file
>
> # TAG: debug
> #
> # Turns on (more) debugging to syslog.
> #
> debug
>
> # TAG: localip
> # TAG: remoteip
> #
> # Specifies the local and remote IP address ranges.
> #
> # You can specify single IP addresses seperated by commas or you can
> # specify ranges, or both. For example:
> #
> #  192.168.0.234,192.168.0.245-249,192.168.0.254
> #
> # IMPORTANT RESTRICTIONS:
> #
> # 1. No spaces are permitted between commas or within addresses.
> #
> # 2. If you give more IP addresses than MAX_CONNECTIONS, it will
> #    start at the beginning of the list and go until it gets
> #    MAX_CONNECTIONS IPs. Others will be ignored.
> #
> # 3. No shortcuts in ranges! ie. 234-8 does not mean 234 to 238,
> #    you must type 234-238 if you mean this.
> #
> # 4. If you give a single localIP, that's ok - all local IPs will
> #    be set to the given one. You MUST still give at least one remote
> #    IP for each simultaneous client.
> #
> localip 199.29.166.50-69
> remoteip 199.29.166.70-89
>
> # TAG: ipxnets
> #
> # This gives the range of IPX networks to allocate to clients.  By
> # default IPX network number allocation is not handled internally.
> # By putting a low and high network number here a pool of IPX networks
> # can be defined.  If this is done then there must be one IPX network
> # per client.
> #
> # The format is a pair of hex numbers without any 0x prefix separated
> # by a hyphen.
> #
> #ipxnets 00001000-00001FFF
>
> # TAG: listen
> #
> # Defines the IP address of the local interface on which pptpd
> # should listen for connections.  The default is to listen on all
> # local interfaces (even ones brought up by pptp connections, thus
> # permitting pptp tunnels inside the pptp tunnels).
> #
> #listen 199.29.166.8
>
> # TAG: pidfile
> #
> # This defines the file name in which pptpd should store its process
> # ID (or pid).  The default is /var/run/pptpd.pid.
> #
> #pidfile /var/run/pptpd.pid
>
> /etc/ppp/options
> debug
> name vpn
> auth
> require-chap
> proxyarp
>
> ifconfig
>
> eth0      Link encap:Ethernet  HWaddr 00:50:04:81:5D:FA
>           inet addr:199.29.166.8  Bcast:199.29.166.255  Mask:255.255.255.0
>           UP BROADCAST RUNNING MULTICAST  MTU:1500  Metric:1
>           RX packets:115362 errors:0 dropped:0 overruns:0 frame:0
>           TX packets:4346 errors:0 dropped:0 overruns:0 carrier:0
>           collisions:0 txqueuelen:100
>           Interrupt:10 Base address:0xde00
>
> eth1      Link encap:Ethernet  HWaddr 52:54:05:DE:8D:50
>           inet addr:172.31.1.1  Bcast:172.31.1.255  Mask:255.255.255.0
>           UP BROADCAST RUNNING MULTICAST  MTU:1500  Metric:1
>           RX packets:0 errors:0 dropped:0 overruns:0 frame:0
>           TX packets:0 errors:0 dropped:0 overruns:0 carrier:0
>           collisions:0 txqueuelen:100
>           Interrupt:9 Base address:0xdc00
>
> lo        Link encap:Local Loopback
>           inet addr:127.0.0.1  Mask:255.0.0.0
>           UP LOOPBACK RUNNING  MTU:3924  Metric:1
>           RX packets:50 errors:0 dropped:0 overruns:0 frame:0
>           TX packets:50 errors:0 dropped:0 overruns:0 carrier:0
>           collisions:0 txqueuelen:0
>
> ppp0      Link encap:Point-to-Point Protocol
>           inet addr:199.29.166.70  P-t-P:199.29.166.50
Mask:255.255.255.255
>           UP POINTOPOINT RUNNING NOARP MULTICAST  MTU:1500  Metric:1
>           RX packets:11 errors:0 dropped:0 overruns:0 frame:0
>           TX packets:69 errors:0 dropped:0 overruns:0 carrier:0
>           collisions:0 txqueuelen:10
>
>
> Douglas J. Olivier
> Network Administrator
> Bonded Collections of Tucson Inc.
> 520.322.7283
>




More information about the pptp-server mailing list