ZebMcKayhan
Very Senior Member
Looks like your WAN event triggers a nat-start and not a firewall-start.reconect ISP cable
Originally Wgm peers was restarted in nat-start but this created conflicts with YazFi. So the author decided to move this to firewall-start.
Merlin firmware documentation says that firewall rules should be in nat-start except for filter table which should be in firewall-start. WGM populates rules in mangle, nat and filter tables so ideally it would be in both.
Normally firewall-start comes last so it works. Appearently there are some events that only generates nat-start and no firewall-start.
Try adding this to nat-start, after your ipsets have been restored (right after the final
done
):
Code:
/jffs/addons/wireguard/wg_firewall # WireGuard
Edit: as a side-effect of this Wireguard peers would be restarted twice during a normal event, like boot. First when nat-start is executed then restarted when firewall-start is executed. However this is no real problem as Wireguard is connection less so the server may not even be aware. You will mostly notice it in the logs.
Last edited: