Help with my network with openvpn

All comments and questions related to the functionality of the OpenVPN web pages and forum should go here.

Moderators: TinCanTech, TinCanTech, TinCanTech, TinCanTech, TinCanTech, TinCanTech

Post Reply
dodopolees
OpenVpn Newbie
Posts: 3
Joined: Wed Sep 21, 2011 5:58 pm

Help with my network with openvpn

Post by dodopolees » Wed Sep 21, 2011 6:06 pm

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

User avatar
janjust
Forum Team
Posts: 2703
Joined: Fri Aug 20, 2010 2:57 pm
Location: Amsterdam
Contact:

Re: Help with my network with openvpn

Post by janjust » Wed Sep 21, 2011 9:58 pm

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.

dodopolees
OpenVpn Newbie
Posts: 3
Joined: Wed Sep 21, 2011 5:58 pm

Re: Help with my network with openvpn

Post by dodopolees » Fri Sep 23, 2011 6:41 pm

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.

User avatar
janjust
Forum Team
Posts: 2703
Joined: Fri Aug 20, 2010 2:57 pm
Location: Amsterdam
Contact:

Re: Help with my network with openvpn

Post by janjust » Sun Sep 25, 2011 9:58 pm

  • * 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

dodopolees
OpenVpn Newbie
Posts: 3
Joined: Wed Sep 21, 2011 5:58 pm

Re: Help with my network with openvpn

Post by dodopolees » Thu Oct 13, 2011 3:45 am

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.

User avatar
janjust
Forum Team
Posts: 2703
Joined: Fri Aug 20, 2010 2:57 pm
Location: Amsterdam
Contact:

Re: Help with my network with openvpn

Post by janjust » Thu Oct 13, 2011 8:35 am

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]" .

Post Reply