#---start of arbiext for use with Commercial versions of The Bandwidth Arbitrator CD
cp /home/root/floppy/arbdefault.conf /etc
mkdir /home/
cp /home/root/floppy/passwd /etc
cp /home/root/floppy/ssh_* /etc
chmod 600 /etc/ssh_*
cp /home/root/floppy/resolv.conf /etc
cp /home/root/floppy/hosts /etc
/etc/init.d/sshd start
mkdir /var/www
cd /var/www
tar zxfv /art/webgui.tar.gz
cp etc/thttpd.conf /etc
/etc/init.d/thttpd start
/art/MODIFY_CONFIG BRAIN_SIZE 500
/art/MODIFY_CONFIG BUFFERS 300
#----------------#
# STATS COLLEC. #
#----------------#
/art/reports nohup &
#----------------#
# APPLICATIONS #
#----------------#
/art/ADD_CONFIG APP KAZAA 50kbs
/art/ADD_CONFIG APP BEARSHARE 50kbs
/art/ADD_CONFIG APP WINMX 50kbs
#----------------#
# FIREWALL #
#----------------#
iptables -F
iptables -A INPUT -i my -s -j ACCEPT
iptables -A INPUT -i my -s -j ACCEPT
iptables -A INPUT -i my -p tcp --destination-port 80 -j DROP
# Deny customer with welchia to ping
iptables -A INPUT -i my -s -p icmp -j DROP
#----------------#
# MASKS-ABSOLUTE #
#----------------#
#MS-UPDATES
/art/ADD_CONFIG MASK 67.106.64.73/32 absolute
/art/ADD_CONFIG MASK 207.46.249.126/32 absolute
#DNS-SERVER
/art/ADD_CONFIG MASK /32 absolute
#CUSTOMERS WITH MASKS
/art/ADD_CONFIG MASK /32 absolute
#--------------#
# MASKS-PAIRED #
#--------------#
/art/ADD_CONFIG MASK /32 paired
#----------------#
# SERVICE LEVELS #
#----------------#
#CUSTOMER WITH SERVICE LEVEL
/art/ADD_CONFIG HOST /32 LIMIT 256kbs
#---------------------#
# CONNECTION LIMITING #
#---------------------#
#CONNECTION-LIMITED CUSTOMER (GOOD FOR P2P APPS)
/art/ADD_CONFIG CONNECTION /32 50 0
#MISC BOZOS NOT WANTED ON SERVER (IE OUTSIDE CARRIERS OF VIRUSES/SPAM TRYING TO FLOOD YOUR NETWORK)
#CONSIDER BLOCKING WITH IPTABLES
/art/ADD_CONFIG CONNECTION /32 0 0
/art/ADD_CONFIG CONNECTION /32 0 0
#---end of arbiext for use with Commercial versions of The Bandwidth Arbitrator CD
and here's a simple script for seeing who's being penalized at any given time:
#!/bin/sh
#
today=`date +"%m/%d/%y"`
#modify for your time zone -- -2 hours is for MTN
time_of_day=`date --rfc-822 --set="-2 hours"`
echo "Currently Penalized Users - " $time_of_day
/art/penalties $today
#---