In PPP, it is possible to call scripts separately for going online and going offline. Why doesn’t the dhcp client distinguish between going online and going offline? Many scripts are specified to be used when going online or when going offline.
Mine hAP ax3 with 7.9 crashed after about 20 days but with 7.11beta2 it’s almost unusable, it crashes too often.
I will downgrade, I am very disappointed because I thought it was much more stable…
That is correct. You need to use “belongs-to”.
received-from is a field from RouterOS v6 that is no longer supported in any 7.x version, it would be better if it were removed from the list.
(or it should be fixed so it works again)
Randomly causing internet downtime or very slow speeds and after some time back to previous state. I cant even load video into 1080p with my hAP AX3. Wired connection !
I use wireguard to connect AX2 and RB4011 in two ISPs , RB4011 use dynamic domain name to as a HUB, wait AX2 connect.
Once RB4011 reboot, change to a new IP, and update domain name (xxx.dyndns.info ), the ax2 resolv the new domain name correctly, but wireguard peer still attemp to connect old IP, so must reboot AX2 to resolv it.
So, your explanation brings even more questions: when does router decide that it needs to resolve the name again? With scripts, I control that; with unknown automagic - hmmm…
Is keep-alive being used on peer side (I suppose AX2, then) ?
Already tried to just wait until the DNS resolution has had its time (it can take a while …) ?
But the script-workaround is the most certain, that’s true. I still use it myself.
) wireguard - fixed peer connection using DNS name on IP change
I removed all scripts and this finally fixes WG and it works properly with dynamic hosts on ip change
@mantouboji for a client the IP address does not to be renewed until TTL expires.
So what is the TTL of your DNS registration?
WG will renew the resolve on restart of the WG peer. You can’t check every so many seconds if the DNS changes brcause of Round Robin when having multiple IP addresses. Then MT could have built-in a option that enables to say it is using a dynamic DNS that only will return one IP address.
Automating that, ckeck DNS and accept different IP when connection is lost. User needs to activate that procedure.
TTL doesn’t matter, i have hosts with 15 sec TTL and after ip changes WG never connects back even after several days unless you re-toogle it, which also requires scripts or netwatch for monitoring.
Anyway i repeat, Mikrotiks fix works and issue is solved!
Once RB4011 reboot, change to a new IP, and update domain name (xxx.dyndns.info ), the ax2 resolv the new domain name correctly, but wireguard peer still attemp to connect old IP, so must reboot AX2 to resolv it.
True. But there is another WG behaviour, by design, that should solve this with the use of keep alive:
One host should update the other address if it got a message signed with the correct key. So, with keep alive on, in theory we should only need DNS to establish the initian connection. After this one host will (should) update the other address if it changes. And this is by design.