Unable to connect to the Internet and not able to ping and reach the private subnet

Need help configuring your VPN? Just post here and you'll get that help.

Moderators: TinCanTech, TinCanTech, TinCanTech, TinCanTech, TinCanTech, TinCanTech

Forum rules
Please use the [oconf] BB tag for openvpn Configurations. See viewtopic.php?f=30&t=21589 for an example.
Post Reply
kaushalshriyan
OpenVPN User
Posts: 22
Joined: Thu Sep 08, 2016 9:43 am

Unable to connect to the Internet and not able to ping and reach the private subnet

Post by kaushalshriyan » Sat Aug 17, 2019 12:06 pm

Hi,

I am following https://openvpn.net/community-resources/how-to/, https://github.com/OpenVPN/openvpn/blob ... erver.conf and https://github.com/OpenVPN/openvpn/blob ... lient.conf. I have configured OpenVPN server 2.4.7 on CentOS Linux release 7.6.1810 (Core). I can connect to the OpenVPN Server using Tunnelblick OpenVPN Client and able to ping 10.8.0.1, but i cannot connect to the Internet (ping google.com) as well as ping or ssh to the private subnet (192.168.0.x). I have pastebin both server and client OpenVPN configs.

Server OpenVPN Config

server 10.8.0.0 255.255.255.0
verb 5
key /etc/openvpn/server.key
ca /etc/openvpn/ca.crt
cert /etc/openvpn/server.crt
dh /etc/openvpn/dh.pem
keepalive 10 120
persist-key
persist-tun
push "redirect-gateway def1"
push "dhcp-option DNS 8.8.8.8"
push "dhcp-option DNS 8.8.4.4"
push "route 192.168.0.0 255.255.255.0"
user nobody
group nobody
proto tcp
port 1195
dev tun
status openvpn-status.log
log-append openvpn.log


Client OpenVPN Config

dev tun
proto tcp
remote 119.61.100.19 1195
cipher AES-256-GCM
auth SHA1
resolv-retry infinite
nobind
persist-key
persist-tun
client
verb 3
key client.key
cert client.crt
ca ca.crt


Any help will be highly appreciable? Thanks in Advance and i look forward to hearing from you.

Best Regards,

Post Reply