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

Re: [Openvpn-users] OpenVPN and Samba over Tun.

  • Subject: Re: [Openvpn-users] OpenVPN and Samba over Tun.
  • From: "Dave" <dmehler26@xxxxxxxxxx>
  • Date: Mon, 19 Nov 2007 01:27:37 -0500

    Thanks. On my gateway i added manually:
route add
but this didn't enable to ping other boxes say and samba still 
can't find the network shares. Should i think about going bridge?
    Suggestions welcome.

----- Original Message ----- 
From: "David Balazic" <David.Balazic@xxxxxxxxxxxxxxxxxx>
To: "Dave" <dmehler26@xxxxxxxxxx>; <openvpn-users@xxxxxxxxxxxxxxxxxxxxx>
Sent: Sunday, November 18, 2007 7:47 AM
Subject: RE: [Openvpn-users] OpenVPN and Samba over Tun.

You need a route from the LAN machines to the VPN client.
Either set up a
on each LAN host that needs to comunicate with VPN client(s)
or do that on the gateway.

PS: Did anyone notice, that 80% of questions are about routing ? ;)


From: openvpn-users-bounces@xxxxxxxxxxxxxxxxxxxxx on behalf of Dave
Sent: Sun 18-Nov-07 04:29
To: openvpn-users@xxxxxxxxxxxxxxxxxxxxx
Subject: [Openvpn-users] OpenVPN and Samba over Tun.

 I'm trying to get OpenVPN working with samba. My goal is to have a remote
client for now though possibly expanding to more, initiate an openvpn
connection and be able to use samba shares as if it was on the local
network. The openvpn machine is on, samba server is,
and the openvpn hands out IP's in the net as in the server
howto. The remote client in this example is on network.
 I'm following http://openvpn.net/howto.html and have established a basic
tunnel with tls authentication. From the client machine on the network I can ping, and which is the
openvpn server so i have basic point to point connectivity. I'm now
expanding the scope of the connection to include other machines particularly
the samba server at I added:
push "route"
on the serverside and restarted. I am confused about the next part of the
docs. Http://openvpn.net/howto.html#scope says:

"Next, you must set up a route on the server-side LAN gateway to route the
VPN client subnet ( to the OpenVPN server (this is only
if the OpenVPN server and the LAN gateway are different machines).

Make sure that you've enabled
forwarding on the OpenVPN server machine."

The Openvpn server and the lan gateway are not on the same machine, the lan
gateway is running FreeBSD the openvpn server is running Linux. If anyone
can clarify this point i'd appreciate it.
The final objective was to add the hosts allow directive to the smb.conf on, so i added hosts allow to the existing hosts.
 Aside from the routing did i miss a step? As i said my goal connect up, and
access drives either by mapped drive letter, unc drive convention, or
network neighborhood. Is this doable?

Openvpn-users mailing list

Openvpn-users mailing list