Community discussions

MikroTik App
 
djvel06
just joined
Topic Author
Posts: 1
Joined: Wed Jan 17, 2018 1:57 pm

RouterOS v7 Radius Server is not responding

Wed Jan 11, 2023 7:19 am

Hi, It's my 1st hotspot with usermanager setup in routeros v7,
And I'm having some trouble or I have missed something.

Code below is the script.

Anyone can help? Thank you.
/interface bridge
add name=bridge1_hotspot
/interface wireless security-profiles
set [ find default=yes ] supplicant-identity=MikroTik
/ip hotspot profile
add dns-name=ngn.wifi.net hotspot-address=50.1.0.1 name=hsprof1 use-radius=\
    yes
/ip pool
add name=hs-pool-19 ranges=50.1.0.2-50.1.255.254
/ip dhcp-server
add address-pool=hs-pool-19 interface=bridge1_hotspot lease-time=1h name=\
    dhcp1
/ip hotspot
add address-pool=hs-pool-19 addresses-per-mac=1 disabled=no interface=\
    bridge1_hotspot name=hotspot1 profile=hsprof1
/port
set 0 name=serial0
set 1 name=serial1
/user-manager limitation
add name=15mbps rate-limit-burst-rx=30000000B rate-limit-burst-threshold-rx=\
    15000000B rate-limit-burst-threshold-tx=15000000B \
    rate-limit-burst-time-rx=30s rate-limit-burst-time-tx=30s \
    rate-limit-burst-tx=30000000B rate-limit-rx=15000000B rate-limit-tx=\
    15000000B
/user-manager profile
add name=15Mbps name-for-users=15Mbps
/user-manager user
add name=user1
/interface bridge port
add bridge=bridge1_hotspot interface=ether16
/ip address
add address=50.1.0.1/16 interface=bridge1_hotspot network=50.1.0.0
/ip dhcp-client
add interface=ether1
/ip dhcp-server network
add address=50.1.0.0/16 comment="hotspot network" gateway=50.1.0.1
/ip dns
set servers=8.8.8.8
/ip firewall filter
add action=passthrough chain=unused-hs-chain comment=\
    "place hotspot rules here" disabled=yes
/ip firewall nat
add action=passthrough chain=unused-hs-chain comment=\
    "place hotspot rules here" disabled=yes
add action=masquerade chain=srcnat comment="masquerade hotspot network" \
    src-address=50.1.0.0/16
/ip hotspot user
add name=admin
/radius
add address=127.0.0.1 service=hotspot
/system clock
set time-zone-name=Asia/Manila
/user-manager profile-limitation
add limitation=15mbps profile=15Mbps
/user-manager router
add address=127.0.0.1 name=router1
/user-manager user-profile
add profile=15Mbps user=user1

Who is online

Users browsing this forum: No registered users and 11 guests