lost local internet connectivity once connected to openvpn

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.
kashyap009
OpenVPN User
Posts: 26
Joined: Tue Jul 13, 2021 10:23 am

Re: lost local internet connectivity once connected to openvpn

Post by kashyap009 » Fri Jul 30, 2021 12:34 pm

could you be more elobraete from where to read this Howto to learn what they do.

thanks...

kashyap009
OpenVPN User
Posts: 26
Joined: Tue Jul 13, 2021 10:23 am

Re: lost local internet connectivity once connected to openvpn

Post by kashyap009 » Fri Jul 30, 2021 1:14 pm

so now somehow i am able to retain my local internet after connecting to my openvpn but issue is all traffic including my local internet traffic as well going through vpn which i dont want.

then i added route 0.0.0.0 192.0.0.0 net_gateway
route 64.0.0.0 192.0.0.0 net_gateway
route 128.0.0.0 192.0.0.0 net_gateway
route 192.0.0.0 192.0.0.0 net_gateway in my .ovpn file

now my local public didnt chnage but i am unable to reach my openvpn server now

i think i am very much close to the result but somewhere i need to change something

TinCanTech
OpenVPN Protagonist
Posts: 11137
Joined: Fri Jun 03, 2016 1:17 pm

Re: lost local internet connectivity once connected to openvpn

Post by TinCanTech » Fri Jul 30, 2021 2:09 pm

If you don't do what you were instructed to do then expect things to go wrong .....

I suggest you read the openvpn howto.

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

Re: lost local internet connectivity once connected to openvpn

Post by 300000 » Fri Jul 30, 2021 10:06 pm

here is what you should add into your client so it can use internet when connect to openvpn server.

Code: Select all

route  0.0.0.0 192.0.0.0 net_gateway 
route  64.0.0.0 192.0.0.0 net_gateway 
route  128.0.0.0 192.0.0.0 net_gateway 
route  192.0.0.0 192.0.0.0 net_gateway 
dhcp-option DNS 8.8.4.4


when connect to openvpn can you post all routing table of client so let track down when it go. on windows just open cmd and type route print so you will get all routing on windows.


you install openvpn from script so we dont know what they add or remove from system. it is very hard to tell how to repair it

kashyap009
OpenVPN User
Posts: 26
Joined: Tue Jul 13, 2021 10:23 am

Re: lost local internet connectivity once connected to openvpn

Post by kashyap009 » Mon Aug 02, 2021 10:55 am

Hi thanks for all your support i am able to access my open vpn server and without chnaging my local public ip.

Servers are accessible from only openvpn asign ip's e.g 10.8.0.3,4

My only concern is now as soon as i install openvpn client on any of my server i am not able to access that server public ip which is important to access application running on that server publically.

thanks in advance.

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

Re: lost local internet connectivity once connected to openvpn

Post by 300000 » Mon Aug 02, 2021 12:08 pm

Now it is more interesting when you finished something and want something more. this topic will help you understand and can guild you create your way to deal with that .

viewtopic.php?f=6&t=7175

kashyap009
OpenVPN User
Posts: 26
Joined: Tue Jul 13, 2021 10:23 am

Re: lost local internet connectivity once connected to openvpn

Post by kashyap009 » Wed Aug 04, 2021 1:09 pm

300000 wrote:
Mon Aug 02, 2021 12:08 pm
Now it is more interesting when you finished something and want something more. this topic will help you understand and can guild you create your way to deal with that .

viewtopic.php?f=6&t=7175
tqs

Post Reply