I need to permanently disable default (dynamic) NAT rule no. 13, created by hotspot:
13 D chain=hs-auth action=redirect to-ports=64874 protocol=tcp hotspot=http
(this rule is making troubles: we are using external proxy set in web browsers via WPAD - this rule is catching client’s connections to the external proxy and redirecting them to internal webproxy, which is slowing down communications very seriously)
I can disable it, but it is re-created after reboot. How could I solve this? I may use this command:
/ip firewall nat disable [find hotspot="http"]
and run it every minute or so using scheduler, but I don’t like it. Is there an event like “hotspot starting”?
I don’t understand, why this rule is making me problems - it was few hours of trying and discovering, until I’ve found that that rule is bad for me. I don’t understand why hotspot is using internal transparent proxy (which is disabled) when client is requesting connection to external proxy after authentification - and that’s only in situation when the first unathentificated request is going to the external proxy (was working fine in situation when the first request was going to hotpost login page). Maybe it is some kind of bug?
Yes, now I understand: “This is done so that users that have some proxy settings would use the HotSpot gateway instead of the proxy server users have configured in their computers.” - that’s exactly what I don’t want. I’ve firewall rules that are not allowing direct connections to the internet and using external proxy server is necesarry, so I really need to disable this proxy-detecting feature (because it is extremly degrading performance).
I’m not on the place at this moment so I can’t try your suggestion now, but I will later today - of course, adding another permanent rule is better way than disabling dynamic rule, if it will work. I will let you know.
Thanks! This was nearly working - only problem was that after authentification client could not connect to hotspot web for stat or logoff. So I had to modify it like this:
That should have the same effect and keep stats pages etc. running due to ‘dst-address-type=!local’ - authenticated traffic going to the router even before destination NAT would no longer be exempted.