Community discussions

MikroTik App
 
bakkerl
just joined
Topic Author
Posts: 16
Joined: Tue Aug 25, 2009 12:14 am

L7 does not trigger

Fri Dec 16, 2011 3:15 pm

Hello,

For some filtering i need L7 filtering.. This filter should be triggerd on all webbrowser communication and i created the following L7 protocol:
/ip firewall layer7-protocol
add name=Webbrowser regexp="User-Agent: [Mm]ozilla"
In combination with:
/ip firewall filter
add action=log chain=forward comment="Browser test" disabled=no dst-address=\
    192.168.10.10 layer7-protocol=Webbrowser log-prefix="Webbrowser (dest)"
add action=log chain=forward comment="Browser test" disabled=no \
    layer7-protocol=Webbrowser log-prefix="Webbrowser (source)" src-address=\
    192.168.10.10

I would expect some log lines if i am browsing to a service where the traffic is forwarded by this RB.

What am i doing wrong? :?
 
jandafields
Forum Guru
Forum Guru
Posts: 1515
Joined: Mon Sep 19, 2005 6:12 pm

Re: L7 does not trigger

Wed Dec 21, 2011 4:59 am

Hello,

For some filtering i need L7 filtering.. This filter should be triggerd on all webbrowser communication and i created the following L7 protocol:
/ip firewall layer7-protocol
add name=Webbrowser regexp="User-Agent: [Mm]ozilla"
In combination with:
/ip firewall filter
add action=log chain=forward comment="Browser test" disabled=no dst-address=\
    192.168.10.10 layer7-protocol=Webbrowser log-prefix="Webbrowser (dest)"
add action=log chain=forward comment="Browser test" disabled=no \
    layer7-protocol=Webbrowser log-prefix="Webbrowser (source)" src-address=\
    192.168.10.10

I would expect some log lines if i am browsing to a service where the traffic is forwarded by this RB.

What am i doing wrong? :?
Do a wireshark cap and see if that expression is exactly coming through like that User-Agent: Mozilla and that it isn't perhaps slightly different.

Who is online

Users browsing this forum: armandfumal, Bing [Bot], n0rbl, yonutm and 133 guests