Hello, I have nearly the same problem. When I connect my Clients, they get the IP 10.8.0.x
And always the highest x can see the lower IP's:
10.8.0.3 can ping and see 10.8.0.2, but 10.8.0.2 to 10.8.0.3 doesnt work: _Nmap done: 1 IP address (0 hosts up) scanned in 2.50 seconds
Here my Client config
client
dev tun
proto udp
remote xxxx.xxxx.xx 7xx2
resolv-retry infinite
nobind
persist-key
persist-tun
remote-cert-tls server
tls-version-min 1.2
verify-x509-name server_xxxU name
cipher AES-256-CBC
auth SHA256
auth-nocache
verb 3
<ca>.. <cert>.. <key>.. <tls-crypt>
And the Server:
dev tun
proto udp
port 7xx2
ca /etc/openvpn/easy-rsa/pki/ca.crt
cert /etc/openvpn/easy-rsa/pki/issued/serverxxxxU.crt
key /etc/openvpn/easy-rsa/pki/private/serverxxxU.key
dh none
topology subnet
server 10.8.0.0 255.255.255.0
# I ADDED THIS PUSH ROUTE THING BUT THIS ONE DOESNT HELP
push "route 10.8.0.0 255.255.255.0"
# Set your primary domain name server address for clients
push "dhcp-option DNS 8.8.8.8"
push "dhcp-option DNS 8.8.4.4"
# Prevent DNS leaks on Windows
push "block-outside-dns"
# Override the Client default gateway by using 0.0.0.0/1 and
# 128.0.0.0/1 rather than 0.0.0.0/0. This has the benefit of
# overriding but not wiping out the original default gateway.
push "redirect-gateway def1"
client-to-client
keepalive 1800 3600
remote-cert-tls client
tls-version-min 1.2
tls-crypt /etc/openvpn/easy-rsa/pki/ta.key
cipher AES-256-CBC
auth SHA256
user nobody
group nogroup
persist-key
persist-tun
crl-verify /etc/openvpn/crl.pem
status /var/log/openvpn-status.log 20
status-version 3
syslog
verb 3
#DuplicateCNs allow access control on a less-granular, per user basis.
#Remove # if you will manage access by user instead of device.
#duplicate-cn
# Generated for use by PiVPN.io
I tried this, but doesnt work:
https://backreference.org/2010/05/02/controlling-client-to-client-connections-in-openvpn/
I just want, that all clients can talk to each other