VPN Connected but no access internet

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
Spencer82
OpenVpn Newbie
Posts: 1
Joined: Tue Jun 01, 2021 10:16 pm

VPN Connected but no access internet

Post by Spencer82 » Tue Jun 01, 2021 10:22 pm

Hi folks,

Have this kind of issue, the clients are connected with VPN and see an network resource (my case QNAP TS-231) but they no have access internet.
Anyone have had the same issue, and can tell me kindly how to resolved it
Thanks in advance.

I put below the server and client configutation:

SERVER

cd /etc/openvpn
dev tun
keepalive 10 60
reneg-sec 0
persist-key
persist-tun
duplicate-cn
script-security 3
client-to-client
management localhost 7505
#username-as-common-name
client-cert-not-required
auth-user-pass-verify /usr/sbin/qvpn.sauth via-env

ca /etc/openvpn/keys/ca.crt
dh /etc/openvpn/keys/dh1024.pem
key /etc/openvpn/keys/myserver.key
cert /etc/openvpn/keys/myserver.crt

client-connect /etc/openvpn/connect.sh
client-disconnect /etc/openvpn/disconnect.sh

status /var/log/openvpn-status.log
writepid /var/run/openvpn.server.pid

port 1194
proto udp
max-clients 100
server 10.8.0.0 255.255.255.0

push "dhcp-option DNS 8.8.8.8"

comp-lzo
cipher AES-256-CBC
tls-cipher TLS-ECDHE-RSA-WITH-AES-256-GCM-SHA384:TLS-ECDHE-ECDSA-WITH-AES-256-GCM-SHA384:TLS-DHE-RSA-WITH-AES-256-GCM-SHA384:TLS-DHE-RSA-WITH-AES-256-CBC-SHA256:TLS-DHE-RSA-WITH-AES-256-CBC-SHA:TLS-DHE-RSA-WITH-AES-128-CBC-SHA


CLIENT


dev tun
script-security 3
remote "IP PUBLIC" 1194
resolv-retry infinite
nobind
auth-nocache
auth-user-pass
remote-cert-tls server
reneg-sec 0
cipher AES-256-CBC
tls-cipher TLS-ECDHE-RSA-WITH-AES-256-GCM-SHA384:TLS-ECDHE-ECDSA-WITH-AES-256-GCM-SHA384:TLS-DHE-RSA-WITH-AES-256-GCM-SHA384:TLS-DHE-RSA-WITH-AES-256-CBC-SHA256:TLS-DHE-RSA-WITH-AES-256-CBC-SHA:TLS-DHE-RSA-WITH-AES-128-CBC-SHA
comp-lzo no
pull
proto udp
explicit-exit-notify 1]

300000
OpenVPN Expert
Posts: 685
Joined: Tue May 01, 2012 9:30 pm

Re: VPN Connected but no access internet

Post by 300000 » Thu Jun 03, 2021 10:11 am

You need to NAT at you server and Ipforward so it will let your client go to internet. at the moment what you can do is ping 10.8.0.1 only . nobody know about your server so just find it out and correct it.

Post Reply