OVPN Client connected but without internet.

Need help configuring your VPN? Just post here and you'll get that help.
Forum rules
Please use the [oconf] BB tag for openvpn Configurations. See viewtopic.php?f=30&t=21589 for an example.
Post Reply
norbertcz94
OpenVpn Newbie
Posts: 3
Joined: Fri Jun 14, 2019 5:21 pm

OVPN Client connected but without internet.

Post by norbertcz94 » Fri Jun 14, 2019 5:40 pm

Hi.
I read all internet from 7 days and I don't know what is wrong.
I have ovpn server on LAN 192.168.1.1
When I run it with Administrator rights I got IP 10.10.10.1

Server
port 1194
proto tcp
dev tun
ca ca.crt
cert server.crt
key server.key
dh dh2048.pem
server 10.10.10.0 255.255.255.0
ifconfig-pool-persist ipp.txt
push "redirect-gateway"
push "dhcp-option DNS 8.8.8.8"
push "dhcp-option DNS 8.8.4.4"
keepalive 10 120
comp-lzo
persist-key
persist-tun
status openvpn-status.log
verb 3


And I trying to connect to server from client. I got IP 10.10.10.6 but don't have internet.

client
client
dev tun
proto tcp
remote PUBLIC.IP.ADDRESS 1194
resolv-retry infinite
nobind
persist-key
persist-tun
ca ca.crt
cert client1.crt
key client1.key
remote-cert-tls server
comp-lzo
verb 3


Please, help me, what more I need to do? :/

PS My firewall allows on both PCs in/out-comming for OpenVPN GUI. And I have 1194 forwarded.

fhcd
OpenVpn Newbie
Posts: 3
Joined: Sun Jun 16, 2019 7:25 pm

Re: OVPN Client connected but without internet.

Post by fhcd » Mon Jun 17, 2019 10:54 pm

Sometimes this is due to missing iptables rule or missing sysctl parameter.

norbertcz94
OpenVpn Newbie
Posts: 3
Joined: Fri Jun 14, 2019 5:21 pm

Re: OVPN Client connected but without internet.

Post by norbertcz94 » Tue Jun 18, 2019 9:24 pm

but how to fix it?

User avatar
TinCanTech
OpenVPN Protagonist
Posts: 5913
Joined: Fri Jun 03, 2016 1:17 pm

Re: OVPN Client connected but without internet.

Post by TinCanTech » Tue Jun 18, 2019 9:39 pm

norbertcz94 wrote:
Fri Jun 14, 2019 5:40 pm
Hi.
I read all internet from 7 days and I don't know what is wrong.
Yes, your shirt is indeed a mess



Please see:
viewtopic.php?f=30&t=22603

norbertcz94
OpenVpn Newbie
Posts: 3
Joined: Fri Jun 14, 2019 5:21 pm

Re: OVPN Client connected but without internet.

Post by norbertcz94 » Fri Jun 21, 2019 10:37 am

I got it :D Thanks. I must to set up "routing" and "share connection to vpn".
Now I have another problem... How to connect via TAP? I want to see LAN PCs...

Post Reply