Gert Doering schreef op 22-05-2017 19:03:

> learn-address is only called if the route is not already-known - so
> if the client has previously connected, and the server did not notice
> that it went away (no --ping and no explicit-exit-notify), it will
> not tell you "delete first, add again right after" just keep it around.

I know, but there had been a delete and not a add again. Maybe it was 
related to a hanging connect script. I'll have to background it if this 
php has the tendency to hang, because a blocking connect script also 
blocks proper operation.

Better to just background all tasks that are not relevant for exit 
status, I think.

> But without logs from the server, it's hard to say what happened
> exactly.

Aye, I'll have to wait. I couldn't make anything from the logs because 
there is nothing written for "unlearn", so my script now gives that 
output.

>> It is these unreliablities that make it rather hard to use openvpn.
> 
> It's always nice to hear kind words from users :-)

Well openvpn works flawlessly when it does run. I've just had to create 
a restart script on the client because otherwise it would stop 
reconnecting; I didn't know how to fix it otherwise other than to just 
run system-based restarts.

Today I spent at least 15 minutes trying to figure out why I couldn't 
get to a VPN-internal host. :p.

At first I thought it was recent changes to my configuration system, but 
that was not it. Took me a while to realize external hosts could access 
it, but not me ;-). I'm just a bit fed up with those kinds of 
troubleshooting sessions ;-).

Been trying to get this working for several years now lol.

Or when my learn address script would get fed the IP addresses of the 
hosts behind the forwarded subnet ;-).

Suddenly the DNS of the client pointed to a host behind it, because my 
version of OpenVPN running there on that server sends learn-address 
messages each time that forwarded host is getting accessed. So I have to 
verify it is the same as ifconfig_pool_remote.

Regardless I don't think openvpn ever fails in its operation, it is just 
the management around it that makes it stop working now and then which 
is just a headache. I wouldn't ever want to use anything else but now I 
have restart scripts on the client and soon maybe also on the server :p.

Maybe it is the job of monitoring scripts to ensure proper operation 
anyway. Regardless of which software you use.

Anyway.

The reason I send a message to the list is precisely because of that 
headache ;-).

I absolutely love openvpn but the management headache became a bit too 
much now, sorry.

Regards.

------------------------------------------------------------------------------
Check out the vibrant tech community on one of the world's most
engaging tech sites, Slashdot.org! http://sdm.link/slashdot
_______________________________________________
Openvpn-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/openvpn-users

Reply via email to