--- htb-gen.orig	2006-12-08 18:08:47.000000000 -0300
+++ htb-gen	2006-12-08 18:10:50.000000000 -0300
@@ -154,8 +154,10 @@
 	# Make extra tables, cleaner & target match faster
 	iptables -t mangle -N htb-gen.down 
 	iptables -t mangle -A FORWARD -o ${iface_down} -j htb-gen.down
+	iptables -t mangle -A OUTPUT  -o ${iface_down} -j htb-gen.down
 	iptables -t mangle -N htb-gen.up 
 	iptables -t mangle -A FORWARD -o ${iface_up} -j htb-gen.up
+	iptables -t mangle -A OUTPUT  -o ${iface_up} -j htb-gen.up
 	
 	for ((n=0;n<${#ip[@]};n++)); do
 		__do_iptables "down" ${ip[n]} ${class_prio_down[n]} ${class_dfl_down[n]}
@@ -169,7 +171,9 @@
 else
 	#delete old htb-gen entries(chains)
 	iptables -t mangle -D FORWARD -o ${iface_down} -j htb-gen.down 2>/dev/null
+	iptables -t mangle -D OUTPUT  -o ${iface_down} -j htb-gen.down 2>/dev/null
 	iptables -t mangle -D FORWARD -o ${iface_up} -j htb-gen.up 2>/dev/null
+	iptables -t mangle -D OUTPUT  -o ${iface_up} -j htb-gen.up 2>/dev/null
 	while read line ;do
 		test -z "${line##:htb-gen*}" || continue # filter htb-gen chains only
 		chain=(${line/:/})

