Page 2 of 2

Re: lost local internet connectivity once connected to openvpn

Posted: Fri Jul 30, 2021 12:34 pm
by kashyap009
could you be more elobraete from where to read this Howto to learn what they do.

thanks...

Re: lost local internet connectivity once connected to openvpn

Posted: Fri Jul 30, 2021 1:14 pm
by kashyap009
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

Re: lost local internet connectivity once connected to openvpn

Posted: Fri Jul 30, 2021 2:09 pm
by TinCanTech
If you don't do what you were instructed to do then expect things to go wrong .....

I suggest you read the openvpn howto.

Re: lost local internet connectivity once connected to openvpn

Posted: Fri Jul 30, 2021 10:06 pm
by 300000
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

Re: lost local internet connectivity once connected to openvpn

Posted: Mon Aug 02, 2021 10:55 am
by kashyap009
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.

Re: lost local internet connectivity once connected to openvpn

Posted: Mon Aug 02, 2021 12:08 pm
by 300000
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

Re: lost local internet connectivity once connected to openvpn

Posted: Wed Aug 04, 2021 1:09 pm
by kashyap009
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