summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorThomas Lange <code@nerdmind.de>2016-01-21 17:03:28 +0100
committerThomas Lange <code@nerdmind.de>2016-01-21 17:03:28 +0100
commit509328fff952070e1a1b7adad3c0bf3095efdfee (patch)
tree587d91cb52a319364a5fd73018e75b84f9e40daf
parente30a21457ece9ab9934ec1262c0ffbc936e4d688 (diff)
downloadsnippets-509328fff952070e1a1b7adad3c0bf3095efdfee.tar.gz
snippets-509328fff952070e1a1b7adad3c0bf3095efdfee.tar.xz
snippets-509328fff952070e1a1b7adad3c0bf3095efdfee.zip
Initial commit
-rwxr-xr-xBash/iptables-whiteblacklisting.sh27
1 files changed, 6 insertions, 21 deletions
diff --git a/Bash/iptables-whiteblacklisting.sh b/Bash/iptables-whiteblacklisting.sh
index eab72ef..f68b337 100755
--- a/Bash/iptables-whiteblacklisting.sh
+++ b/Bash/iptables-whiteblacklisting.sh
@@ -21,36 +21,21 @@ MODE='WHITELISTING' # This can only be "WHITELISTING" or "BLACKLISTING"
#===============================================================================
WHITELISTING=(
# SSH
- 'tcp:2200'
+ 'tcp:22'
+
+ # DNS
+ 'tcp:53'
+ 'udp:53'
# HTTP
'tcp:80'
'tcp:443'
-
- # XMPP
- 'tcp:5222'
- 'tcp:5269'
-
- # TeamSpeak
- 'udp:9987'
- 'tcp:30033'
- 'tcp:10011'
- 'tcp:41144'
-
- # Sauerbraten
- 'udp:28710'
- 'udp:28711'
- 'udp:28810'
- 'udp:28811'
)
#===============================================================================
# Blacklisting matching rules: <protocol>:<port>
#===============================================================================
-BLACKLISTING=(
- 'udp:28785'
- 'udp:28786'
-)
+BLACKLISTING=()
#===============================================================================
# Define IPTables commands for IPv4 and IPv6