LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
Home Forums Tutorials Articles Register
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 08-10-2014, 06:23 PM   #1
infern0
LQ Newbie
 
Registered: Apr 2013
Posts: 10

Rep: Reputation: Disabled
VPN client routing setting


Client computer is connected to the VPN, has two intefaces: wlan0 for internet and ppp0 for VPN.
After setting route add default gw 192.168.2.1 wlan0 and route add default gw 10.10.10.1 ppp0, connection to VPN works but very laggy. Access to 10.10.10.X and e.g. google.com is very slow. When computer pings 10.10.10.X and 8.8.8.8 simultaneously, I see that only one of them gets pong, when one gets, second doesn't and it rotate. I'm not sure if it make sense for you, sorry for my english.
My routing table:
Code:
default         10.10.10.1      0.0.0.0         UG    0      0        0 ppp0
default         192.168.2.1     0.0.0.0         UG    0      0        0 wlan0
10.10.10.1      *               255.255.255.255 UH    0      0        0 ppp0
<real_ip_of_10.10.10.1>    192.168.2.1     255.255.255.255 UGH   0      0        0 wlan0
loopback        *               255.0.0.0       U     0      0        0 lo
192.168.2.0     *               255.255.255.0   U     0      0        0 wlan0
Can somebody say me, why don't work simultaneously(how I find out above) these two connections? And how set route on ppp0 correct.
Thanks a lot.
 
Old 08-10-2014, 10:23 PM   #2
infern0
LQ Newbie
 
Registered: Apr 2013
Posts: 10

Original Poster
Rep: Reputation: Disabled
I found solution on https://wiki.gentoo.org/wiki/Vpnc
Command route add -net 10.10.10.0 netmask 255.255.255.0 dev ppp0 solved it. I thought that every connections to 10.10.10.x are transmitted throught ppp0 automatically. I'm not sure how it works. Now I think gateway route on subnet is setting automatically when starting ppp0 interface(in my system via command pon <peer_name>), it's ok. How is it with transmission to 10.10.10.x IPs? When I connect laptop on eth0, I can access his IP without any issue which I had with ppp0. What's different in base? If somebody can response me, I'l be happy.
 
  


Reply



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
Setting up pptp (VPN) client on slack? vxd Slackware 9 10-30-2015 05:31 AM
VPN not routing through server but still local routing pptpd narnie Linux - Server 1 01-21-2014 06:03 PM
Cisco VPN Client routing problem on Debian Sarge pohl886 Linux - Networking 9 09-10-2006 05:49 PM
Routing issue with VPN Client into PPP/Poptop loopy69 Linux - Networking 1 10-07-2004 08:48 AM
[ROUTING] VPN client networking/firewall loopy69 Linux - Security 0 10-05-2004 08:13 PM

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

All times are GMT -5. The time now is 01:59 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