129. Mikrotik Allow Access From Specific Country



You can contact me: plus.google.com/+PhallaCCMT; youtube.com/phallaccmt; facebook.com/Phalla.CCMT; twitter.com/PhallaCCMT and Phalla.CCMT@gmail.com

Script:

Download Address List file to Router:
/tool fetch url=http://www.iwik.org/ipcountry/mikrotik/KH

Import IP Address from File to Address-List:
/import file-name=KH

Filter Rule:
/ip firewall filter add chain=forward in-interface=ether1_WAN src-address-list=!KH action=drop comment="Allow Only access From My Country" disabled=no


Ref:
http://www.ip2location.com/free/visitor-blocker
http://www.iwik.org/ipcountry/
http://www.nationsonline.org/oneworld/country_code_list.htm


Previous
Next Post »

2 comments

Write comments
Unknown
AUTHOR
August 23, 2017 at 2:57 AM delete

how to create Fair Usage Policy on mikrotik user manager, actually i want to give a user 5mbps speed and 20 gb data, after 20 gb speed should reduce to 512 kbps automaticall

Reply
avatar
Faiza Jee
AUTHOR
August 18, 2019 at 12:53 PM delete

Thanks for sharing the post.. parents are worlds best person in each lives of individual..they need or must succeed to sustain needs of the family. Melbourne Access Control Systems

Reply
avatar