I have Nethserver installed with one NIC behind a DD-WRT router and want to use it as an OpenVPN server. My reasons for using this are to be able to access computers on my LAN, to securely brows the Internet from computers and smart phones, and to access websites without restriction from locations that may traffic.
I have it configured and working in bridged mode, but I cannot get routed mode to work.
When I tried to configure it for routed mode, my client machines (Android 4.4+ and PC Windows 7) clients connect and are assigned an IP address in the routed range below but I cannot access other computers on the LAN, or browse the web. Nor does entering an IP address rather than a name in the browser work.
I am guessing I need to either set up a static route on my home gateway or on Nethserver. but experimenting failed.
Here is my configuration:
Home gateway (DD-WRT):
External IP (DHCP with Dynamic DNS)
Internal IP: 10.20.30.1, DHCP server 10.20.30.101-10.20.30.49
Nethserver IP: 10.20.30.5
Gateway is configured to forward UDP and TCP traffic to 10.20.30.5.
Nethserver OpenVPNbridged mode configuration that works:
username, password and certificate - selected.
IP range start 10.20.30.180, end: 10.20.30.199
LZO Compression selected
The routed configuration that doesn’t work:
Route all client traffic through VPN - selected
Allow client-to-client network traffic - selected