projects
/
firewall-squeep
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
xeno add
[firewall-squeep]
/
shaper.sh
diff --git
a/shaper.sh
b/shaper.sh
index 5b55d3fd4b8b3ebbfd78f35c4725262956c8a448..3b2c6229d4899e58b18e64d2a2e424f1059b38b6 100755
(executable)
--- a/
shaper.sh
+++ b/
shaper.sh
@@
-8,7
+8,11
@@
SHAPE_CHAIN='SHAPER-OUT'
set -e
set -e
-. ./common.sh
+# . ./common.sh
+IPTABLES=$(which iptables)
+IP6TABLES=$(which ip6tables)
+IPSET=$(which ipset)
+TC=$(which tc)
if [ $# -lt 1 ]
then
if [ $# -lt 1 ]
then
@@
-68,7
+72,7
@@
fi
if ! $IP6TABLES -t mangle -L "${SHAPE_CHAIN}" >/dev/null 2>&1
then
echo "initializing ipv6 chain '${SHAPE_CHAIN}'"
if ! $IP6TABLES -t mangle -L "${SHAPE_CHAIN}" >/dev/null 2>&1
then
echo "initializing ipv6 chain '${SHAPE_CHAIN}'"
- $
i
P6TABLES -t mangle -N "${SHAPE_CHAIN}"
+ $
I
P6TABLES -t mangle -N "${SHAPE_CHAIN}"
fi
# prioritize small and responsive things
fi
# prioritize small and responsive things