I'm trying to accomplish a lock using the mikrotik's Layer7 firewall, but I cannot, following settings:
Code: Select all
/ IP-protocol firewall Layer7
add name = teste_url regexp = "^. + (teste.com.br/servicos.html).*\$"
/ ip firewall filter
add chain = forward comment = "Allow access only to URL informed Layer7" Layer7-protocol = teste_url
add action = drop chain = forward comment = "Locks all the rest"
[/ code]
My goal is to allow access to only the URL that contains * teste.com.br/servicos.html *, but if he tries to access teste.com.br will not get.
I tried to carry out this setting, but it still fails.
Anyone have any suggestions?
I am performing this test on a RB750 version 6.29.1