|
|
----- Original Message ----- From: "Joerg Kempken" <jkempken@xxxxxx> > Lets say you have a openvpn server and 2 clients with a network behind them. > client a network 172.16.1.x > client b network 10.0.2.x > > > you now connect to the openvpn server. > > > openvpn server 192.168.51.1 > client a 192.168.51.2 > client b 192.168.51.3 > > > so what do i have to configure that every client can get to the others > network? Create two client config files like so (Where ccd is your client config directory and clientx is the common name from your client cert) ccd/clienta contains: #Tell the client what IP address and tunnel endpoint address to use ifconfig-push "192.168.51.2 192.168.51.1" #Tell OpenVPN that this client owns the 172.16.1.0/24 network iroute 172.16.1.0 255.255.255.0 ccd/clientb contains: #Tell the client what IP address and tunnel endpoint address to use ifconfig-push "192.168.51.3 192.168.1 #Tell OpenVPN that this client owns the 10.0.2.0/24 network iroute 10.0.2.0 255.255.255.0 Then in the server config file put: #Tell the SERVER to install routes for any traffic destined for the following networks into the tunnel route 10.0.2.0 255.255.255.0 route 172.16.1.0 255.255.255.0 #Tell all CLIENTS to install a route for any traffic destined for the following networks into the tunnel. #N.B. OpenVPN will not push this out to the client who specifies an iroute for this network. push "route 172.16.1.0 255.255.255.0" push "route 10.0.2.0 255.255.255.0" Hope this helps, Roland ____________________________________________ Openvpn-users mailing list Openvpn-users@xxxxxxxxxxxxxxxxxxxxx https://lists.sourceforge.net/lists/listinfo/openvpn-users |