R
R
Rinat Bakiev2015-11-04 13:37:35
Mikrotik
Rinat Bakiev, 2015-11-04 13:37:35

Blocking a site on mikrotik by time?

Hello!
Guys, can you tell me how to block access to vk.com on mikrotik from 22 to 06? :)

Answer the question

In order to leave comments, you need to log in

1 answer(s)
A
Ashot Aslanyan, 2015-11-04
@fellliche

/ip firewall filter
add action=reject chain=forward content=vk.com protocol=tcp reject-with=tcp-reset time=13h-18h,sun,mon,tue,wed,thu,fri,sat
13h-18h -- from 13:00 to 18:00 every day.
you can also do this
/ip firewall layer7-protocol add name="social_block" regexp="^.+(vk.com|vkontakte|odnoklassniki|odnoklasniki|facebook|ok.ru).*$"
/ip firewall filter add chain=forward layer7-protocol=social_block action=drop time=13h-18h,sun,mon,tue,wed,thu,fri,sat
works.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question