I want to setup a VPN between two small office network :
1st Network : ADSL Router with DHCP - 3 Server(Static IP) - 20 WorkStation(DHCP)
2nd Network : ADSL Router with DHCP - 1 Server(Static IP) - 5 WorkStation(DHCP)
I wanna insert in each network a Linux OpenVPN Server for linking this two small network, for this scenario wich type of VPN is better ? Bridged or Routed ?
If i bride this two network, could i have some problem with two DHCP Server ?
I Want that the client of 1st Network get IP Address from DHCP Server located in 1st Network and not also from DHCP Server located in the 2nd Network…
Best Answer
To keep this as easy as possible, make sure that the two offices are on different subnets, e.g. 192.168.10.0/24 for the first one and 192.168.20.0/24 for the second one. Then use OpenVPN to build the VPN connection, using a completely separate subnet (e.g. 192.168.254.0/24). Then add routes for the office of the other network to thew ADSL router, pointing at the machine running the OpenVPN Server/Client.
Now you have the following situation:
I would recommend bridged networking for the OpenVPN instances, but, since they are not located on your default gateways, the extra routes are still needed.