Here is my config:
Code: Select all
[admin@Mikrotik Router] > /export compact
# jan/02/1970 04:08:23 by RouterOS 5.25
# software id = XXXXXXXX
#
/interface bridge
add admin-mac=D4:CA:6D:A6:53:77 auto-mac=no l2mtu=1598 name=bridge-local \
protocol-mode=rstp
/interface wireless
set 0 antenna-gain=90 band=2ghz-b/g/n channel-width=20/40mhz-ht-above \
country="united kingdom" disabled=no distance=indoors frequency=2417 \
frequency-mode=regulatory-domain ht-rxchains=0,1 ht-txchains=0,1 l2mtu=\
2290 mode=ap-bridge ssid="eduroam test" wireless-protocol=802.11
/interface ethernet
set 0 name=ether1-gateway
set 1 name=ether2-master-local
set 2 master-port=ether2-master-local name=ether3-slave-local
set 3 master-port=ether2-master-local name=ether4-slave-local
set 4 master-port=ether2-master-local name=ether5-slave-local
/interface wireless security-profiles
set [ find default=yes ] authentication-types=wpa-eap,wpa2-eap group-ciphers=\
tkip,aes-ccm mode=dynamic-keys supplicant-identity=MikroTik tls-mode=\
dont-verify-certificate unicast-ciphers=tkip,aes-ccm wpa-pre-shared-key=\
XXXXXXXXXX wpa2-pre-shared-key=XXXXXXXXX
add authentication-types=wpa-psk,wpa2-psk eap-methods=passthrough \
management-protection=allowed name=Open supplicant-identity=""
/interface wireless
add disabled=no l2mtu=2290 mac-address=D6:CA:6D:A6:53:7B master-interface=\
wlan1 name=wlan1-1 security-profile=Open ssid="eduroam setup test" \
wds-cost-range=0 wds-default-cost=0
/ip hotspot profile
add dns-name=eduroam.igor.local hotspot-address=192.168.1.200 login-by=\
http-chap,trial name=hsprof1 trial-uptime=2m/2m
/ip hotspot user profile
set [ find default=yes ] idle-timeout=none keepalive-timeout=2m
/ip pool
add name=dhcp ranges=192.168.1.10-192.168.1.30
/ip dhcp-server
add address-pool=dhcp disabled=no interface=bridge-local name=default
add address-pool=dhcp disabled=no interface=wlan1-1 lease-time=1h name=dhcp1
/ip hotspot
add address-pool=dhcp disabled=no interface=wlan1-1 name=hotspot1 profile=\
hsprof1
/interface bridge port
add bridge=bridge-local interface=ether2-master-local
add bridge=bridge-local interface=wlan1
add bridge=bridge-local interface=wlan1-1
/ip address
add address=192.168.1.254/24 comment="default configuration" interface=wlan1
add address=192.168.1.253/24 interface=wlan1-1
add address=192.168.1.200/24 comment="hotspot network" interface=wlan1-1
/ip dhcp-client
add comment="default configuration" disabled=no interface=ether1-gateway
/ip dhcp-server network
add address=192.168.1.0/24 comment="default configuration" dns-server=\
192.168.88.1 gateway=192.168.1.254 netmask=24
/ip dns
set allow-remote-requests=yes servers=192.168.1.2
/ip dns static
add address=192.168.88.1 name=router
/ip firewall filter
add chain=input comment="default configuration" protocol=icmp
add chain=input comment="default configuration" connection-state=established
add chain=input comment="default configuration" connection-state=related
add action=drop chain=input comment="default configuration" in-interface=\
ether1-gateway
add chain=forward comment="default configuration" connection-state=\
established
add chain=forward comment="default configuration" connection-state=related
add action=drop chain=forward comment="default configuration" \
connection-state=invalid
/ip firewall nat
add action=masquerade chain=srcnat comment="default configuration" \
out-interface=ether1-gateway
/ip hotspot user
add name=eduroam password=XXXXXX
/ip hotspot walled-garden
add dst-host=http://eduroam.igor.local
/ip neighbor discovery
set ether1-gateway disabled=yes
set wlan1 disabled=yes
set wlan1-1 disabled=yes
/radius
add address=192.168.1.52 secret=XXXXXXX service=wireless timeout=500ms
add address=192.168.1.53 secret=XXXXXXX service=wireless timeout=500ms
/system identity
set name="Eduroam Router"
/system leds
set 0 interface=wlan1
/tool mac-server
add disabled=no interface=ether2-master-local
add disabled=no interface=ether3-slave-local
add disabled=no interface=ether4-slave-local
add disabled=no interface=ether5-slave-local
add disabled=no interface=wlan1
add disabled=no interface=bridge-local
/tool mac-server mac-winbox
set [ find default=yes ] disabled=yes
add interface=ether2-master-local
add interface=ether3-slave-local
add interface=ether4-slave-local
add interface=ether5-slave-local
add interface=wlan1
add interface=bridge-local
[admin@Eduroam Router] >