Community discussions

MikroTik App
 
tihomircolev
just joined
Topic Author
Posts: 5
Joined: Mon Apr 13, 2015 11:29 am

Guest Network dhcp lease time

Thu Oct 08, 2015 11:16 pm

Hi Everyone
I want to configure my routerboard like this


My wireless ssid (Lock wireless) here is the ordinary.
Second Wireless unlock wireless : Guest network => DHCP lease time 1 hour, after that ban MAC address and remove the ban after 24 hours
Anyone can help me :)
 
deanMKD1
Member
Member
Posts: 366
Joined: Fri Dec 12, 2014 12:06 am
Location: Macedonia
Contact:

Re: Guest Network dhcp lease time

Fri Oct 16, 2015 12:33 am

Maybe this will hrlp you..

http://forum.mikrotik.com/viewtopic.php?t=93546
/ip pool
add name=WiFI ranges=192.168.10.10-192.168.10.100
/ip dhcp-server
add add-arp=yes address-pool=WiFI disabled=no interface=wlan1 lease-time=1h \
    name=WiFi
/system logging action
set 3 src-address=0.0.0.0
/ip address
add address=192.168.10.1/24 interface=wlan1 network=192.168.10.0
/ip dhcp-client
add default-route-distance=0 dhcp-options=hostname,clientid disabled=no \
    interface=ether1
/ip dhcp-server network
add address=192.168.10.0/24 dns-server=8.8.8.8 gateway=192.168.10.1 netmask=\
    24
/ip firewall filter
add action=add-src-to-address-list address-list=NewIp address-list-timeout=5m \
    chain=forward out-interface=ether1 src-address=192.168.10.0/24 \
    src-address-list=!TimeOut
add action=add-src-to-address-list address-list=TimeOut address-list-timeout=\
    10m chain=forward out-interface=ether1 src-address=192.168.10.0/24
/ip firewall nat
add action=masquerade chain=srcnat out-interface=ether1 src-address=\
    192.168.10.0/24 src-address-list=NewIp
So basicalle create two networks, one with internet connection, and second without.. Lease time set to be 30 mins in 24 hours..

Who is online

Users browsing this forum: No registered users and 12 guests