Set up the client at site A

From the VPN menu choose OpenVPN and go to the Client tab. Click the + button to configure a client.

Enter these values:

Disablednot checked 
Server ModePeer to Peer (Shared Key) 
ProtocolUDPsame as Site B
Device modetun 
InterfaceWAN 
Local portleave empty 
Server host or ad- dressSite B’s public IP address or FQDN 
Server port9876the port Site B is running the OpenVPN server on
Proxy host or ad- dressleave empty if not using a proxy 
Proxy portleave empty if not using a proxy 
Proxy authentica- tion extra optionsleave empty if not using a proxy 
Server host name resolutioncheck if Site B sometimes has connectivity prob- lems 
Shared Keydo not check ‘Automatically generate a shared key’ but paste the Shared Key from site B 
Encryption     algo- rithmAES-256-CBC (256-bit)same as Site B
Hardware CryptoChoose ‘No Hardware Crypto Acceleration’ un- less the hardware has an accelerator 
IPv4 Tunnel Net- work192.168.204.0/30same as Site B
IPv6 Tunnel Net- workleave empty 
IPv4 Remote Net- work/s192.168.20.0/24site A’s subnet
IPv6 Remote Net- work/sleave empty 
Limit         outgoing bandwidthleave empty unless required 
Compressionsame as Site B 
Type-of-Servicenot checked 
Advancedredirect-gateway def1;This makes all traffic, including Inter- net traffic, go through the tunnel.

Click Save.

The tunnel should now work and internet traffic should be routed from Site A through the tunnel out site B.

By Vorkbaard, 2013-07-29 – gmail{a}vorkbaard[.]nl