LinuxQuestions.org
Help answer threads with 0 replies.
Go Back   LinuxQuestions.org > Forums > Linux Forums > 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
  Search this Thread
Old 02-19-2009, 11:09 AM   #1
m00f3r
LQ Newbie
 
Registered: Feb 2009
Posts: 2

Rep: Reputation: 0
VPN; pppd; ip route


I am trying to connect to a VPN via my linux box
I am able to connect via my Win laptop (ack!)
Please help!!!!

# First I bring up the VPN
-bash-3.2$ sudo pon vpn

# Here are the routes after it is up, <pub-ip-of-vpn> sanitized
-bash-3.2$ sudo ip route show
<pub-ip-of-vpn> dev ppp0 proto kernel scope link src 192.168.10.133
192.168.1.0/24 dev eth0 proto kernel scope link src 192.168.1.5
default via 192.168.1.1 dev eth0

# Add the VPN the best I know how - obviously wrong!!
# ----------------------------------------------------
-bash-3.2$ sudo ip route append 192.168.10.0/24 via 192.168.10.133

-bash-3.2$ sudo ip route show
<pub-ip-of-vpn> dev ppp0 proto kernel scope link src 192.168.10.133
192.168.1.0/24 dev eth0 proto kernel scope link src 192.168.1.5
192.168.10.0/24 via 192.168.10.133 dev ppp0
default via 192.168.1.1 dev eth0

# Try to connect, no dice!
-bash-3.2$ ping 192.168.10.1
PING 192.168.10.1 (192.168.10.1): 56 data bytes
^C--- 192.168.10.1 ping statistics ---
5 packets transmitted, 0 packets received, 100% packet loss

# traceroute, no dice!
-bash-3.2$ traceroute 192.168.10.1
traceroute to 192.168.10.1 (192.168.10.1), 30 hops max, 40 byte packets
1 * * *
^C

-bash-3.2$ sudo poff vpn
 
Old 02-22-2009, 04:20 PM   #2
Mara
Moderator
 
Registered: Feb 2002
Location: Grenoble
Distribution: Debian
Posts: 9,696

Rep: Reputation: 232Reputation: 232Reputation: 232
If I understand the configuration right, it should be
ip route append 192.168.10.0/24 via <vpn address>

It seems in the current config the packets simply go using the default gateway when you try to access the tunnel.
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

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
pppd connects and route set up, but cannot resolve detly Linux - Networking 12 02-25-2008 11:16 PM
PPPd and IPsec on Linux VPN - how to? Joncamp Linux - Server 0 10-22-2006 11:37 PM
pppd connects, nothing uses route detly Linux - Networking 7 10-08-2005 03:24 PM
pppd vpn goes down frequently pudhiyavan Linux - Networking 0 02-07-2004 02:36 AM
pppd route additions Tarantismic Yak Linux - Networking 1 10-31-2001 05:00 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Networking

All times are GMT -5. The time now is 08:58 AM.

Main Menu
Advertisement
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
Twitter: @linuxquestions
Open Source Consulting | Domain Registration