openvpn client access remote LAN

Karl Auer kauer at biplane.com.au
Mon Sep 5 10:24:42 UTC 2016


On Mon, 2016-09-05 at 12:04 +0200, tux john wrote:
> Hi. I do have a LAN (192.168.1.0/24) with an ubuntu server
> (192.168.1.50) that acts as the openvpn server.
> All remote clients get an IP of 10.8.0.0/24 address range. The
> clients can access athe server but not the other machines of the LAN
> 192.168.1.0/24. Anyone that has an idea how to fix that, please?

You may need to turn on IPv4 forwarding so that your server can act as
a router and route between the two networks. You can test this theory
using this command:

   sysctl net/ipv4/ip_forward

If it says the current value is 1, then my theory is poo-poo and you should stop reading this email.

Otherwise, set it to one:

   sudo sysctl -w net/ipv4/ip_forward=1

If it doesn't work it will do no harm, but best to switch it back off:

   sudo sysctl -w net/ipv4/ip_forward=0

If it does work, make the change permanent by editing /etc/sysctl.conf

Regards, K.

PS: Please don't send HTML-only emails to this list. Send plain text.

-- 
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Karl Auer (kauer at biplane.com.au)
http://www.biplane.com.au/kauer
http://twitter.com/kauer389

GPG fingerprint: E00D 64ED 9C6A 8605 21E0 0ED0 EE64 2BEE CBCB C38B
Old fingerprint: 3C41 82BE A9E7 99A1 B931 5AE7 7638 0147 2C3C 2AC4







More information about the ubuntu-users mailing list