Good day everyone!
I used to redirect some users to the web-proxy and all is working with no problem. Now, i need to use the Hotspot Captive Portal instead to require them to sign-in first to the Hotspot before granting access to the internet.
Below is my config I modified from my previous redirect to web-proxy firewall NAT rule and it is not fully working with using the hotspot as destination. Once a user connected to PPPoE wifi modem, the SSID shows a message “Can’t provide internet” most probably because it needs to authenticate first (log-on) to the hotspot but unfortunately the hotspot log-in page doesn’t pop up. I already tested both mobile device and PC and still got the same problem. Hope someone can help me solve this problem.
IP Details:
PPPoE User Remote Address: 10.100.100.123
PPPoE Local Address/Gateway: 10.100.100.1
Hotspot Interface Gateway: 192.168.8.1
Hotspot IP Pool: 192.168.8.2-192.168.8.254
/ip firewall nat
add action=dst-nat chain=dstnat comment=“PPPoE User to HTTP sites” dst-port=80 protocol=
tcp src-address=10.100.100.123 to-addresses=192.168.8.1
add action=dst-nat chain=dstnat comment=“PPPoE User to HTTPS sites” dst-port=443
protocol=tcp src-address=10.100.100.123 to-addresses=192.168.8.1
/ip hotspot profile
add dns-name=www.mywifi-hotspot.com hotspot-address=192.168.8.1 html-directory=
hotspot login-by=http-chap,mac-cookie name=MyWifi-Hotspot
/ip hotspot
add address-pool=HS-Pool addresses-per-mac=1 disabled=no interface=
bridge-mywifi-hotspot name=“MyWifi-Hotspot-Server” profile=MyWifi-Hotspot
/ip dhcp-server
add address-pool=HS-Pool interface=bridge-mywifi-hotspot
lease-time=1h name=dhcp-MyWifi-Hotspot
/ip dhcp-server network
add address=192.168.8.0/24 comment=“hotspot network” gateway=192.168.8.1
ADDITIONAL NOTE: User can normally access the internet via PPPoE with those firewall redirect rules being disabled. Direct access to the Hotspot is also full working with its Log-in Page auto pop up using the same user device. Hence, I can confirm there is no problem with the PPPoE and Hotspot configuration. Maybe I did something wrong in my redirection configuration. Please help. Thank you.