Configuring a hotspot and PPPoE server on your Mikrotik router for network access
Set up a bridge and IP pool to prepare your Mikrotik router for hotspot functionality:
Open Winbox and connect to your router. Click on New Terminal to open a command line interface.
Paste the following commands to create a bridge and set IP addresses for the hotspot network:
/interface bridge add name=hotspot-bridge /ip address add address=192.168.180.1/24 interface=hotspot-bridge /ip pool add name=hotspot ranges=192.168.180.5-192.168.180.254 /ip firewall nat add chain=srcnat action=masquerade src-address=192.168.180.0/24
Use the Hotspot Setup Wizard in Winbox to configure the hotspot settings:
In Winbox, navigate to IP > Hotspot.
Click on Hotspot Setup to start the setup wizard.
When prompted to select the Hotspot Interface, choose hotspot-bridge
.
Click Next to proceed through the prompts until you reach the Select Certificate screen. Choose None for the certificate.
Continue clicking Next until you reach the DNS Servers screen. Set the following:
8.8.8.8
wifi.spot
as your hotspot domain nameComplete the setup by clicking Next and then OK to finalize the hotspot configuration.
Configure firewall rules to secure and optimize your hotspot network:
In Winbox, navigate to IP > Firewall > Filter Rules and remove all existing filter rules.
In the New Terminal, paste the following commands to clear filters and configure the hotspot firewall:
/ip firewall filter remove [find] /ip hotspot walled-garden ip add server=hotspot1 dst-host=netchapchap.com action=accept /ip hotspot walled-garden ip add server=hotspot1 dst-host=code.jquery.com action=accept /ip hotspot walled-garden ip add server=hotspot1 dst-host=cdn.jsdelivr.net action=accept /ip hotspot walled-garden ip add server=hotspot1 dst-host=cdnjs.cloudflare.com action=accept /ip hotspot walled-garden ip add server=hotspot1 dst-host=fonts.googleapis.com action=accept /ip hotspot walled-garden ip add server=hotspot1 dst-host=cdn.tailwindcss.com action=accept /ip hotspot profile set hsprof1 login-by=http-pap,cookie /ip firewall nat add chain=srcnat action=masquerade src-address=192.168.181.0/24 /ip firewall nat add chain=srcnat action=masquerade src-address=192.168.182.0/24 /ip firewall nat add chain=srcnat action=masquerade src-address=192.168.183.0/24 /ip firewall nat add chain=srcnat action=masquerade src-address=192.168.184.0/24 /ip firewall nat add chain=srcnat action=masquerade src-address=192.168.185.0/24 /ip firewall mangle add action=change-ttl chain=postrouting comment="anti-sharing-connection" new-ttl=set:1 out-interface=hotspot-bridge passthrough=yes /ip firewall mangle add action=change-ttl chain=prerouting comment="hide-router-ip-address" new-ttl=increment:2 passthrough=yes
Configure a PPPoE server on your Mikrotik router to enable PPPoE-based connections:
In Winbox, navigate to PPP > PPPoE Servers.
Click the + button to add a new PPPoE server.
Under the Interface field, choose hotspot-bridge
.
Click Apply and then OK to save the PPPoE server configuration.
Your Mikrotik router is now configured with a hotspot and PPPoE server. For further integration with the billing system, visit the NetChapChap Member Panel to log in or register for additional management features.