Firewall rules

/ip firewall filter

add action=passthrough chain=unused-hs-chain comment=”place hotspot rules here” disabled=yes

/ip firewall nat

add action=passthrough chain=unused-hs-chain comment=”place hotspot rules here” disabled=yes

add action=masquerade chain=srcnat comment=”masquerade hotspot network” src-address=10.5.50.0/24

to-addresses=0.0.0.0

add action=jump chain=dstnat hotspot=from-client jump-target=hotspot

add action=jump chain=hotspot jump-target=pre-hotspot

add action=redirect chain=hotspot dst-port=53 protocol=udp to-ports=64872

add action=redirect chain=hotspot dst-port=53 protocol=tcp to-ports=64872

add action=redirect chain=hotspot dst-port=80 hotspot=local-dst protocol=tcp to-ports=64873

add action=redirect chain=hotspot dst-port=443 hotspot=local-dst protocol=tcp to-ports=64875

add action=jump chain=hotspot hotspot=!auth jump-target=hs-unauth protocol=tcp

add action=jump chain=hotspot hotspot=auth jump-target=hs-auth protocol=tcp

add action=return chain=hs-unauth dst-address=66.228.113.26 dst-port=80 protocol=tcp

add action=redirect chain=hs-unauth dst-port=80 protocol=tcp to-ports=64874

add action=redirect chain=hs-unauth dst-port=3128 protocol=tcp to-ports=64874

add action=redirect chain=hs-unauth dst-port=8080 protocol=tcp to-ports=64874

add action=redirect chain=hs-unauth dst-port=443 protocol=tcp to-ports=64875

add action=jump chain=hs-unauth dst-port=25 jump-target=hs-smtp protocol=tcp

add action=redirect chain=hs-auth hotspot=http protocol=tcp to-ports=64874

add action=jump chain=hs-auth dst-port=25 jump-target=hs-smtp protocol=tcp to-addresses=0.0.0.0

/ip firewall nat

add action=passthrough chain=unused-hs-chain comment=”place hotspot rules here” disabled=yes

add action=masquerade chain=srcnat comment=”masquerade hotspot network” src-address=10.5.50.0/24

to-addresses=0.0.0.0

add action=jump chain=dstnat hotspot=from-client jump-target=hotspot

add action=jump chain=hotspot jump-target=pre-hotspot

add action=redirect chain=hotspot dst-port=53 protocol=udp to-ports=64872

add action=redirect chain=hotspot dst-port=53 protocol=tcp to-ports=64872

add action=redirect chain=hotspot dst-port=80 hotspot=local-dst protocol=tcp to-ports=64873

add action=redirect chain=hotspot dst-port=443 hotspot=local-dst protocol=tcp to-ports=64875

add action=jump chain=hotspot hotspot=!auth jump-target=hs-unauth protocol=tcp

add action=jump chain=hotspot hotspot=auth jump-target=hs-auth protocol=tcp

add action=return chain=hs-unauth dst-address=66.228.113.26 dst-port=80 protocol=tcp

add action=redirect chain=hs-unauth dst-port=80 protocol=tcp to-ports=64874

add action=redirect chain=hs-unauth dst-port=3128 protocol=tcp to-ports=64874

add action=redirect chain=hs-unauth dst-port=8080 protocol=tcp to-ports=64874

add action=redirect chain=hs-unauth dst-port=443 protocol=tcp to-ports=64875

add action=jump chain=hs-unauth dst-port=25 jump-target=hs-smtp protocol=tcp

add action=redirect chain=hs-auth hotspot=http protocol=tcp to-ports=64874

add action=jump chain=hs-auth dst-port=25 jump-target=hs-smtp protocol=tcp to-addresses=0.0.0.0

Still getting Error 404

Richard