summaryrefslogtreecommitdiff
path: root/conf/network_if-up.d_samizdat.in
diff options
context:
space:
mode:
authorAndrew Cady <d@jerkface.net>2019-10-11 22:30:22 -0400
committerAndrew Cady <d@jerkface.net>2019-10-11 22:30:22 -0400
commit189b3763818fe5792cf06ead5f96f13be4080ed9 (patch)
tree02a5b2c717032b3c01349b0adec9369355d43198 /conf/network_if-up.d_samizdat.in
parent674020ccbe893f89238982b0c7e11cc9be871629 (diff)
new target: make install-bootserver
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