Take the 2-minute tour ×
Server Fault is a question and answer site for system and network administrators. It's 100% free, no registration required.

I have a main office with a network 192.168.40.0/24 and a subsidiary office that have a network with this address 192.168.1.0/24, i want to link this office :

Allow PC on the main office to access PC in the subsidiary and PC in subsidiary office to access PC on main office; in addition i want to allow some roadwarrior user to connect to main office Network with their notebook.

I want to use OpenVPN, and in subsidiary office i have a router with DD-WRT on board that theorically can connect to VPN Server on main office and distribute connection to each client.

What's the best way to implement a similar VPN?

Do i need to setup a routed or a bridged VPN ?

How to configure VPN serveR ?

share|improve this question

1 Answer 1

up vote 1 down vote accepted

Set up an OpenVPN server in the main office in client/server mode using x509 certificates and using the 'client-config-dir' option. Place a client-config file for the dd-wrt router in the client-config-dir directory

Configure the dd-wrt to connect as a regular client, but make sure to use a fixed IP and using an 'iroute' statement to tell the openvpn server that the network 192.168.1.0/24 is behind the dd-wrt "client".

The road warriors can connect as regular clients to the OpenVPN server.

Most of this is explained in the OpenVPN HOWTO pages, especially the part 'expanding the scope' for information on the ccd-file and 'iroute' statements.

HTH,

JJK

share|improve this answer

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.