Attention: All pages of this wiki depend on the pages that come before it, in order as they are listed on the Main Page. Please check for Dependencies.
Please also look at What You Need to Know Before Using This Wiki

Difference between revisions of "Shape/Track Bandwidth - Finalize IPTables"

Jump to: navigation, search
(System Prep)
(Install and Configure Bandwidth Accounting and Reporting)
Line 10: Line 10:
==Install and Configure Bandwidth Accounting and Reporting==
==Install and Configure Bandwidth Accounting and Reporting==
*m-a a-i -t xtables-addons-source
*echo xt_ACCOUNT >> /etc/modules
*echo xt_ACCOUNT >> /etc/modules
*modprobe xt_ACCOUNT
*modprobe xt_ACCOUNT

Revision as of 00:31, 15 August 2014

System Prep

  • apt-get install tcng xtables-addons-source xtables-addons-common nbtscan linux-headers-$(uname -r) automake libtool libfile-tail-perl libtext-trim-perl libdatetime-format-mail-perl libnet-sslglue-perl
  • Note: as of Apr2014, tcng must be installed from wheezy (update sources.list && apt-get install tcng/wheezy)

Configure Traffic Control

Install and Configure Bandwidth Accounting and Reporting

  • m-a a-i -t xtables-addons-source
  • echo xt_ACCOUNT >> /etc/modules
  • modprobe xt_ACCOUNT
  • depmod -a
  • vi /root/scripts/
  • crontab -e
    • 9-59/10 * * * * PATH=/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin; /usr/bin/perl /root/scripts/ <= Note: on large networks this can take a few minutes to run, and it needs to complete it's data collection before 00:00, so you may need to set it to start at 58 or 57

Finalize IPTables Configuration

  • vi /root/scripts/iptables-restore
  • iptables-restore < /root/scripts/iptables-restore
  • iptaccount -a <= Make sure these three lines show up:
    Found table: wan
    Found table: computerisms
    Found table: pubaccess
  • From worklian:
    • telnet 25 <= Make sure you can telnet to ports 25, 80, 443, 587, 993, 995