P
P
Petr Ivanov2015-08-17 10:51:47
Computer networks
Petr Ivanov, 2015-08-17 10:51:47

Blocking social networks mikrotik?

Hello. I block social networks on mikrotike.
The essence of the question is how to block social sites on the network, except for certain ip addresses.
For example, I block the network 10.34.11.0/24 with the rule
/ip firewall filter add chain=forward protocol=tcp src-address=10.34.11.0/24 content="vk.com" action=reject reject-with=tcp-reset
and 10.34. 11.30 and 10.34.11.35 it is necessary that social networks are not blocked, how to implement this.

Answer the question

In order to leave comments, you need to log in

1 answer(s)
R
Ruslan Fedoseev, 2015-08-17
@petrvolga2

Place an allow rule before the deny rule.
/ip firewall filter add chain=forward protocol=tcp src-address=10.34.11.30 content="vk.com" action=accept
/ip firewall filter add chain=forward protocol=tcp src-address=10.34.11.35 content="vk .com" action=accept
/ip firewall filter add chain=forward protocol=tcp src-address=10.34.11.0/24 content="vk.com" action=reject reject-with=tcp-reset
should be like this as a result

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question