Step 4: Set Up Hotspot and PPPoE

Configuring a hotspot and PPPoE server on your Mikrotik router for network access

4.0 Configure the Hotspot Bridge and IP Pool

Set up a bridge and IP pool to prepare your Mikrotik router for hotspot functionality:

Step-by-Step Guide:

1

Open Winbox and connect to your router. Click on New Terminal to open a command line interface.

2

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

4.1 Run the Hotspot Setup Wizard

Use the Hotspot Setup Wizard in Winbox to configure the hotspot settings:

Step-by-Step Guide:

1

In Winbox, navigate to IP > Hotspot.

2

Click on Hotspot Setup to start the setup wizard.

3

When prompted to select the Hotspot Interface, choose hotspot-bridge.

4

Click Next to proceed through the prompts until you reach the Select Certificate screen. Choose None for the certificate.

5

Continue clicking Next until you reach the DNS Servers screen. Set the following:

  • DNS Servers: Enter 8.8.8.8
  • DNS Name: Enter wifi.spot as your hotspot domain name
6

Complete the setup by clicking Next and then OK to finalize the hotspot configuration.

4.2 Setup Hotspot Firewalls

Configure firewall rules to secure and optimize your hotspot network:

Step-by-Step Guide:

1

In Winbox, navigate to IP > Firewall > Filter Rules and remove all existing filter rules.

2

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

4.3 Setup PPPoE

Configure a PPPoE server on your Mikrotik router to enable PPPoE-based connections:

Step-by-Step Guide:

1

In Winbox, navigate to PPP > PPPoE Servers.

2

Click the + button to add a new PPPoE server.

3

Under the Interface field, choose hotspot-bridge.

4

Click Apply and then OK to save the PPPoE server configuration.

Next Steps

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.