Connect a MikroTik Router with a FritzBox with Captive Portal
Given a FritzBox at the IP 192.168.179.1
with captive portal enabled, the following script accepts the policies of the site and access to the internet should be possible.
/system script
add name=fritz-captive source="/tool fetch \"http://192.168.179.1:8186/trustme.lua\\\?accept=yes\" output=user"