Page 1 of 1

Help with my network with openvpn

Posted: Wed Sep 21, 2011 6:06 pm
by dodopolees
Hello.

How can I get my clients to see each others? For exemple: I have a server (192.168.0.0/24) and 2 clients (192.168.1.0/24, 192.168.2.0/24). The server sees all the clients, right? But I have to make my client1 (192.168.1.0/24) see my client2 (192.168.2.0/24). How can I do that :?: :?:

Thanks, Aline Carvalho
Brazil

Re: Help with my network with openvpn

Posted: Wed Sep 21, 2011 9:58 pm
by janjust
you mention clients but you lists subnets...
2 VPN clients (not subnets!) can see each other if the option

Code: Select all

client-to-client
is added to the server config; client subnet to client subnet routing is also possible but requires more effort and depends on how the rest of your VPN is set up.

Re: Help with my network with openvpn

Posted: Fri Sep 23, 2011 6:41 pm
by dodopolees
Ok, This is correct... My network behind my server sees the network behind my client1, right... What I need is the client1' network sees the client2' network.

Re: Help with my network with openvpn

Posted: Sun Sep 25, 2011 9:58 pm
by janjust
  • * add 'client-to-client' to the server config
    * make sure the server LAN can see the LAN behind both clients
    * push the proper routes (both client LANs to both clients)
    * adjust firewalling

Re: Help with my network with openvpn

Posted: Thu Oct 13, 2011 3:45 am
by dodopolees
How do I do this: "*push the proper routes (both client LANs to both clients)"
I think I didn't understand.

Thanks for the support.

Re: Help with my network with openvpn

Posted: Thu Oct 13, 2011 8:35 am
by janjust
read the openvpn docs on routing ; also read up routing in general. This has little to do with openvpn (except for the configuration statement "route A.B.C.D [NETMASK]" .