Show
Ignore:
Timestamp:
05/30/09 06:29:48 (3 years ago)
Author:
Neutron Soutmun <neo.neutron@…>
Children:
96808c5450804cf9cc6a590500ccce6131c2b937
Parents:
a0fbd8081aad14716555b28cab27c19b76973eea
git-committer:
Neutron Soutmun <neo.neutron@…> (05/30/09 06:29:48)
Message:

Adjust firewall script, handle bittorrent throttle

  • The firewall script now handle bittorrent throttle properly.
  • Adjust the priority of the throttle filter which more important over the users' session filter.
Files:
1 modified

Legend:

Unmodified
Added
Removed
  • tools/firewall.sh.in

    raace70f r9679928  
    485485  #   bittorrent-announce is customized pattern, warning if not exists. 
    486486  ## 
    487   if [ "$BITTORRENT" = "yes" -o -n "$BITTORRENT_ALLOW" ]; then 
     487  if [ "$BITTORRENT" = "yes" ] || [ -n "$BITTORRENT_ALLOW" ]; then 
    488488    if [ -n "$BITTORRENT_ALLOW" ]; then 
    489489      BITTORRENT_ALLOW_OPTIONS="-m set ! --set $P2P_ALLOW_SET" 
     
    493493      $IPTABLES -t mangle -A $CHAIN_MANGLE_PREROUTING -m layer7 --l7proto bittorrent $BITTORRENT_ALLOW_OPTIONS src -j DROP 
    494494    fi 
    495   else 
     495  elif [ "$BITTORRENT" = "block" ]; then 
    496496      $IPTABLES -t mangle -A $CHAIN_MANGLE_PREROUTING -m layer7 --l7proto bittorrent-announce -j DROP 
    497497      $IPTABLES -t mangle -A $CHAIN_MANGLE_PREROUTING -m layer7 --l7proto bittorrent -j DROP