From c0965df1dec6aa2de0221eb833ff99d498a6bde8 Mon Sep 17 00:00:00 2001
From: Nigel Kukard <nkukard@lbsd.net>
Date: Wed, 16 Oct 2013 12:04:26 +0000
Subject: [PATCH] Config fixups & plugin ordering

---
 opentrafficshaper.conf | 39 +++++++++++++++++++++------------------
 1 file changed, 21 insertions(+), 18 deletions(-)

diff --git a/opentrafficshaper.conf b/opentrafficshaper.conf
index 5412ca9..c5332c9 100644
--- a/opentrafficshaper.conf
+++ b/opentrafficshaper.conf
@@ -29,16 +29,30 @@
 #
 [plugins]
 # Names of plugins to load, one per line
+# NOTE: The ordering is very important
+
+# Radius support
 load=radius
-load=webserver
-load=tc
 
 # Statistics
+# Must load before webserver if you want graphs
 load=statistics
-load=tcstats
+
+# Web interface
+load=webserver
 # Statistics live streaming snapin
+# Must load after webserver
 load=webserver/snapins/websockets/statistics
 
+# Traffic shaper
+load=tc
+# Traffic shaper interface to statistics
+# Must load after statistics
+# Must load after tc
+load=tcstats
+
+
+
 #
 # General shaping settings
 #
@@ -90,10 +104,10 @@ rate=100000
 # If Limit is not specified it defaults to CIR
 # if the class definition is omitted, defaults to rate of interface
 # The CIR and Limit are specified in Kbps or percentage
-class_rate=1:10
+class_rate=1:10000
 class_rate=2:5%/5%
 class_rate=3:5%
-class_rate=4:5/10
+class_rate=4:5000/10000
 class_rate=5:5%
 class_rate=6:5%
 
@@ -101,10 +115,10 @@ class_rate=6:5%
 name=LAN Interface
 rate=100000
 
-class_rate=1:10
+class_rate=1:70000
 class_rate=2:5%/5%
 class_rate=3:5%
-class_rate=4:5/10
+class_rate=4:3000/5000
 class_rate=5:5%
 
 
@@ -126,17 +140,6 @@ dictionary=dicts/dictionary.allworldit
 # TC Plugin
 #
 [plugin.tc]
-# Interface used for transmission of traffic to client
-txiface=eth1
-# Interface used for the receiving of traffic for client
-rxiface=eth0
-
-# Rates of both interfaces
-# This is in Mbit/s!!
-# Defaults to 100 each
-txiface_rate=100
-rxiface_rate=100
-
 # Protocol to filter on, 99% of the time it will be "ip"
 # If however you're filtering VLAN Q-in-Q traffic, set this to 0x88a8
 #protocol=ip
-- 
GitLab