v1.11 OpenVPN observations

Report wireless and/or network connectivity problems in this forum.

Moderator: Moderators

ispyisail
Moderator
Posts: 5185
Joined: Mon Apr 06, 2009 3:15 am
Location: New Zealand

Re: v1.11 OpenVPN observations

Post by ispyisail »

host images with imgur

https://imgur.com/

Lantis
Moderator
Posts: 6753
Joined: Mon Jan 05, 2015 5:33 am
Location: Australia

Re: v1.11 OpenVPN observations

Post by Lantis »

I will look at it when I have time. It will make my job easier if you can find an exact procedure that reproduces the error.
Because as I noted earlier, I currently have no problem with this.

If you want immediate help, look into it yourself.
http://lantisproject.com/downloads/gargoyle_ispyisail.php for the latest releases
Please be respectful when posting. I do this in my free time on a volunteer basis.

ivklim
Posts: 9
Joined: Mon May 28, 2018 1:35 am

Re: v1.11 OpenVPN observations

Post by ivklim »

ispyisail wrote:host images with imgur

https://imgur.com/
there is a link
https://imgur.com/a/qDSHune

please let me know if i can delete pictures from host
Last edited by ivklim on Tue Apr 16, 2019 5:54 am, edited 1 time in total.

ivklim
Posts: 9
Joined: Mon May 28, 2018 1:35 am

Re: v1.11 OpenVPN observations

Post by ivklim »

Lantis wrote:I will look at it when I have time. It will make my job easier if you can find an exact procedure that reproduces the error.
Because as I noted earlier, I currently have no problem with this.

If you want immediate help, look into it yourself.
nothing special to reproduce the error in my case
1. on ovpn server (192.168.2.1) configure ovpn server settings an save
2. on ovpn server (192.168.2.1) add new ovpn client with routed subnet (under ovpn settings: allowed client)
3. save the settings. wait until settings applied
4. go to connection/ routing
5. I can see the route to 192.168.1.0 (segment behind client router) through gateway 10.1.0.2 on tun interface
6.wait for some time (2-3 min)
7 open connection/ routing again, and there is no route to 192.168.1.0 anymore
8. configure the client (192.168.1.1) through zip file, save the settings. Vpn is on.
9. check the ping
from 192.168.1.x to 192.168.2.x - OK
reverse from lan behind the server (and from 192.168.2.1 as well) to 192.168.1.x - false

10. on server router 192.168.2.1 add route manually
/sbin/route add -net 192.168.1.0 netmask 255.255.255.0 gw 10.1.0.2

11. reverse ping is ok and i can see the route to 192.168.1.0 in routes' list

for me the scenario is the same on linksys wrt1900ac and tplink archer c7 v5

the route to network behind the client disappears after server router restarted. it is the main problem

I spent time to understand it by myself without success
i can see in log that the reverse route has been successfully added and then "route delete" is coming after
daemon.warn openvpn(custom_config)[7271]: Could not determine IPv4/IPv6 protocol. Using AF_INET

any suggestion how i can keep the permanent route after router's reboot
route add -net 192.168.1.0 netmask 255.255.255.0 gw 10.1.0.2

Lantis
Moderator
Posts: 6753
Joined: Mon Jan 05, 2015 5:33 am
Location: Australia

Re: v1.11 OpenVPN observations

Post by Lantis »

I've tried investigating this today, and while the behaviour seems a little racey, it worked 95% of the time. I haven't found any clues to make it more bullet proof yet.

When openvpn is restarted it first tries to delete any routes it knows about, and then tries to re-add them. If you see a delete method running after an add method, this is because openvpn has restarted twice, and it should be followed by another add method.
http://lantisproject.com/downloads/gargoyle_ispyisail.php for the latest releases
Please be respectful when posting. I do this in my free time on a volunteer basis.

ispyisail
Moderator
Posts: 5185
Joined: Mon Apr 06, 2009 3:15 am
Location: New Zealand

Re: v1.11 OpenVPN observations

Post by ispyisail »

My tip is use "defaults" were possible for testing

In the past I've had strange results when using custom options

e.g.
Image

Image

ispyisail
Moderator
Posts: 5185
Joined: Mon Apr 06, 2009 3:15 am
Location: New Zealand

Re: v1.11 OpenVPN observations

Post by ispyisail »

Whats going on here?

Image

non-standard setup?

ispyisail
Moderator
Posts: 5185
Joined: Mon Apr 06, 2009 3:15 am
Location: New Zealand

Re: v1.11 OpenVPN observations

Post by ispyisail »

again not the default

Image

ispyisail
Moderator
Posts: 5185
Joined: Mon Apr 06, 2009 3:15 am
Location: New Zealand

Re: v1.11 OpenVPN observations

Post by ispyisail »

I would reset/default your router and setup as close to default as you can.

Confirm the default works then more from there.........

https://www.gargoyle-router.com/wiki/do ... reversevpn

ispyisail
Moderator
Posts: 5185
Joined: Mon Apr 06, 2009 3:15 am
Location: New Zealand

Re: v1.11 OpenVPN observations

Post by ispyisail »

This is my active routes table

Image

Post Reply