Hi,
I've created the following config for having a MikroTik router operate WLAN1 as Station Mode and WLAN2 as a Hotspot
I'd like to be able to re-route all clients to a specific IP address on ETH2 as they join the Hotspot. Would the be below config allow that?
I'm getting confused around the Hotspot address and the DHCP Pool it'd need to draw from to enable this:
# oct/05/2022 15:34:13 by RouterOS 6.47.10
# software id = V98M-VUTJ
#
# model = RB952Ui-5ac2nD
/interface list
add comment=defconf name=WAN
add comment=defconf name=LAN
/interface wireless security-profiles
set [ find default=yes ] supplicant-identity=MikroTik
add authentication-types=wpa-psk,wpa2-psk eap-methods="" mode=dynamic-keys \
name=*** supplicant-identity="" wpa-pre-shared-key=***** \
wpa2-pre-shared-key=*****
/interface wireless
set [ find default-name=wlan1 ] band=2ghz-b/g/n channel-width=20/40mhz-XX \
country="united kingdom" disabled=no distance=indoors frequency=auto \
installation=indoor security-profile=*** ssid=*** wireless-protocol=\
802.11
/interface wireless
set [ find default-name=wlan2 ] band=5ghz-a/n/ac channel-width=\
20/40/80mhz-XXXX country="united kingdom" disabled=no distance=indoors \
frequency=auto installation=indoor mode=ap-bridge ssid=QRCodeSEUK \
wireless-protocol=802.11
/interface bridge
add name=bridge
/interface list member
add comment=defconf interface=bridge list=LAN
add interface=ether1 list=WAN
/interface bridge port
add bridge=bridge interface=ether2
add bridge=bridge interface=ether3
add bridge=bridge interface=ether4
add bridge=bridge interface=ether5
/ip pool
add name=dhcp ranges=192.168.88.10-192.168.88.50
/ip dhcp-server
add address-pool=dhcp disabled=no interface=bridge name=defconf
add address-pool=dhcp disabled=no interface=wlan2 lease-time=1h name=dhcp1
/ip address
add address=192.168.88.1/24 comment=defconf interface=bridge network=\
192.168.88.0
add address=192.168.88.5/24 comment="hotspot network" interface=wlan2 \
network=192.168.88.0
/ip hotspot profile
set [ find default=yes ] html-directory=flash/hotspot
add dns-name=seukqrcode.com hotspot-address=192.168.88.5 html-directory=\
flash/hotspot name=hsprof1
/ip hotspot
add address-pool=dhcp disabled=no interface=wlan2 name=hotspot1 profile=\
hsprof1
/ip hotspot user profile
add add-mac-cookie=no address-pool=dhcp !mac-cookie-timeout name=qrcode
/ip dhcp-client
add disabled=no interface=wlan1
/ip dhcp-server network
add address=192.168.88.0/24 comment=defconf gateway=192.168.88.1 netmask=24
/ip dns
set allow-remote-requests=yes
/ip dns static
add address=192.168.88.1 comment=defconf name=router.lan
/ip firewall filter
add action=passthrough chain=unused-hs-chain comment=\
"place hotspot rules here" disabled=yes
add action=accept chain=forward comment="defconf: accept in ipsec policy" \
ipsec-policy=in,ipsec
add action=accept chain=forward comment="defconf: accept out ipsec policy" \
ipsec-policy=out,ipsec
add action=fasttrack-connection chain=forward comment="defconf: fasttrack" \
connection-state=established,related
add action=accept chain=forward comment=\
"defconf: accept established,related, untracked" connection-state=\
established,related,untracked
add action=drop chain=forward comment="defconf: drop invalid" \
connection-state=invalid
add action=drop chain=forward comment=\
"defconf: drop all from WAN not DSTNATed" connection-nat-state=!dstnat \
connection-state=new in-interface-list=WAN
/ip firewall nat
add action=passthrough chain=unused-hs-chain comment=\
"place hotspot rules here" disabled=yes
add action=masquerade chain=srcnat comment="defconf: masquerade" \
ipsec-policy=out,none out-interface-list=WAN
add action=masquerade chain=srcnat out-interface-list=WAN
add action=masquerade chain=srcnat src-address=192.168.88.0/24
add action=masquerade chain=srcnat comment="masquerade hotspot network" \
src-address=192.168.88.0/24
/ip hotspot user
add name=admin password=12345678
add name=qrcodeusr password=qrcodeusr profile=qrcode server=hotspot1
/system clock
set time-zone-name=Europe/London