Hi,
The subject says it all. My VPN is working, but I cannot access anything other than the 10.8.0.1 IP or the local IP of the container running OpenVPN. All other pings time out and the public Internet is inaccessible. I am running OpenVPN on an LXC Ubuntu container. This feels like a routing problem, but I am at a loss of how to proceed. Below is a bunch of information. Please let me know if there is anything else that might help.
The general structure of my network is this:
Internal private network: 192.168.0.x
OpenVPN runs on 192.168.0.35 internally and uses the default 10.8.0.1 for clients.
I do not have a firewall running on the server and so no rules are active in iptables.
cat /proc/sys/net/ipv4/ip_forward
1
Here is the output of "Route" on the OpenVPN server
Kernel IP routing table
Destination Gateway Genmask Flags Metric Ref Use Iface
default 192.168.0.1 0.0.0.0 UG 0 0 0 eth0
10.8.0.0 0.0.0.0 255.255.255.0 U 0 0 0 tun0
192.168.0.0 0.0.0.0 255.255.255.0 U 0 0 0 eth0
port 2525
proto udp
dev tun
sndbuf 0
rcvbuf 0
ca ca.crt
cert server.crt
key server.key
dh dh.pem
auth SHA512
tls-auth ta.key 0
topology subnet
server 10.8.0.0 255.255.255.0
ifconfig-pool-persist ipp.txt
push "redirect-gateway def1 bypass-dhcp"
push "dhcp-option DNS 10.8.0.1"
push "route 192.168.0.0 255.255.255.0"
keepalive 10 120
cipher AES-256-CBC
comp-lzo
user nobody
group nogroup
persist-key
persist-tun
status openvpn-status.log
verb 3
crl-verify crl.pem
dev tun
proto udp
sndbuf 0
rcvbuf 0
remote x.x.x.x 3334
resolv-retry infinite
nobind
persist-key
persist-tun
remote-cert-tls server
auth SHA512
cipher AES-256-CBC
comp-lzo
setenv opt block-outside-dns
key-direction 1
verb 3
Edit: Added oconf layout