Openvpn gui client should use own route to the server

Official client software for OpenVPN Access Server and OpenVPN Cloud.
Post Reply
christian_domes
OpenVpn Newbie
Posts: 5
Joined: Thu Apr 28, 2022 7:34 am

Openvpn gui client should use own route to the server

Post by christian_domes » Wed May 25, 2022 9:09 am

Hello
I want to route my home wan ip adress over my vpn. Example when i access my web server over my domain or home wan adress it should route over my vpn. But my openvpn server is also at my home. When i add route mywanadress MASK 255.255.255.255 10.8.0.1 to my Windows routing table the openvpn gui is routet also over the vpn(over himself) and that doesnt work. I want to route my home wan adress over the vpn but the vpn client should not be routet over himself. How can I do this? On my Android phone it works.

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

Re: Openvpn gui client should use own route to the server

Post by TinCanTech » Wed May 25, 2022 9:13 am

You can't do that.

Your Android works because it knows better and ignores your setup.

christian_domes
OpenVpn Newbie
Posts: 5
Joined: Thu Apr 28, 2022 7:34 am

Re: Openvpn gui client should use own route to the server

Post by christian_domes » Mon May 30, 2022 8:57 am

But i need to do that. Why does it work on my android?

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

Re: Openvpn gui client should use own route to the server

Post by TinCanTech » Mon May 30, 2022 9:29 am

christian_domes wrote:
Mon May 30, 2022 8:57 am
But i need to do that
No you do not - Nobody does.
christian_domes wrote:
Mon May 30, 2022 8:57 am
Why does it work on my android?
It does not "work on Android".

Android detects what you are trying to do and totally ignores you because it is smarter than you.

christian_domes
OpenVpn Newbie
Posts: 5
Joined: Thu Apr 28, 2022 7:34 am

Re: Openvpn gui client should use own route to the server

Post by christian_domes » Mon Jun 13, 2022 8:20 am

TinCanTech wrote:
Mon May 30, 2022 9:29 am
christian_domes wrote:
Mon May 30, 2022 8:57 am
But i need to do that
No you do not - Nobody does.
christian_domes wrote:
Mon May 30, 2022 8:57 am
Why does it work on my android?
It does not "work on Android".

Android detects what you are trying to do and totally ignores you because it is smarter than you.
I dont understand you. It work with android client but why not with windows client?

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

Re: Openvpn gui client should use own route to the server

Post by TinCanTech » Mon Jun 13, 2022 1:59 pm

christian_domes wrote:
Wed May 25, 2022 9:09 am
I want to route my home wan ip adress over my vpn
You cannot do this.

If you route your WAN IP address via the tunnel then the tunnel breaks. This is because when openvpn tries to send encrypted VPN packets to the server for decryption, thus providing the VPN, those packets are sent into the tunnel which then routes them into the tunnel and they never go to the server.

It does not work for Android either. Android sees that the packets are being sent to the tunnel and not the server and then over-rides your broken route and sends the packets to the correct destination.

Post Reply