How to Do Samba on OpenVPN
With OpenVPN, you can connect to Samba shares across your network. OpenVPN is, as the name suggests, an open-source virtual private network, or VPN, application. Samba is a protocol used by both Linux- and Windows-based computers to share data with one another. OpenVPN has direct support for connecting to Samba shares by utilizing routing dev tunnels between the computers. This allows you to connect to any LAN Samba over a VPN. This also requires you to configure Samba for the connection.
Instructions
-
-
1
Open the "smb.conf" Samba configuration file with your preferred text editor on the host machine. This file is located wherever you installed the application to. Locate the "hosts allow" line and ensure that the server-side LAN subnet, the VPN IP pool and the local IP are all listed. For example "hosts allow = 10.66.0.0/24 10.8.0.0/24 127.0.0.1" (without quotes). If the Samba is on your local machine, then do the same but with the "interfaces" tag, rather than "hosts allow."
-
2
Open OpenVPN.
-
-
3
Click "New." Type the "\\" followed by the VPN IP followed by a "\" and then the Samba share name folder. Press "Enter" to connect.
-
1