Network interfaces can be configured with multiple transmit Queues.

Configuring Priority Filter

If you use a priority filter with an interface, the tranasmit queue of a packet will be determined by the first matching filter.

Filter enterys are created usining the add filter command

ADD IP FILTER=filter-number SOURCE=ipadd [SMASK=ipadd] [SPORT={port-name|port-id}] [DESTINATION=ipadd [DMASK=ipadd]] [DPORT={port-name|port-id}] [ICMPCODE={icmp-code-name|icmp-code-id}] [ICMPTYPE={icmp-type-name|icmp-type-id}] [LOG={4..1600| DUMP|HEADER|NONE}] [OPTIONS={YES|NO}] [PROTOCOL={protocol|ANY|EGP|ICMP|OSPF|TCP|UDP}] [SESSION={ANY|ESTABLISHED|START}] [SIZE=size] [ENTRY=entry-number] {ACTION={INCLUDE|EXCLUDE}| POLICY=0..15|PRIORITY=P0..P7}

Please take care with the following as the order is important.



add ip filter=200 prot=icmp icmptype=echoreply pri=6
add ip filter=200 prot=icmp icmptype=echo pri=6
add ip filter=200 prot=icmp icmptype=quench pri=1
add ip filter=200 prot=icmp pri=5

add ip filter=200 prot=tcp sport=ntp pri=p1 
add ip filter=200 prot=tcp dport=ntp pri=p1 

add ip filter=200 prot=tcp sport=23 pri=p2 
add ip filter=200 prot=tcp dport=23 pri=p2 
add ip filter=200 prot=tcp sport=22 pri=p2 
add ip filter=200 prot=tcp dport=22 pri=p2 

add ip filter=200 prot=udp dport=Domain pri=3
add ip filter=200 prot=udp sport=Domain pri=3

add ip filter=200 prot=tcp dport=ftp pri=3
add ip filter=200 prot=tcp sport=ftp pri=3
add ip filter=200 prot=tcp dport=ftpdata pri=6
add ip filter=200 prot=tcp sport=ftpdata pri=6

add ip filter=200 prot=tcp sport=25 pri=p6 
add ip filter=200 prot=tcp dport=25 pri=p6 
add ip filter=200 prot=tcp sport=110 pri=p6 
add ip filter=200 prot=tcp dport=110 pri=p6 
add ip filter=200 prot=tcp sport=119 pri=p6 
add ip filter=200 prot=tcp dport=119 pri=p6 
add ip filter=200 prot=tcp sport=143 pri=p6 
add ip filter=200 prot=tcp dport=143 pri=p6 

add ip filter=200 prot=any pri=p5 

Interface

Add the Priority filter to a WAN link using the following command.

set ip int=ppp0 priorityfilter=200