summaryrefslogtreecommitdiff
path: root/conf/network_if-up.d_samizdat.in
diff options
context:
space:
mode:
Diffstat (limited to 'conf/network_if-up.d_samizdat.in')
-rwxr-xr-xconf/network_if-up.d_samizdat.in5
1 files changed, 5 insertions, 0 deletions
diff --git a/conf/network_if-up.d_samizdat.in b/conf/network_if-up.d_samizdat.in
new file mode 100755
index 0000000..4c02c93
--- /dev/null
+++ b/conf/network_if-up.d_samizdat.in
@@ -0,0 +1,5 @@
1#!/bin/sh
2RULE='OUTPUT -p tcp -d 10.192.0.0/10 -j REDIRECT --to-ports 9040'
3iptables -t nat -D $RULE 2>/dev/null
4[ "$VERBOSITY" -gt 0 ] && set -x
5iptables -t nat -A $RULE