diff options
author | Andrew Cady <d@jerkface.net> | 2019-10-11 22:30:22 -0400 |
---|---|---|
committer | Andrew Cady <d@jerkface.net> | 2019-10-11 22:30:22 -0400 |
commit | 189b3763818fe5792cf06ead5f96f13be4080ed9 (patch) | |
tree | 02a5b2c717032b3c01349b0adec9369355d43198 /conf/network_if-up.d_samizdat.in | |
parent | 674020ccbe893f89238982b0c7e11cc9be871629 (diff) |
new target: make install-bootserver
Diffstat (limited to 'conf/network_if-up.d_samizdat.in')
-rwxr-xr-x | conf/network_if-up.d_samizdat.in | 5 |
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 | ||
2 | RULE='OUTPUT -p tcp -d 10.192.0.0/10 -j REDIRECT --to-ports 9040' | ||
3 | iptables -t nat -D $RULE 2>/dev/null | ||
4 | [ "$VERBOSITY" -gt 0 ] && set -x | ||
5 | iptables -t nat -A $RULE | ||