openVPN + routing problems

William Cooper williamcooper at
Fri Dec 13 11:10:30 GMT 2002

Morning folks, hope we are all well and such.

Right this morning me and a friend of mine have decided to setup a VPN
between our networks over the internet, we went for openVPN, after
scratching our heads for a while and shouting we got a link working
between our networks.

Anyway heres a pretty diagram to show our setup:

ME						   friend

gateway       -------internet--------   gateway                   
   |					             |
   |					             |
 [switch]				          [switch]
   | \					       | \
   |  \VPN client			             |  \VPN server
   |			       |
   |					             |
clients				          clients
192.168.0.*                             10.0.0.*

Right so when I'm on the VPN client (FreeBSD 4.6 stable), I can ping get into its services etc.

and on the VPN server (FreeBSD 4.7 release), my friend can ping and get into its services.

Our problem is we want clients on both networks to be able to contact
each other, so can ping/contact with no problem.

What we have done so far is this, the gateway on my side routes traffic
to other networks (the internet), and we wanted the gateway to send
traffic for 10.0.0.* to the VPN client, so we added these two lines to
the rc.conf on the GATEWAY:


(Please note we aren=92t networking geniuses)

So in theory traffic for 10.0.0.* goes to, next I added
this line to the VPN client in rc.conf:


Thinking it would route the traffic down the VPN and reach its
destination, well No that didn=92t happen, when trying to ping
from (windows 2000 professional) I get:

Pinging with 32 bytes of data:

Request timed out.
Request timed out.
Request timed out.
Request timed out.

Ping statistics for
    Packets: Sent =3D 4, Received =3D 0, Lost =3D 4 (100% loss),
Approximate round trip times in milli-seconds:
    Minimum =3D 0ms, Maximum =3D  0ms, Average =3D  0ms

So I've done something wrong or haven=92t done something I should of.
Please point me into the right direction.


William Cooper

More information about the Ukfreebsd mailing list