As stated in the Routing and server-side routing section in the previous chapter, a VPN is only truly useful when the VPN clients have access to server-side resources. In order to access these server-side resources, routing is needed. This ensures the proper flow of network traffic between the server-side LAN and the VPN.
One of the most common use cases for setting up a VPN is to allow remote workers to access resources on a corporate network. Files on a corporate network are often stored on a Windows-based file server. In order to browse Windows file shares using network names, a WINS server will be required.
The server-side LAN is 192.168.122.0/24, and on this subnet, the resources are located that the VPN clients need to access.
We start out with the
basic-udp-server.conf file and add three lines:
proto udp port 1194 dev tun server 10.200.0.0 255.255.255.0 topology...