I setup a simple OpenVPN server, I connected 2 clients to it which connect successfully and can ping each other. However I cannot ping the server at 10.8.0.1 from any of the clients and I cannot ping clients from the server either. What am I missing here?
This is my server.conf
port 1194
dev tun
ca ca.crt
cert vpnserver.crt
key vpnserver.key
dh dh2048.pem
topology subnet
server 10.8.0.0 255.255.255.0
ifconfig-pool-persist ipp.txt 0
client-config-dir /etc/openvpn/ccd
client-to-client
keepalive 10 120
tls-auth ta.key 0
key-direction 0
cipher AES-256-CBC
auth SHA512
comp-lzo
user openvpn
group nogroup
persist-key
persist-tun
status openvpn-status.log
verb 3
And one of the client conf (I replaced my server IP with x.x.x.x):
client
dev tun
proto udp
remote x.x.x.x 1194
resolv-retry infinite
nobind
user nobody
group nogroup
persist-key
persist-tun
remote-cert-tls server
comp-lzo
verb 3
cipher AES-256-CBC
auth SHA512
key-direction 1
I don't know if this matters but I also setup static IPs for clients
ifconfig-push 10.8.0.9 255.255.255.252