Community discussions

MikroTik App
 
ahlai
newbie
Topic Author
Posts: 29
Joined: Sat May 27, 2006 8:07 am

define packet-mark

Fri Jun 16, 2006 6:10 am

/ip firewall mangle add protocol=tcp dst-port=80 action=mark-packet new-packet-mark=www
/ip firewall mangle add protocol=udp dst-port=53 action=mark-packet new-packet-mark=dns
/ip firewall mangle add protocol=tcp dst-port=8000 action=mark-packet new-packet-mark=qq
/ip firewall mangle add protocol=tcp dst-port=4000 action=mark-packet new-packet-mark=qq
/ip firewall mangle add protocol=udp dst-port=8000 action=mark-packet new-packet-mark=qq
/ip firewall mangle add protocol=udp dst-port=4000 action=mark-packet new-packet-mark=qq
/ip firewall mangle add protocol=tcp dst-port=80 action=mark-packet new-packet-mark=www
/ip firewall mangle add p2p=all-p2p action=mark-packet new-packet-mark=p2p
i want to define the rest packets mark to other
what should i do
thanks
 
Gerard
Trainer
Trainer
Posts: 336
Joined: Wed Apr 26, 2006 4:21 am
Location: Kentucky, USA
Contact:

Sun Jun 18, 2006 11:36 pm

You can do it a few different ways.

You can make a new mangle rule (before the ones you already have) to mark everything as other and set passthrough=yes and that will make everything marked as other unless it matches one of the other rules you have set..

OR

you can make all of your existing mangle rules passthrough=no
and then make a rule at the end of your current rules that matches everything else and mark them as other..

-Gerard

Who is online

Users browsing this forum: Bing [Bot], Google [Bot], kos and 34 guests