Skip to content

Commit c80dbba

Browse files
committed
Updated changelog and some other cosmetic changes.
1 parent a32f4fa commit c80dbba

File tree

3 files changed

+38
-20
lines changed

3 files changed

+38
-20
lines changed

ChangeLog

Lines changed: 29 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,19 @@
1-
ddos (0.8) stable; urgency=low
1+
Changes Log
2+
==========================================================================
3+
4+
Version 0.9 - Date 05/03/2017
5+
6+
* Support for freebsd and many other improvements thanks to
7+
Marc S. Brook (https://github.com/nuxy)
8+
* Added option to only block incoming connections thanks to
9+
Fathardie (https://github.com/Fathardie)
10+
* Optional automatic installation of dependencies on the install script
11+
thanks to gloomy-ghost (https://github.com/gloomy-ghost)
12+
* Some other fixes and improvements thanks to
13+
mean-cj (https://github.com/mean-cj)
14+
15+
16+
Version 0.8 - Date 25/09/2015
217

318
* Use a separate bans list file instead of reusing the ignore
419
whitelisted file which is more secure on case of unexpected
@@ -10,13 +25,13 @@ ddos (0.8) stable; urgency=low
1025
* Added hostname to email notification.
1126
* Execute tcpkill when ip is banned for 60 seconds and kill it.
1227

13-
-- Jefferson González <jgmdev@gmail.com> Fri, 09 Jan 2015 17:27:01 +0200
1428

15-
ddos (0.7) stable; urgency=low
29+
Version 0.7 - Date 26/06/2015
1630

1731
* Moved configuration files to /etc/ddos/
1832
* Whitelist hostnames, via /etc/ddos/ignore.host.list.
19-
* The script can run as a daemon with monitoring frequency in seconds defined by DAEMON_FREQ
33+
* The script can run as a daemon with monitoring frequency in seconds
34+
defined by DAEMON_FREQ
2035
* Auto-detection of available firewall for use.
2136
* Added support for CSF file.
2237
* Added man page.
@@ -32,17 +47,19 @@ ddos (0.7) stable; urgency=low
3247
* New configuration option CONN_STATES (see man ddos).
3348
* Check ip of local interfaces and whitelist them to prevent self bans.
3449
* Improved netstat command to support ipv6 (experimental).
35-
* Removed .cron extension of generated cron file because it seems to cause issues.
50+
* Removed .cron extension of generated cron file because it seems
51+
to cause issues.
3652
* Removed KILL from conf (use -v|--view instead).
3753

38-
-- Jefferson González <jgmdev@gmail.com> Fri, 09 Jan 2015 17:27:01 +0200
3954

40-
ddos (0.6) stable; urgency=low
55+
Version 0.6 - Date 01/01/2005
4156

42-
* It is possible to whitelist IP addresses, via /usr/local/ddos/ignore.ip.list.
57+
* Original work by Zaf <zaf@vsnl.com> from which this work is based.
58+
* It is possible to whitelist IP addresses, via
59+
/usr/local/ddos/ignore.ip.list.
4360
* Simple configuration file: /usr/local/ddos/ddos.conf
44-
* IP addresses are automatically unblocked after a preconfigured time limit (default: 600 seconds)
45-
* The script can run at a chosen frequency via the configuration file (default: 1 minute)
61+
* IP addresses are automatically unblocked after a preconfigured time
62+
limit (default: 600 seconds)
63+
* The script can run at a chosen frequency in cron via the
64+
configuration file (default: 1 minute)
4665
* You can receive email alerts when IP addresses are blocked.
47-
48-
-- Zaf <zaf@vsnl.com> Mon, 1 Jan 2005 01:00:00 +0200

install.sh

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,13 @@
11
#!/bin/sh
22

33
# Check for required dependencies
4-
if [ -f "$DESTDIR/usr/bin/apt-get" ]; then
4+
if [ -f "/usr/bin/apt-get" ]; then
55
install_type='2';
66
install_command="apt-get"
7-
elif [ -f "$DESTDIR/usr/bin/yum" ]; then
7+
elif [ -f "/usr/bin/yum" ]; then
88
install_type='3';
99
install_command="yum"
10-
elif [ -f "$DESTDIR/usr/sbin/pkg" ]; then
10+
elif [ -f "/usr/sbin/pkg" ]; then
1111
install_type='4';
1212
install_command="pkg"
1313
else
@@ -145,8 +145,8 @@ elif [ -d /etc/rc.d ]; then
145145
# Activate the service
146146
echo -n "Activating ddos service..."
147147
echo 'ddos_enable="YES"' >> /etc/rc.conf
148-
service ddos start > /dev/null 2>&1
149-
echo " (done)"
148+
service ddos start > /dev/null 2>&1
149+
echo " (done)"
150150
elif [ -d /usr/lib/systemd/system ]; then
151151
echo -n 'Setting up systemd service...'
152152
mkdir -p "$DESTDIR/usr/lib/systemd/system/"

src/ddos.sh

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,10 @@
11
#!/bin/sh
22
##############################################################################
3-
# DDoS-Deflate version 0.8 Author: Zaf <zaf@vsnl.com> #
3+
# DDoS-Deflate version 0.9 Author: Zaf <zaf@vsnl.com> #
44
##############################################################################
55
# Contributors: #
6-
# Jefferson González <jgmdev@gmail.com> #
6+
# Jefferson González <jgmdev@gmail.com> #
7+
# Marc S. Brooks <devel@mbrooks.info> #
78
##############################################################################
89
# This program is distributed under the "Artistic License" Agreement #
910
# #
@@ -32,7 +33,7 @@ load_conf()
3233

3334
head()
3435
{
35-
echo "DDoS-Deflate version 0.8"
36+
echo "DDoS-Deflate version 0.9"
3637
echo "Copyright (C) 2005, Zaf <zaf@vsnl.com>"
3738
echo
3839
}

0 commit comments

Comments
 (0)