Page 1 of 1

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

Posted: Sat Aug 17, 2019 12:06 pm
by kaushalshriyan

I am following, ... erver.conf and ... 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, but i cannot connect to the Internet (ping 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

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
push "redirect-gateway def1"
push "dhcp-option DNS"
push "dhcp-option DNS"
push "route"
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 1195
cipher AES-256-GCM
auth SHA1
resolv-retry infinite
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,