Difference between revisions of "Manual:IP/Firewall/L7"

From MikroTik Wiki
Jump to: navigation, search
(Undo revision 5541 by Hrnous (Talk))
Line 12: Line 12:
  
 
You can download a script with a list of common programs [http://www.mikrotik.com/download/l7-protos.rsc here] (only for RouterOS v3 RC6). Pattern libraries can be found on the [http://l7-filter.sourceforge.net/protocols layer7 project page] and on the [http://protocolinfo.org/wiki/Main_Page protocol wiki].
 
You can download a script with a list of common programs [http://www.mikrotik.com/download/l7-protos.rsc here] (only for RouterOS v3 RC6). Pattern libraries can be found on the [http://l7-filter.sourceforge.net/protocols layer7 project page] and on the [http://protocolinfo.org/wiki/Main_Page protocol wiki].
 
 
FOR EXAMPLE TRY LOGIN WITH WINBOX TO 88.146.216.177 USER "demo" PASSWORD "demo" .. THIS IS DEMO ROUTER WIT L7 FILTERING
 
 
Hrnous
 

Revision as of 14:29, 11 October 2007

layer7-protocol is a method of looking for patterns in connections.

First, add Regexp strings to the protocols menu, to define strings you will be looking for.

/ip firewall layer7-protocol add=

Then, use the defined protocols in firewall:

/ip firewall filter add layer7-protocol=

RouterOS will look for these strings in all connections passing the firewall rule where you use this. As this is resource intensive, make sure to filter out all good traffic before it hits this rule.

You can download a script with a list of common programs here (only for RouterOS v3 RC6). Pattern libraries can be found on the layer7 project page and on the protocol wiki.