Content #
Server configuration:
push "route 192.168.122.0 255.255.255.0"
push "redirect-gateway"
push "dhcp-option WINS 192.168.122.1"
The first extra line adds the server-side LAN to the set of networks that need to be routed via the VPN.
The second line redirects all network traffic via the VPN tunnel. This line is needed to ensure that OpenVPN’s TAP-Win adapter is considered private. File sharing is possible only using network adapters that are private (as opposed to public network adapters).
The last extra line instructs the OpenVPN server to push an extra DHCP option to the OpenVPN client, containing the IP address of the WINS server.
The Windows command-line tool nbtstat is very valuable when troubleshooting Windows file sharing problems.
From #
Mastering OpenVPN