Hello, that's my scenario:
I would to connect trough a single openvpn server multiple clients, and every client have to share his private lan to all the other clients. There will be too client connected to openvpn server without sharing nothing.
- server openvpn (10.8.10.1)
- client1 (gateway of 192.168.2.100)
...
- clientN (gateway of 192.168.xxx.100)
Actually i'm testing only with client1 that share 192.168.2.0/24, so that's my server.conf:
port 1194
proto udp
dev tap
ca ca.crt
cert server.crt
key server.key
dh dh1024.pem
server 10.8.10.0 255.255.255.0
ifconfig-pool-persist ipp.txt
client-config-dir /etc/openvpn/ccd/
push "route 192.168.2.0 255.255.255.0"
route 192.168.2.0 255.255.255.0
client-to-client
keepalive 10 120
comp-lzo
user nobody
group nogroup
persist-key
persist-tun
status openvpn-status.log
verb 3
and here is my ccd/client1, to advertise the server about his lan subnet:
iroute 192.168.2.0 255.255.255.0
Now, having a machine of client1's lan, 192.168.2.10, and a client connected to vpn 10.8.10.3, that's the results of ping test:
192.168.2.10 -> 10.8.10.100 = OK
192.168.2.10 -> 10.8.10.3 = OK
10.8.10.100 -> 192.168.2.10 = KO
10.8.10.3 -> 192.168.2.10 = KO
and
10.8.10.100 -> 192.168.2.100 = OK
10.8.10.3 -> 192.168.2.100 = OK
Im not understanding something 😃
Thanks you, any help will be appreciate,