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
Shape/Track Bandwidth - Finalize IPTables: Difference between revisions
Jump to navigation
Jump to search
No edit summary |
|||
Line 13: | Line 13: | ||
*modprobe xt_ACCOUNT | *modprobe xt_ACCOUNT | ||
*depmod -a | *depmod -a | ||
*vi [[/root/scripts/ | *vi [[/root/scripts/bwrpt.pl]] | ||
*crontab -e | *crontab -e | ||
**59 * * * * bash /root/scripts/bwrprt.sh <b><= 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</b> | **59 * * * * bash /root/scripts/bwrprt.sh <b><= 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</b> |
Revision as of 23:05, 15 April 2014
System Prep
- apt-get install tcng xtables-addons-source xtables-addons-common nbtscan linux-headers-$(uname -r) automake libtool
- Note: As of Sept2013 use the package from Wheezy, the one from Jessie doesn't compile.
Configure Traffic Control
- vi /root/scripts/qos.tc
- echo \#\!\/bin\/bash > /root/scripts/qos.sh; tcng /root/scripts/qos.tc >> /root/scripts/qos.sh
- vi /root/scripts/qos.reset.sh
- bash /root/scripts/qos.reset.sh; bash /root/scripts/qos.sh
Install and Configure Bandwidth Accounting and Reporting
- echo xt_ACCOUNT >> /etc/modules
- modprobe xt_ACCOUNT
- depmod -a
- vi /root/scripts/bwrpt.pl
- crontab -e
- 59 * * * * bash /root/scripts/bwrprt.sh <= 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 192.168.25.15 25 <= Make sure you can telnet to ports 25, 80, 443, 587, 993, 995