VPN routing
Hello everyone! I have got some struggles with PPTP connection to the VPN-server of my company. Please help me to resolve them
First of all I need to say that connection to the same VPN-server using Windows on the same laptop works properly. So, i guess there is some routing issues that I cannot understand. Please let me explain the connection process: 1. supo pon connection_name 2. later on I can see in the logs that connection to the server is successful Code:
Mar 28 16:22:02 laptop_name pppd[3427]: EAP authentication succeeded Code:
route add -net 172.17.0.0/16 dev ppp0 Code:
route add -net 172.17.0.0 netmask 255.255.0.0 gw 172.17.19.19 dev ppp0 In addition please take a look on the screenshot of Windows routing where everything work properly (link here http://i73.fastpic.ru/big/2016/0403/...b5963146de.png ) Thank you in advance! |
Are you able to ping the VPN gateway successfully? Can you just show us your complete routing table for a better picture?
Code:
ip route |
Quote:
Code:
ping 172.17.19.19 Code:
ip route |
Well, that looks ok to me, assuming 172.16.0.0/12 172.17.0.0/16 are where the resources can be reached. Are you trying to reach these resources by IP address or by DNS name?
|
Quote:
|
You may need to add a suitable company name server in /etc/resolv.conf
For example, in my case, the name server machine is the same as the VPN gateway. Yours may or may not be. |
Quote:
|
almost there ...
To make it clear: VPN and routing are just fine. What you have is a DNS/nameserver issue.
If you can find out the IP address of the nameserver for that remote network, you can add that to your /etc/resolv.conf (or set your VPN to use it automagicly: works in some versions) and then you can address servers by name. Without that working, you will have to address the remote resources by IP address. (IPv4 only, I would assume by the detail provided) |
Quote:
1. sudo gedit /etc/resolvconf/resolv.conf.d/head 2. added Code:
search domain_name Re-connected to the VPN, added routings and still no luck...Please advice |
You can't guess at these things. The VPN DHCP server would normally pass these details automatically. You appear to be configuring and connecting manually. You need to be careful when manually assigning a name server, since when you disconnect the VPN, your ISP name server(s) need to be present again for name resolution to work. Network Manager for exmaple won't touch a manually edited /etc/resolv/conf file.
Anyway, I would suggest that you use 'ipconfig /all' (shell command) via your Windows install to obtain the DNS server information when connected by VPN. |
Quote:
http://i76.fastpic.ru/big/2016/0404/...5590ccec3f.png Also, be advised that I edited head file, because /etc/resolv.conf is created automatically and network manager reboot take an effect on it. I'd like to ask you to tell me how I should add these DNS-servers: with domain or search option Thank you in advance! |
Ok, your DNS servers are listed as:
172.22.0.10 172.17.17.10 172.16.0.100 I'm using Network Manager as well, and my DNS servers are configured automatically for my company VPN, but you can specify other DNS servers in your VPN connection definition. Refer to the IPv4 settings tab. However, I'm surprised this is not happening automatically, along with a default route for ppp0. |
Quote:
|
Quote:
|
Quote:
Code:
nameserver 172.22.0.10 |
All times are GMT -5. The time now is 04:50 AM. |