Tell me more ×
Server Fault is a question and answer site for professional system and network administrators. It's 100% free, no registration required.

I'm trying to connect to company private network via VPN using PPTP.

I assume that my connection setup works well, as I see different IP address at http://www.whatismyip.com/ once I connect to VPN. Also, my ip route table changed. However, I can't access the database server in this network.

I tried:

nmap -sP 192.168.1.*

but I can see just me, my wifi router, remote computer I'm connected through VPN and another IP, which is probably me again in VPN (the same address is in ifconfig ppp0 as inet addr).

The database server I'm looking for should be at 192.168.1.200.

I've never did anything like that and I'm missing a huge piece of knowledge in this area, so I don't even know, what I'm supposed to look for to do this thing work.

EDIT

Well, I found the answer here https://mail.gnome.org/archives/networkmanager-list/2008-August/msg00098.html

The problem was missing gateway.

Ip routes before connecting to VPN:

ip route list
default via 192.168.1.1 dev wlan0  proto static 
192.168.1.0/24 dev wlan0  proto kernel  scope link src 192.168.1.122

After connecting to VPN:

ip route list
default via 192.168.1.1 dev wlan0  proto static 
<vpn-server> via 192.168.1.1 dev wlan0  proto static 
<vpn-server> via 192.168.1.1 dev wlan0  src 192.168.1.122 
192.168.1.0/24 dev wlan0  proto kernel  scope link  src 192.168.1.122 
192.168.1.160 dev ppp0  proto kernel  scope link  src 192.168.1.163

After connecting to VPN and adding route:

route add -net 192.168.1.0 netmask 255.255.255.0 dev ppp0

ip route list
default via 192.168.1.1 dev wlan0  proto static 
<vpn-server> via 192.168.1.1 dev wlan0  proto static 
<vpn-server> via 192.168.1.1 dev wlan0  src 192.168.1.122 
192.168.1.0/24 dev ppp0  scope link
192.168.1.0/24 dev wlan0  proto kernel  scope link  src 192.168.1.122 
192.168.1.160 dev ppp0  proto kernel  scope link  src 192.168.1.168

Now I can see desired database server. Although I still don't understand what's going on. Hope it helps anyone.

share|improve this question

Know someone who can answer? Share a link to this question via email, Google+, Twitter, or Facebook.

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Browse other questions tagged or ask your own question.