When connected to a vpn can ping one resource, but not another

Troyd1

Commendable
Aug 5, 2016
5
0
1,510
I am using the windows vpn client. When it connects, I am on a 192.168.0.xxx network. I can ping some 192.168.0.xxx resources, but others do not reply. I did a tracert on one the works and it only shows 3 hops all within the vpn, but when I try one that does not work, it looks as if it is going out the regular gateway. Any suggestions on what might be wrong?
 
Solution
You would need the vpn up.

ROUTE ADD 10.10.10.0 mask 255.255.255.0 ??.??.??.??

You should see what the ?? part needs to be set to in the route print command.

Troyd1

Commendable
Aug 5, 2016
5
0
1,510
I also just found out that if I have the use default gateway on remote network checked on the vpn connection, it works, but I don't want to do that because then my email does not work. Any way to get all traffic that is going to the 192.168.0 network to go through the vpn connector.
 

Troyd1

Commendable
Aug 5, 2016
5
0
1,510
No, mine is 192.168.2.xxx. my default gateway is 192.168.2.2 and my ip (from dhcp on the router) is 192.168.2.116, so that should not be a problem.
 
If you do a route print from the command line does it show the whole subnet for 192.168.0.x going to the vpn. I assume when you click the box it changes the 0.0.0.0 route to point to the vpn interface rather than your actual Ethernet. You might be able to just add a route for 192.168.0.0/24 and send it to the vpn. It to a point depends on the vpn software but I would have guessed it would already have that route.
 

Troyd1

Commendable
Aug 5, 2016
5
0
1,510
No, the route stays the same. After looking at the route print, the interface is 10.2.50.167. there are 4 routes to the 108.168.0.xxx network and these are the resources that I can get to, but the ones that I cannot get to are not in there. What would determine that and how can I add one?
 
Not sure why it is doing what it is vpn programs vary a lot between them. Adding is pretty simple ROUTE ADD. I would add the whole subnet and see what happens adding lots of single machines by hand is very tedious.

Now if you tried to use the route add common on the one we use at work the vpn would terminate immediately. We try to force all traffic into the tunnel.
 

Troyd1

Commendable
Aug 5, 2016
5
0
1,510
How would I do route add for the whole subnet and would it only apply to that vpn connection? Would I connect then vpn and then do the command?