E
E
Evgeny Yalovoy2016-10-05 11:30:15
network hardware
Evgeny Yalovoy, 2016-10-05 11:30:15

How to deny access to all sites except one on Mikrotik?

Good afternoon, there is a mikrotik rb951G - 2HnD router, the task is to prohibit certain machines from accessing the Internet, leaving only access to one page.
It turns out to completely deny access, but how to add access to only one domain (onedrive.live.com)?
Thanks for the help.

Answer the question

In order to leave comments, you need to log in

2 answer(s)
A
Alexander Romanov, 2016-10-05
@Kushelbek

Upgrade to 6.36 or higher, add the desired onedrive.live.com domain to the address-list. Let's call it onedrive
Add the addresses of the machines you want to restrict to another address-list, let's call it restrict
Next, write the rule in the firewall:

/ip firewall filter
add chain=forward src-address-list=restrict dst-address-list=!onedrive action=drop

Everything )

C
Cool Admin, 2016-10-05
@ifaustrue

Create an address list, with the IP to this site, and add an allow rule above the deny rule.
If all IPs are not known, then add a couple of static entries to the DNS.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question