Hello.
I've implemented calling a script when --learn-address event occur. I see a lot of add address and delete address every 2-3 minutes for same IP. Is this by design? Why it should delete then add same address every 2-3 minutes? May be a parameter on client to extend the time?
Lots of add and delete addresses via learn-address script.
Moderators: TinCanTech, TinCanTech, TinCanTech, TinCanTech, TinCanTech, TinCanTech
Forum rules
Please use the [oconf] BB tag for openvpn Configurations. See viewtopic.php?f=30&t=21589 for an example.
Please use the [oconf] BB tag for openvpn Configurations. See viewtopic.php?f=30&t=21589 for an example.
- Mimiko
- Forum Team
- Posts: 1564
- Joined: Wed Sep 22, 2010 3:18 am
-
- OpenVPN Protagonist
- Posts: 11137
- Joined: Fri Jun 03, 2016 1:17 pm
Re: Lots of add and delete addresses via learn-address script.
Perhaps your log will have more details ..
- Mimiko
- Forum Team
- Posts: 1564
- Joined: Wed Sep 22, 2010 3:18 am
Re: Lots of add and delete addresses via learn-address script.
Unfortunately in logs there is nothing about this. I think the server is just executing learn-address events in response to clients sending those events. On clients also there is nothing about this events in log.
-
- OpenVPN Protagonist
- Posts: 11137
- Joined: Fri Jun 03, 2016 1:17 pm
Re: Lots of add and delete addresses via learn-address script.
--learn-address fires when an address needs to be learned. It happens at connect/disconnect .. therefore your clients are disconnecting and reconnecting, which means your log will have all that detail .. at --verb 4
- Mimiko
- Forum Team
- Posts: 1564
- Joined: Wed Sep 22, 2010 3:18 am
Re: Lots of add and delete addresses via learn-address script.
After analyzing with verb 4 I've found that openvpn server deletes an address after about 2 mins by itself. There is no message from client to delete an IP address on the client's lan. So how to increase the time that openvpn server will hold the IP address in its internal routing table.
-
- OpenVPN Protagonist
- Posts: 11137
- Joined: Fri Jun 03, 2016 1:17 pm
Re: Lots of add and delete addresses via learn-address script.
I will take your word on that ..