diff options
author | tv <tv@shackspace.de> | 2014-08-21 13:28:19 +0200 |
---|---|---|
committer | tv <tv@shackspace.de> | 2014-08-21 13:28:19 +0200 |
commit | 3d50e7386178cd0392d2e1c9ba7b9e933b4c27e3 (patch) | |
tree | 77cc15d9b1ce1e0f82120dd4c85550b1a992b6bb /wu-system/wu-iptables.sh |
initial commit
Diffstat (limited to 'wu-system/wu-iptables.sh')
-rw-r--r-- | wu-system/wu-iptables.sh | 17 |
1 files changed, 17 insertions, 0 deletions
diff --git a/wu-system/wu-iptables.sh b/wu-system/wu-iptables.sh new file mode 100644 index 0000000..67b06d4 --- /dev/null +++ b/wu-system/wu-iptables.sh @@ -0,0 +1,17 @@ +#? /bin/sh + +# reset tables +ipXtables -P INPUT DROP +ipXtables -P FORWARD DROP +ipXtables -F +ipXtables -X + + +ipXtables -N Retiolum + +ipXtables -A INPUT -j Retiolum -i retiolum + +ipXtables -A Retiolum -j ACCEPT -p tcp --dport smtp -m conntrack --ctstate NEW + + +etc. |