# ------------------------------------------------------------------------------ # -= Arno's Iptables Firewall(AIF) - Traffic Shaper plugin =- # ------------------------------------------------------------------------------ # To actually enable this plugin make ENABLED=1: # ------------------------------------------------------------------------------ ENABLED=0 # The external interface(s) to perform traffic shaping for # ------------------------------------------------------------------------------ SHAPER_IF="$EXT_IF" # Specify qdisc type: cfq (default), htb or hfsc (experimental) # ------------------------------------------------------------------------------ SHAPER_TYPE="cfq" ################################################################################ # NOTE: The remaining settings below don't apply to cfq (only hfsc/htb)! # # DOWNLINK/UPLINK are required to be configured, the rest is optional. # ################################################################################ # The uplink/downlink speed of your internet connection in KBit # Note: Disable incoming (ingress) shaping with DOWNLINK=0 # UPLINK must be defined and greater than 0 # ------------------------------------------------------------------------------ DOWNLINK=3072 UPLINK=832 # Most users can leave the port classification as is. The notation signifies # the destination port on *outbound* traffic. Ports are prefixed by 'u' for # UDP and 't' for TCP. Ranges are given as 5060:5064. # # Additionally, packets tagged with DSCP classes EF, CS3, etc. # will be automatically placed with the proper priority. # ------------------------------------------------------------------------------ # Higher Priority - Streaming Media - VoIP (RTP, IAX2, etc.) # ------------------------------------------------------------------------------ SHAPER_STREAMINGMEDIA_PORTS="u4569 u1720 u1731" # High Priority - Interactive - Shell (ssh, telnet, X, Vnc, etc.) # ------------------------------------------------------------------------------ SHAPER_INTERACTIVE_PORTS="u53 t22 u1194 t3389 u5060:5064 t5900" # Medium Priority - Default (SIP-signaling) # Default, no ports defined # Low Priority - Bulk data transfer (HTTP, HTTPS, POP3, SMTP, FTP, etc.) # ------------------------------------------------------------------------------ SHAPER_BULKDATA_PORTS="t20 t21 t25 t80 t110 t137:139 u137:139 t143 t443 t465 t515 t993 t8080" # Lowest Priority - P2P (BitTorrent) # ------------------------------------------------------------------------------ SHAPER_P2P_PORTS="" # (EXPERT SETTING!) If there are servers running locally, include # the protocol/port from any of the above SHAPER PORTS to also match # on the source port in addition to the destination port. # ------------------------------------------------------------------------------ SHAPER_LOCAL_SERVER_PORTS=""