Thanks for the reply zerobyte
I think the controlled ARP entry solution is the best because it requires zero scripting and zero maintenance - it just works, and it forces users to get DHCP if they want to get on the Internet. I configured that setup in GNS3 and it worked like a champ and was brain-dead-easy to do.
[img]
Network-Diagram.png
[/img]
I have some issues in controlled ARP please find configuration below
I have configured DHCP ARP lease option & also configured bridge internet as ARP to reply-only but as i have explained earlier i am using Mikrotik as only bridge to my main router (to which i don't have access, but i can ask them to add static arp entry once), so in this case if any of my client PC hardwire static ip manually he can able to access main router as well as internet i.e. 192.168.1.110, so how can i block access to that ip, if client is not having ip from DHCP and not logged on to the hotspot he must not have access to the internet.
[admin@MikroTik] > /export
# jan/01/2002 02:17:05 by RouterOS 6.34.1
# software id = W3NB-CA6B
#
/interface bridge
add admin-mac=E4:8D:8C:23:B2:E3 arp=reply-only auto-mac=no comment=defconf \
name=bridge
/interface ethernet
set [ find default-name=ether2 ] name=ether2-master
set [ find default-name=ether3 ] master-port=ether2-master
set [ find default-name=ether4 ] master-port=ether2-master
set [ find default-name=ether5 ] master-port=ether2-master
set [ find default-name=ether6 ] name=ether6-master
set [ find default-name=ether7 ] master-port=ether6-master
set [ find default-name=ether8 ] master-port=ether6-master
set [ find default-name=ether9 ] master-port=ether6-master
set [ find default-name=ether10 ] master-port=ether6-master
/ip neighbor discovery
set ether1 discover=no
set bridge comment=defconf
/ip hotspot profile
add dns-name=login.myhotspot.com hotspot-address=192.168.0.1 name=hsprof1
/ip pool
add name=default-dhcp ranges=192.168.0.100-192.168.3.254
/ip dhcp-server
add add-arp=yes address-pool=default-dhcp disabled=no interface=bridge name=\
defconf
/ip hotspot
add address-pool=default-dhcp disabled=no interface=bridge name=hotspot1 \
profile=hsprof1
/interface bridge port
add bridge=bridge comment=defconf interface=ether2-master
add bridge=bridge comment=defconf interface=ether6-master
add bridge=bridge comment=defconf interface=sfp1
/ip address
add address=192.168.0.1/22 comment=defconf interface=bridge network=192.168.0.0
/ip dhcp-client
add comment=defconf dhcp-options=hostname,clientid disabled=no interface=ether1
/ip dhcp-server network
add address=192.168.0.0/22 comment=defconf gateway=
192.168.1.110
/ip dns
set allow-remote-requests=yes servers=8.8.8.8,8.8.4.4
/ip dns static
add address=192.168.0.1 name=router
/ip firewall filter
add action=passthrough chain=unused-hs-chain comment="place hotspot rules here" \
disabled=yes
add chain=input comment="defconf: accept ICMP" protocol=icmp
add chain=input comment="defconf: accept establieshed,related" \
connection-state=established,related
add action=drop chain=input comment="defconf: drop all from WAN" in-interface=\
ether1
add action=fasttrack-connection chain=forward comment="defconf: fasttrack" \
connection-state=established,related
add chain=forward comment="defconf: accept established,related" \
connection-state=established,related
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=ether1
/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" out-interface=\
ether1
/ip hotspot user
add name=admin password=abc
/tool mac-server
set [ find default=yes ] disabled=yes
add interface=bridge
/tool mac-server mac-winbox
set [ find default=yes ] disabled=yes
add interface=bridge
You do not have the required permissions to view the files attached to this post.