client side LAN,multiple user access howto

Business solution to host your own OpenVPN server with web management interface and bundled clients.
Post Reply
network786
OpenVpn Newbie
Posts: 2
Joined: Mon Oct 10, 2011 6:02 am

client side LAN,multiple user access howto

Post by network786 » Mon Oct 10, 2011 6:52 am

Assume that we have openvpnAS having public ip and fully configured.
Now from client side having Linux machine,which have two LAN cards.one brings in internet(wan) and another LAN is to plug in to switch to connect different VoIP devices.

how we should configure the client side Linux machine to act AS router.

User avatar
swg0101
OpenVPN User
Posts: 23
Joined: Fri Sep 23, 2011 7:03 am

Re: client side LAN,multiple user access howto

Post by swg0101 » Mon Oct 10, 2011 8:59 pm

From the OpenVPN Knowledgebase:
"Basically, the default router on the client gateway LAN needs to know which routes to forward to the VPN gateway client machine.

So take a simple case where you want other machines on the client gateway LAN to be able to connect to 10.8.0.0/24. Let's say that the client LAN is numbered 192.168.4.0/24, the VPN gateway client machine is 192.168.4.4, and the router for the LAN is 192.168.4.1.

First, on the AS server, set the properties for the VPN gateway client.
Set "Allow client to act as a VPN gateway for these client-side subnets" to 192.168.4.0/24.

Next on the VPN gateway LAN, add the following route to the LAN router so that the LAN knows how to forward packets back to the VPN:

10.8.0.0/24 -> 192.168.4.4

Also note that in the special case where VPN gateway client machine and the default router for the VPN gateway client LAN is the SAME machine, then nothing special needs to be done."
--- Sorry, I probably can't help you, so you can stop asking now... ;)

Post Reply