diff --git a/ChangeLog b/ChangeLog index 75620dc..55978a0 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,4 +1,19 @@ -ddos (0.8) stable; urgency=low +Changes Log +========================================================================== + +Version 0.9 - Date 05/03/2017 + + * Support for freebsd and many other improvements thanks to + Marc S. Brook (https://github.com/nuxy) + * Added option to only block incoming connections thanks to + Fathardie (https://github.com/Fathardie) + * Optional automatic installation of dependencies on the install script + thanks to gloomy-ghost (https://github.com/gloomy-ghost) + * Some other fixes and improvements thanks to + mean-cj (https://github.com/mean-cj) + + +Version 0.8 - Date 25/09/2015 * Use a separate bans list file instead of reusing the ignore whitelisted file which is more secure on case of unexpected @@ -10,13 +25,13 @@ ddos (0.8) stable; urgency=low * Added hostname to email notification. * Execute tcpkill when ip is banned for 60 seconds and kill it. - -- Jefferson González Fri, 09 Jan 2015 17:27:01 +0200 -ddos (0.7) stable; urgency=low +Version 0.7 - Date 26/06/2015 * Moved configuration files to /etc/ddos/ * Whitelist hostnames, via /etc/ddos/ignore.host.list. - * The script can run as a daemon with monitoring frequency in seconds defined by DAEMON_FREQ + * The script can run as a daemon with monitoring frequency in seconds + defined by DAEMON_FREQ * Auto-detection of available firewall for use. * Added support for CSF file. * Added man page. @@ -32,17 +47,19 @@ ddos (0.7) stable; urgency=low * New configuration option CONN_STATES (see man ddos). * Check ip of local interfaces and whitelist them to prevent self bans. * Improved netstat command to support ipv6 (experimental). - * Removed .cron extension of generated cron file because it seems to cause issues. + * Removed .cron extension of generated cron file because it seems + to cause issues. * Removed KILL from conf (use -v|--view instead). - -- Jefferson González Fri, 09 Jan 2015 17:27:01 +0200 -ddos (0.6) stable; urgency=low +Version 0.6 - Date 01/01/2005 - * It is possible to whitelist IP addresses, via /usr/local/ddos/ignore.ip.list. + * Original work by Zaf from which this work is based. + * It is possible to whitelist IP addresses, via + /usr/local/ddos/ignore.ip.list. * Simple configuration file: /usr/local/ddos/ddos.conf - * IP addresses are automatically unblocked after a preconfigured time limit (default: 600 seconds) - * The script can run at a chosen frequency via the configuration file (default: 1 minute) + * IP addresses are automatically unblocked after a preconfigured time + limit (default: 600 seconds) + * The script can run at a chosen frequency in cron via the + configuration file (default: 1 minute) * You can receive email alerts when IP addresses are blocked. - - -- Zaf Mon, 1 Jan 2005 01:00:00 +0200 diff --git a/install.sh b/install.sh index 771be45..a87772a 100755 --- a/install.sh +++ b/install.sh @@ -1,13 +1,13 @@ #!/bin/sh # Check for required dependencies -if [ -f "$DESTDIR/usr/bin/apt-get" ]; then +if [ -f "/usr/bin/apt-get" ]; then install_type='2'; install_command="apt-get" -elif [ -f "$DESTDIR/usr/bin/yum" ]; then +elif [ -f "/usr/bin/yum" ]; then install_type='3'; install_command="yum" -elif [ -f "$DESTDIR/usr/sbin/pkg" ]; then +elif [ -f "/usr/sbin/pkg" ]; then install_type='4'; install_command="pkg" else @@ -145,8 +145,8 @@ elif [ -d /etc/rc.d ]; then # Activate the service echo -n "Activating ddos service..." echo 'ddos_enable="YES"' >> /etc/rc.conf - service ddos start > /dev/null 2>&1 - echo " (done)" + service ddos start > /dev/null 2>&1 + echo " (done)" elif [ -d /usr/lib/systemd/system ]; then echo -n 'Setting up systemd service...' mkdir -p "$DESTDIR/usr/lib/systemd/system/" diff --git a/src/ddos.sh b/src/ddos.sh index 882c36e..1542c48 100755 --- a/src/ddos.sh +++ b/src/ddos.sh @@ -1,9 +1,10 @@ #!/bin/sh ############################################################################## -# DDoS-Deflate version 0.8 Author: Zaf # +# DDoS-Deflate version 0.9 Author: Zaf # ############################################################################## # Contributors: # -# Jefferson González # +# Jefferson González # +# Marc S. Brooks # ############################################################################## # This program is distributed under the "Artistic License" Agreement # # # @@ -32,7 +33,7 @@ load_conf() head() { - echo "DDoS-Deflate version 0.8" + echo "DDoS-Deflate version 0.9" echo "Copyright (C) 2005, Zaf " echo }