Changes between Version 3 and Version 4 of Document/Development/Design/Module/TrafficShaping/Ingress
- Timestamp:
- 03/26/07 15:30:31 (6 years ago)
Legend:
- Unmodified
- Added
- Removed
- Modified
-
Document/Development/Design/Module/TrafficShaping/Ingress
v3 v4 34 34 More information at [http://wiki.nix.hu/cgi-bin/twiki/view/IMQ/ImqFaq] FAQ. 35 35 36 Introduces some delay since all incoming traffic should pass two queues (normal interface and the new virtual interface). 37 36 38 == Usage == 37 39 … … 44 46 ip link set imq'n' up 45 47 }}} 46 1. Working normally as a ''egress'' interface 48 1. Do the traffic shaping rules as at ''egress'' traffic 49 1. Direct traffic to that virtual interface 50 {{{ 51 iptables -t mangle -A PREROUTING -i <iface> -j IMQ --todev n 52 }}} 47 53 48 54 More information at [http://wiki.nix.hu/cgi-bin/twiki/view/IMQ/HowToUse]. 55 56 == Internal functionality == 57 58 IMQ is a 'dummy' interface which works as a virtual interface to shape incoming (''ingress'') traffic. To achieve so, some iptables rules are needed to direct packets to that interface which they are reordered (doing the shaping). These rules are processed after the other iptables commands. For '''ingress''', the rules are processed just ''after the mangle rules''. For '''egress''', the imq rules are matched ''after all other iptables rules''. 59 60 More information at [http://www.docum.org/docum.org/faq/cache/17.html LARTC FAQ].