LinuxQuestions.org
Register a domain and help support LQ
Go Back   LinuxQuestions.org > Forums > Linux > Linux - Networking
User Name
Password
Linux - Networking This forum is for any issue related to networks or networking.
Routing, network cards, OSI, etc. Anything is fair game.

Notices

Reply
 
Thread Tools
Old 02-07-2008, 09:36 AM   #1
terrio
LQ Newbie
 
Registered: Jan 2007
Location: Halifax, NS
Distribution: Slackware
Posts: 29
Thanked: 0
PPTP VPN can connect, but cannot ping


[Log in to get rid of this advertisement]
Hey Guys,

I have been working trying to setup VPN access from my Slack box to a Windows VPN. I have setup PPTP and am able to connect to the VPN but am unable to ping a machine on the other side of the tunnel.

Here is the output of tail /var/log/messages after I call the VPN. It appears I am connected.

Code:
Feb  7 10:32:10 AXE pppd[32321]: CHAP authentication succeeded
Feb  7 10:32:10 AXE pppd[32321]: MPPE 128-bit stateless compression enabled
Feb  7 10:32:11 AXE pppd[32321]: local  IP address 10.22.37.51
Feb  7 10:32:11 AXE pppd[32321]: remote IP address 10.22.127.1
However, now when I try to ping a machine within the VPN it fails. Any idea what I could be missing?

Thanks
terrio is offline     Reply With Quote
Old 02-07-2008, 10:31 AM   #2
bsdunix
Senior Member
 
Registered: May 2006
Distribution: CTOS, FreeBSD, Mac OS X, Minix, OpenBSD, Slackware
Posts: 1,127
Thanked: 29
Quote:
However, now when I try to ping a machine within the VPN it fails. Any idea what I could be missing?
Just a guess, maybe the remote network is setup not to accept ping requests or send ping replies.
bsdunix is offline     Reply With Quote
Old 02-07-2008, 11:59 AM   #3
thecarpy
Member
 
Registered: Apr 2005
Location: France
Distribution: Ubuntu Intrepid
Posts: 49
Thanked: 1
1. ping yourself 10.22.37.51
2. the other side 10.22.127.1
3. ping another system in the target network, if that fails, it is a routing issue - I think ;-)

add this route:

route add -net 10.22.0.0 netmask 255.255.0.0 gw 10.22.127.1

if that does not help, please print your routing table ...
thecarpy is offline     Reply With Quote
Old 02-08-2008, 01:02 PM   #4
terrio
LQ Newbie
 
Registered: Jan 2007
Location: Halifax, NS
Distribution: Slackware
Posts: 29
Thanked: 0

Original Poster
Thanks all for the info. BSDUNIX you hit the nail on the head, pings are disabled on the network I am trying to connect.
I so I moved forward with thecarpy's suggestion to add the entry to the route table, and then attempted to connect to my
workstation using VNC, however the connection timed out and failed. I am unable to determine why this could be, so I have
included my routing table below. Does everything look ok?

Code:
Kernel IP routing table
Destination     Gateway         Genmask         Flags Metric Ref    Use Iface
10.22.127.1     *               255.255.255.255 UH    0      0        0 ppp0
localnet        *               255.255.255.0   U     0      0        0 eth0
10.22.0.0       10.22.127.1     255.255.0.0     UG    0      0        0 ppp0
loopback        *               255.0.0.0       U     0      0        0 lo
default         192.168.1.1     0.0.0.0         UG    1      0        0 eth0
Thanks for the help!
terrio is offline     Reply With Quote
Old 02-12-2008, 06:59 AM   #5
terrio
LQ Newbie
 
Registered: Jan 2007
Location: Halifax, NS
Distribution: Slackware
Posts: 29
Thanked: 0

Original Poster
Thanks for all the help! I now have VPN and VNC working. It turns out that the issue was related to routing. It turns out that the machine I was trying to remote to was on a different subnet, so I had to change the route to allow for this. Thanks again.
terrio is offline     Reply With Quote

Reply

Bookmarks


Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
PPTP VPN cant connect to Lan Spunky Linux - Networking 10 10-17-2008 10:18 AM
LXer: Linux Configure point to point tunneling PPTP VPN client for Microsoft PPTP vpn server LXer Syndicated Linux News 0 06-13-2007 09:46 AM
Pptp Vpn coolb Linux - General 2 08-01-2006 08:42 AM
Vpn, Pptp???? ABL Linux - Networking 3 03-11-2005 05:54 PM
creating VPN with PPtP to connect to a router Lleb_KCir Linux - General 3 08-12-2004 12:50 AM


All times are GMT -5. The time now is 09:19 AM.

Main Menu
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
RSS2  LQ Podcast
RSS2  LQ Radio
Twitter: @linuxquestions
identi.ca: @linuxquestions
Facebook: @linuxquestions
Open Source Consulting | Domain Registration