From 509328fff952070e1a1b7adad3c0bf3095efdfee Mon Sep 17 00:00:00 2001 From: Thomas Lange Date: Thu, 21 Jan 2016 17:03:28 +0100 Subject: Initial commit --- Bash/iptables-whiteblacklisting.sh | 27 ++++++--------------------- 1 file 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: : #=============================================================================== -BLACKLISTING=( - 'udp:28785' - 'udp:28786' -) +BLACKLISTING=() #=============================================================================== # Define IPTables commands for IPv4 and IPv6 -- cgit v1.2.3