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.
Openvpn gui client should use own route to the server
-
- OpenVpn Newbie
- Posts: 5
- Joined: Thu Apr 28, 2022 7:34 am
-
- OpenVPN Protagonist
- Posts: 11137
- Joined: Fri Jun 03, 2016 1:17 pm
Re: Openvpn gui client should use own route to the server
You can't do that.
Your Android works because it knows better and ignores your setup.
Your Android works because it knows better and ignores your setup.
-
- OpenVpn Newbie
- Posts: 5
- Joined: Thu Apr 28, 2022 7:34 am
Re: Openvpn gui client should use own route to the server
But i need to do that. Why does it work on my android?
-
- OpenVPN Protagonist
- Posts: 11137
- Joined: Fri Jun 03, 2016 1:17 pm
Re: Openvpn gui client should use own route to the server
No you do not - Nobody does.
It does not "work on Android".
Android detects what you are trying to do and totally ignores you because it is smarter than you.
-
- OpenVpn Newbie
- Posts: 5
- Joined: Thu Apr 28, 2022 7:34 am
Re: Openvpn gui client should use own route to the server
I dont understand you. It work with android client but why not with windows client?TinCanTech wrote: ↑Mon May 30, 2022 9:29 amNo you do not - Nobody does.
It does not "work on Android".
Android detects what you are trying to do and totally ignores you because it is smarter than you.
-
- OpenVPN Protagonist
- Posts: 11137
- Joined: Fri Jun 03, 2016 1:17 pm
Re: Openvpn gui client should use own route to the server
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.