I am attempting to configure OpenVPN such that the server is on its own VM, and when I connect to it, I will be able to access everything else on the VM's local network. However, at the moment, while I can ping both the VPN server's VPN and server-side local IP addresses, I cannot reach anything else on the VPN server's local network.
The VM's local network that contains the VPN server and everything else I want to access over the VPN is 10.0.0.0/24 and the VPN network is 10.8.0.0/24. The VPN server IPs are on 10.0.0.176 and 10.8.0.1 respectively.
Below are my sanitized configs.
Server
port 1191
proto udp
dev tun
ca --.crt
cert ++.crt
key ++.key
dh @@.pem
server 10.8.0.0 255.255.255.0
ifconfig-pool-persist /var/log/openvpn/ipp.txt
push "route 10.0.0.0 255.255.255.0 10.8.0.1"
client-to-client
keepalive 10 120
tls-auth $$.key 0
cipher AES-256-CBC
max-clients 1
persist-key
persist-tun
status /var/log/openvpn/openvpn-status.log
verb 6
explicit-exit-notify 1
client
client
dev tun
proto udp
remote 1.2.3.4 1191
resolv-retry infinite
nobind
persist-key
persist-tun
ca --.crt
cert A.crt
key A.key
remote-cert-tls server
tls-auth $$.key 1
cipher AES-256-CBC
verb 3
Additionally, the one server-side machine that I intend on ultimately connecting to via the VPN has the following route:
Code: Select all
$ ip route show
...
10.8.0.0/24 via 10.0.0.176 dev eth0