[OpenVPN home] [Date Prev] [Date Index] [Date Next]
[OpenVPN mailing lists] [Thread Prev] [Thread Index] [Thread Next]
Google
 
Web openvpn.net

[Openvpn-users] Question regarding network routing and Open VPN


  • Subject: [Openvpn-users] Question regarding network routing and Open VPN
  • From: Oddgeir Sjøset <oddgeir.sjoset@xxxxxxxxx>
  • Date: Fri, 14 May 2004 09:55:32 +0200
  • Importance: Normal

If anyone could answer this question it would be mostly appreciated.

More on the set up:

Server information (windows 2000 server edition)

ip adresses:

192.168.1.138 mask 255.255.255.0 gw 192.168.1.1

ovpn.conf

remote *ip address*
port 4998
proto udp
dev tap
ifconfig 10.3.0.1 255.255.255.0
secret key.txt
ping 15
verb 4
mute 10

Route table:

192.168.3.0 mask 255.255.255.0 10.3.0.2


Client information (windows xp)

ip addresses:

192.168.3.100 mask 255.255.255.0 gw 192.168.3.1

Ovpn.conf

remote *ip address*
port 4998
proto udp
dev tap
ifconfig 10.3.0.2 255.255.255.0
secret key.txt
ping 15
verb 4
mute 10

Route table

192.168.1.0 mask 255.255.255.0 10.3.0.1


So far everything works fine, the connection is established and working. I
can ping the other side by both 10.3.0.x and 192.168.x.x from either the
client or the server. I do however get a problem when I want some other
machines on the network to ping across the VPN.

In example.

Computer 3 set up. (windows 2000)

192.168.1.146 mask 255.255.255 gw 192.168.1.1

if i ping the client by either 10.3.0.2 or 192.168.3.100 i only get timed
out, which is understandable because of the fact that the gateway doesn't
have a set way to get to the client, which it'll never get aswell.

So I tried to add this to the route table on computer 3:
route add 10.3.0.0 mask 255.255.255.0 192.168.1.138

At this point i manage to ping 10.3.0.1 but not 10.3.0.2

So then i decided to try another route:
route add 192.168.3.0 mask 255.255.255.0 192.168.1.138

At this point I don't manage to ping either.

What can I do in order so it'll be possible to ping across the networks?



____________________________________________
Openvpn-users mailing list
Openvpn-users@xxxxxxxxxxxxxxxxxxxxx
https://lists.sourceforge.net/lists/listinfo/openvpn-users