fix: start payment internet window on demand and verify connectivity from guest browser
build-image / build-push (push) Successful in 2m41s

This commit is contained in:
jfeng committed 2026-10-22 16:11:45 +00:00
1 parent 0c01e5d88b
commit 783e241e42
7 files changed
+187 -8

No files matched your search

+3 -2
View File
@@ -3,6 +3,7 @@
:local guestSubnet "10.10.10.0/24"
:local guestIP "10.10.10.1"
:local backendIP "192.168.3.100"
:local backendPort 3000
:local portalHost "hotspot.jf.eng.br"
:local wanInterface "ether1"
:local guestInterface "ether4"
@@ -37,7 +38,7 @@
# Private-network guard runs before existing accepts/fasttrack.
# Internet returns to the ordinary chain so HotSpot filtering still applies.
/ip firewall filter add chain=pix-guest-forward dst-address=$backendIP protocol=tcp dst-port=3000 action=accept comment="pix: portal LAN"
/ip firewall filter add chain=pix-guest-forward dst-address=$backendIP protocol=tcp dst-port=$backendPort action=accept comment="pix: portal LAN"
/ip firewall filter add chain=pix-guest-forward dst-address=192.168.0.0/16 action=drop
/ip firewall filter add chain=pix-guest-forward dst-address=10.0.0.0/8 action=drop
/ip firewall filter add chain=pix-guest-forward dst-address=172.16.0.0/12 action=drop
@@ -51,7 +52,7 @@
# Restrict pre-login exception to the portal host, not all Cloudflare IPs.
/ip hotspot walled-garden ip add dst-host=$portalHost dst-port=443 protocol=tcp action=accept comment="pix: public portal"
/ip hotspot walled-garden ip add dst-address=$backendIP dst-port=3000 protocol=tcp action=accept comment="pix: local portal"
/ip hotspot walled-garden ip add dst-address=$backendIP dst-port=$backendPort protocol=tcp action=accept comment="pix: local portal"
# HotSpot is IPv4-only: prevent an IPv6 path around authentication.
:do {
/ipv6 firewall filter add chain=forward in-interface=bridge-guest action=drop place-before=0 comment="pix: block guest IPv6"