debian/0000755000000000000000000000000011547312361007171 5ustar debian/ipband.postrm0000644000000000000000000000017411460035544011675 0ustar #!/bin/sh set -e #DEBHELPER# if [ "$1" = "purge" ]; then [ -d /var/run/ipband ] && rm -rf /var/run/ipband || true fi debian/source/0000755000000000000000000000000011460033612010462 5ustar debian/source/format0000644000000000000000000000001411460033612011670 0ustar 3.0 (quilt) debian/ipband.conf-simple0000644000000000000000000000332311460032473012562 0ustar # Sample configuration file for Debian ipband package. # Simple version. # The "fork" directive tells ipband to avoid forking into the background. # Since our init script does this, we say "no". fork no # The "interface" directive tells ipband interface eth0 # Make sure the device is in promiscuous promisc yes # The "bandwidth" directive is the default amount of bandwidht a subnet must # exceed before being reported. It is in kilobytes per second. It can be # modified on a per-subnet basis, see below. bandwidth 600 # The "average" directive specifies how often we should average bandwidth # used. This is in seconds. average 60 # The "report" directive determines how long a subnet must exceed the # bandwidth limit before being reported. This is in seconds. Default: five # minutes. report 300 # The "top" setting is used in the report. Up to this number of connections # will be included in the report, from the ones which have consumed the most # bandwidth to those which have consumed the least. top 15 # Email-address we report to. mailto root@localhost # Number of significant bits in the hostmask. The default is "24", which means # for a subnet "192.168.0.0", all hosts between 192.168.0.0-192.168.0.255 will # be monitored. maskbits 24 # Subnet declarations. Here we describe what networks and hosts we wich to # monitor. In this example, we have two networks. 10.0.0.1, which is part of a # low-bandwidth WAN, and 192.168.0.0, which is our local 10Mbps LAN. We will # use the default 600kB/s limit for the LAN, since it is a fast network. We'll # use a bandwidth of 60kB/s for the WAN, since it's slow, and we care more # about who is using what bandwidth. subnet 192.168.0.0 bandwidth 600 subnet 10.0.0.1 bandwidth 60 debian/rules0000755000000000000000000000003611460043005010236 0ustar #!/usr/bin/make -f %: dh $@ debian/README.Debian0000644000000000000000000000136611460032473011235 0ustar ipband for Debian ----------------- Sample configuration files are available in /usr/share/doc/ipband/examples . When you have edited it to your needs, install it to /etc/ipband.conf . When you've installed it, run '/etc/init.d/ipband start' to start ipband. By default, in this package, the daemon will automatically start at boot if /etc/ipband.conf exists. Parameters passed to ipband(8) by the init script are controlled via /etc/default/ipband. Support also exists to launch multiple ipband instances using different configuration files. See /etc/default/ipband. ipband is a complex tool, despite the simplicity of its reports. Please read 'man ipband' for more information. -- David B Harris , Wed, 19 Jun 2002 17:50:13 -0400 debian/changelog0000644000000000000000000001057511542145675011062 0ustar ipband (0.8.1-3) unstable; urgency=low * New maintainer. (Closes: #553356) * Standards version 3.9.1: + Compatibility level 8. + Build-depends: debhelper (>= 8). * Migration to format "3.0 (quilt)". * debian/rules: Trivial content using "dh". + debian/ipband.examples: New file. * debian/postrm: maintainer-script-without-set-e * Binary package: dir-or-file-in-var-run + debian/ipband.dirs: Removed. * [lintian]: Spelling error. + debian/patches/02_manpage_spelling_errors.diff: New file. * Compiler warnings: + debian/patches/03_compiler_warnings.diff: New file. * Strengthen string checking to prevent a crash: + debian/patches/04_check_mailer_strings.diff: New file. * debian/watch: Let URL end in a dash. * debian/copyright: Restore a verbatim quotation. -- Mats Erik Andersson Tue, 22 Mar 2011 17:18:00 +0100 ipband (0.8.1-2) unstable; urgency=low * [f5fb74a] Orphaning package * [c854e6c] Bump to Standards-Version 3.8.3 and added ${misc:Depends} in depends * [dfd04e5] Added a README.source * [bb4c614] Create /var/run/ipband in init script -- Giuseppe Iuculano Sat, 23 Jan 2010 11:26:36 +0100 ipband (0.8.1-1) unstable; urgency=low * New upstream release * Drop 02_minor_fix_on_main.c.dpatch, 03_manpage.dpatch, 04_ipband.h.dpatch, 05_sendmail_in_init.c.dpatch, 06_fix_counter_overflow.dpatch, now they are in Upstream (Thanks Andrew Nevynniy) -- Giuseppe Iuculano Tue, 17 Jun 2008 19:56:12 +0200 ipband (0.8-1) unstable; urgency=low * New upstream release * New maintainer (Closes: #472736) * Decrease debhelper level to 5 * Switch to dpatch * Updated to standards version 3.8.0 * Fix debian/ipband.conf-simple subnet definition * Updated debian/ipband.conf-verbose * Changed integer type to hold cumulative byte count from long to double to avoid counter overflow in reports. Thanks to Andrew Nevynniy (upstream) (Closes: #363407) -- Giuseppe Iuculano Sat, 14 Jun 2008 15:51:46 +0200 ipband (0.7.2-5) unstable; urgency=low * QA upload. * Don't fail to build if strtok_r is defined as a macro (Closes: #475977) * Replace exim with exim4 in dependencies (Closes: #420272, #255351) * Increase debhelper level to 6 * Add proper copyright statement to debian/copyright -- Frank Lichtenheld Tue, 15 Apr 2008 01:37:36 +0200 ipband (0.7.2-4) unstable; urgency=low * QA upload. * Set maintainer to Debian QA Group * Added LSB formatted dependency info in init.d script (closes: #469609) * Replaced DH_COMPAT by debian/compat file * Don't ignore make clean errors * Removed old FSF address from copyright file, and linked to GPL-2 file * Added Homepage control field * Updated standards version -- Peter Eisentraut Tue, 01 Apr 2008 23:49:39 +0200 ipband (0.7.2-3) unstable; urgency=medium * Change ipband's manpage section from 1 (Executable programs or shell commands) to 8 (System administration commands), and update all references to the manpage. * Fix bad grammar in /etc/default/ipband * Change urgency to "medium"; the bashism fixed in the last upload (which closed #231102) was a fairly serious problem. * Change Maintainer: email address from my private address to dbharris@debian.org -- David B. Harris Fri, 27 Feb 2004 01:15:50 -0500 ipband (0.7.2-2) unstable; urgency=low * Maintainer upload (Closes: #156212) * Update maintainer email address * debian/ipband.init: Fix bashism (Closes: #231102) * Update to Standards-Version 3.6.1.0 (new $DEB_BUILD_OPTIONS stuff) + Support $DEB_BUILD_OPTIONS=noopt and ensure -g is always used. + Ensure that initscript always starts the deamon on "restart" (previously, it did '$0 stop' and '$0 start' on "restart"; now it does '$0 stop || true' and '$0 start') -- David B Harris Wed, 04 Feb 2004 15:26:54 -0500 ipband (0.7.2-1.1) unstable; urgency=low * Non maintainer upload * Rebuilt with new libpcap to remove dependency on libpcap0, which I got removed from unstable by accident. Sorry about this... -- Torsten Landschoff Sat, 10 Aug 2002 11:37:01 +0200 ipband (0.7.2-1) unstable; urgency=low * Initial packaging. -- David B Harris Wed, 19 Jun 2002 17:50:13 -0400 debian/control0000644000000000000000000000144611542135166010602 0ustar Source: ipband Section: net Priority: optional Maintainer: Mats Erik Andersson Build-Depends: debhelper (>= 8), libpcap-dev Standards-Version: 3.9.1 Homepage: http://ipband.sourceforge.net/ Package: ipband Architecture: any Depends: ${shlibs:Depends}, exim4 | mail-transport-agent, ${misc:Depends} Description: daemon for subnet bandwidth monitoring with reporting via email This is a daemon which can monitor as many different subnets (or individual hosts, by specifying a "subnet" of /32) as you'd like. The reporting facility will only be triggered when a defined bandwidth level had been exceeded for a defined time. . Information reported includes the connections which are taking up the most bandwidth (ip address and port pairs). Reporting is done via email. debian/watch0000644000000000000000000000013211460033655010216 0ustar # watch control file for ipband version=3 http://ipband.sourceforge.net/ ipband-(.*)\.tgz debian/ipband.examples0000644000000000000000000000006511460047320012161 0ustar debian/ipband.conf-simple debian/ipband.conf-verbose debian/ipband.conf-verbose0000644000000000000000000000427311460032473012743 0ustar ####################################******************** # # ipband sample configuration file v.0.8 # # Uncomment and modify options as needed # ######################################################## # Debug level. #debug 0 # Interface to listen on. #interface eth0 # Use promiscuous mode on the network interface? Default is yes. #promisc yes # # Running in background? Default is no. #fork no # Pcap filter (see man tcpdump). #filter net 10.10.0.0/16 # Report file. #outfile ipband.txt # HTML report file #htmlfile /var/www/html/ipbandwidth/index.html # HTML title #htmltitle My IP bandwidth # Default bandwidth in kBytes/sec. #bandwidth 7 # Averaging period in seconds. #average 60 # Reporting period. #report 300 # Limit report to a number of top per-host connections (by byte count). # Zero for all conections. #top 15 # Include accumulated threshold exceeded time in the report? # This option works only with preloaded subnets ("subnet" directive). #accumulate no # E-mail address we want to mail report to. Default is not to mail. #mailto root@localhost # Packet length adjustment in bytes. Can be a positive or a negative integer # with negative value not exceeding leyer 2 frame size for the interface. # Default is 0 (no adjustment). #lenadj -8 # ASCII file to use as e-mail report footer. #mailfoot /etc/ipband.foot # MTA string. Default is "/usr/sbin/sendmail -t -oi". Change it to # whatever runs MTA of your choice. Note that the stringis tokenized and # passed to exec(), so that shell's metacharacters are not interpreted. #mtastring "/usr/sbin/sendmail -t -oi" # Default number of subnet mask bits. #maskbits 24 # Range of ip address that are considered local for data collection and # reporting. May be used instead of multiple "subnet" directives. # See man page for format description. #localrange 10.10.82.0/24:10.10.61.0/24 # Limit data collection and reporting to the following subnets with # default subnet mask. # Format: subnet _ip_ bandwidth _number_. #subnet 10.10.82.0 bandwidth 7 #subnet 10.10.61.0 bandwidth 7 #subnet 10.10.14.0 bandwidth 7 #subnet 10.10.20.0 bandwidth 16 #subnet 10.10.85.0 bandwidth 16 debian/patches/0000755000000000000000000000000011542134631010615 5ustar debian/patches/series0000644000000000000000000000015611542134631012034 0ustar 01_fix_makefile.dpatch 02_manpage_spelling_errors.diff 03_compiler_warnings.diff 04_check_mailer_strings.diff debian/patches/03_compiler_warnings.diff0000644000000000000000000000724411460114661015502 0ustar Description: Various compiler warnings. Castings are used to account for bad type choices. Author: Mats Erik Andersson Forwarded: yes Last-Update: 2010-10-21 diff -Naup ipband-0.8.1.debian/init.c ipband-0.8.1/init.c --- ipband-0.8.1.debian/init.c +++ ipband-0.8.1/init.c @@ -402,7 +402,7 @@ void preload_subnets(char *str, hlist_t /* Apply mask */ netip &= mask_m; - sprintf(key,"%08x",netip); + sprintf((char *) key,"%08x",netip); /* Set bandwidth threshold for this net */ idata.band = bwidth; diff -Naup ipband-0.8.1.debian/packets.c ipband-0.8.1/packets.c --- ipband-0.8.1.debian/packets.c +++ ipband-0.8.1/packets.c @@ -58,8 +58,8 @@ void storepkt (struct pcap_pkthdr *pkthd /* Apply mask and get our key - network number */ ip_src &= mask_m; ip_dst &= mask_m; - sprintf(key_src,"%08x",ip_src); - sprintf(key_dst,"%08x",ip_dst); + sprintf((char *) key_src,"%08x",ip_src); + sprintf((char *) key_dst,"%08x",ip_dst); /* Store length of this packet */ idata.nbyte = (double) length; @@ -299,7 +299,7 @@ void proc_aggr (hlist_t **ha, hlist_t ** } if (do_html) { - html_report(" %s ", hex2dot(t->key)); + html_report(" %s ", hex2dot((char *) t->key)); html_report("%.2f kBps\n",kBps); } @@ -309,7 +309,7 @@ void proc_aggr (hlist_t **ha, hlist_t ** fprintf (outfile_m, "*"); else fprintf (outfile_m, " "); - fprintf (outfile_m, "%-15s", hex2dot(t->key)); + fprintf (outfile_m, "%-15s", hex2dot((char *) t->key)); fprintf (outfile_m, " %7.2f kB ",kbytes); fprintf (outfile_m, " %7.2f/%6.2f kBps",kBps,thresh); fprintf (outfile_m, "\n"); @@ -371,7 +371,7 @@ void detail_cleanup (hlist_t **ha_d, U_C ntable = 1 << nhashbit; /* Get subnet number in int */ - sscanf(key,"%08x",&ip_key); + sscanf((char *) key,"%08x",&ip_key); /* Walk table */ for (hash = 0; hash < ntable; hash++) { diff -Naup ipband-0.8.1.debian/reports.c ipband-0.8.1/reports.c --- ipband-0.8.1.debian/reports.c +++ ipband-0.8.1/reports.c @@ -52,17 +52,17 @@ void subnet_report (hlist_t **ha_d, U_CH qsort(conn,nconn,sizeof(hlist_t *),compare_bytes); /* Get network name if available */ - sscanf(key,"%08x",&ikey); + sscanf((char *) key,"%08x",&ikey); net_s = getnetbyaddr(ikey,AF_INET); /* Print e-mail subject to include subnet info */ - if(net_s) va_report("Subject: Bandwidth report for %s <%s>\n\n",hex2dot(key),net_s->n_name); - else va_report("Subject: Bandwidth report for %s\n\n",hex2dot(key)); + if(net_s) va_report("Subject: Bandwidth report for %s <%s>\n\n",hex2dot((char *) key),net_s->n_name); + else va_report("Subject: Bandwidth report for %s\n\n",hex2dot((char *) key)); /* Print header */ va_report("\nDate: %s", ctime(&now)); if(top_m) va_report("Showing top %d connections\n",top_m); - va_report("Network: %s", hex2dot(key)); + va_report("Network: %s", hex2dot((char *) key)); if(net_s) va_report(" <%s>",net_s->n_name); va_report("\n"); va_report("Bandwidth threshold: %.2f kBps, exceeded for: %.2f min\n",thresh,(float) exc_time/60.0); @@ -104,7 +104,7 @@ void subnet_report (hlist_t **ha_d, U_CH /* Skiping subnets other than our */ ip_src = data->subnet_src; ip_dst = data->subnet_dst; - sscanf(key,"%08x",&ip_key); + sscanf((char *) key,"%08x",&ip_key); if ( !(ip_src == ip_key || ip_dst == ip_key) ) continue; /* Inreasing loop counter only after other subnets are @@ -171,7 +171,7 @@ char *get_service(int port, int prot) { ll_srvc_t *p; char *srvcs; - char *prots; + char *prots = NULL; struct servent *srvc_s; struct protoent *prot_s; debian/patches/02_manpage_spelling_errors.diff0000644000000000000000000000143611542121710016647 0ustar Description: Trivial spelling mistake. Author: Mats Erik Andersson Forwarded: yes Last-Update: 2010-10-21 --- ipband-0.8.1.debian/ipband.8 +++ ipband-0.8.1/ipband.8 @@ -15,7 +15,7 @@ It also can be used to monitor internet connection when specifying the range of local ip addresses (to avoid firing reports about non\-local networks). -Bandwidth is defined as total size in kBytes of the layer 2 frames with IP packets passing the specified interface during the avaraging period devided by the number of seconds in that period. +Bandwidth is defined as total size in kBytes of the layer 2 frames with IP packets passing the specified interface during the averaging period divided by the number of seconds in that period. .SH "COMMAND LINE OPTIONS" .TP .B interface debian/patches/04_check_mailer_strings.diff0000644000000000000000000000670111542145512016135 0ustar Description: Detection of empty strings for mailer. The source code tries to detect an empty string in a defective manner. This can be used to crash the program at first attempt to send a mail notification. . The configuration parameters are checked in order to disable the mainling service in case of misused strings. program abortion. . The sample configuration is updated to display the correct MTA-string, the value already hardcoded into the program. Author: Mats Erik Andersson Forwarded: yes Last-Update: 2011-03-22 diff -Naur ipband-0.8.1.debian/init.c ipband-0.8.1/init.c --- ipband-0.8.1.debian/init.c 2011-03-22 15:00:21.000000000 +0100 +++ ipband-0.8.1/init.c 2011-03-22 17:15:05.000000000 +0100 @@ -31,7 +31,7 @@ printf(" -b kBps - Default bandwidth threshold in kBytes.\n"); printf(" per sec. Default is 7 kBps i.e 56 kbps.\n"); printf(" -c filename - Read configuration file. Default is "); - printf( "/etc/ipaband.conf.\n"); + printf( "/etc/ipband.conf.\n"); printf(" -C - Ignore configuration file\n"); printf(" -d level - Debug level: 0 - no debuging; 1 - summary;\n"); printf(" 2 - subnet stats; 3 - all packets captured.\n"); @@ -585,4 +585,13 @@ if( (top_m < 0) ) err_quit("ERROR: negative per-host connection report limit\n"); + if( mailto_m && mtastring_m && + (strlen(mailto_m) == 0 || strlen(mtastring_m) == 0) ) { + /* Remove these obviously faked values, + * thus disabling any reports by the mailer. */ + FREE(mailto_m); + FREE(mtastring_m); + err_msg("ERROR: Misconfigured `mtastring_m` was left empty."); + err_msg(" Program is continuing wothout mailing any reports."); + } } diff -Naur ipband-0.8.1.debian/ipband.sample.conf ipband-0.8.1/ipband.sample.conf --- ipband-0.8.1.debian/ipband.sample.conf 2008-06-17 19:23:19.000000000 +0200 +++ ipband-0.8.1/ipband.sample.conf 2011-03-22 15:35:58.000000000 +0100 @@ -58,10 +58,11 @@ # ASCII file to use as e-mail report footer. #mailfoot /etc/ipband.foot -# MTA string. Default is "/usr/sbin/sendmail -t -ba". Change it to -# whatever runs MTA of your choice. Note that the stringis tokenized and -# passed to exec(), so that shell's metacharacters are not interpreted. -#mtastring "/usr/sbin/sendmail -t -ba" +# MTA string. Default is "/usr/sbin/sendmail -t -oi". Change it +# to whatever runs the MTA of your choice. Note that the string +# is tokenized and passed to exec(), so that shell's metacharacters +# are not interpreted. +#mtastring "/usr/sbin/sendmail -t -oi" # Default number of subnet mask bits. #maskbits 24 diff -Naur ipband-0.8.1.debian/popen.c ipband-0.8.1/popen.c --- ipband-0.8.1.debian/popen.c 2008-06-17 19:23:19.000000000 +0200 +++ ipband-0.8.1/popen.c 2011-03-22 15:17:12.000000000 +0100 @@ -35,7 +35,7 @@ pid_t pid; FILE *fp; - if(cmd == NULL || cmd == "") + if(cmd == NULL || *cmd == '\0') return(NULL); if ((type[0] != 'r' && type[0] != 'w') || type[1] != 0) { diff -Naur ipband-0.8.1.debian/reports.c ipband-0.8.1/reports.c --- ipband-0.8.1.debian/reports.c 2011-03-22 15:00:21.000000000 +0100 +++ ipband-0.8.1/reports.c 2011-03-22 15:21:52.000000000 +0100 @@ -302,7 +302,7 @@ } /* Sendmail headers */ fprintf(sendmail,"To: %s\n",mailto_m); - fprintf(sendmail,"From: IP bandwdth watchdog <>\n"); + fprintf(sendmail,"From: IP bandwidth watchdog <>\n"); } } debian/patches/01_fix_makefile.dpatch0000644000000000000000000000220011460032473014717 0ustar #! /bin/sh /usr/share/dpatch/dpatch-run ## 01_fix_makefile.dpatch by Giuseppe Iuculano ## ## All lines beginning with `## DP:' are a description of the patch. ## DP: Do not install default config and init files, no strip. @DPATCH@ diff -urNad ipband-0.8.1~/Makefile ipband-0.8.1/Makefile --- ipband-0.8.1~/Makefile 2008-06-17 19:23:19.000000000 +0200 +++ ipband-0.8.1/Makefile 2008-06-17 19:50:16.000000000 +0200 @@ -50,18 +50,18 @@ $(BIN): $(OBJ_C) $(CC) -o $(BIN) $(OBJ_C) $(LIBS) $(CFLAGS) - strip $(BIN) +# strip $(BIN) install-strip: install install: all mkdir -p $(DESTDIR)$(BINDIR) $(DESTDIR)$(MAN8DIR) - mkdir -p $(DESTDIR)$(SYSCONFDIR) - mkdir -p $(DESTDIR)$(RCDIR) +# mkdir -p $(DESTDIR)$(SYSCONFDIR) +# mkdir -p $(DESTDIR)$(RCDIR) install -D ipband $(DESTDIR)$(BINDIR)/ipband install -D ipband.8 $(DESTDIR)$(MAN8DIR)/ipband.8 - install -D ipband.sample.conf $(DESTDIR)$(SYSCONFDIR)/ipband.sample.conf - install -D ipband.rc $(DESTDIR)$(RCDIR)/ipband +# install -D ipband.sample.conf $(DESTDIR)$(SYSCONFDIR)/ipband.sample.conf +# install -D ipband.rc $(DESTDIR)$(RCDIR)/ipband clean: debian/ipband.docs0000644000000000000000000000000711460032473011272 0ustar README debian/compat0000644000000000000000000000000211542135145010365 0ustar 8 debian/copyright0000644000000000000000000000164311460051475011130 0ustar This package was debianized by David B Harris on Wed, 19 Jun 2002 17:50:13 -0400. It was downloaded from ftp://ftp.sourceforge.net/pub/sourceforge/ipband/ Upstream Author: Andrew Nevynniy Copyright: Copyright © 2001, 2002 by Andrew Nevynniy This program is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation; either version 2 of the License, or (at your option any later version. This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details. On Debian systems, the complete text of the GNU General Public License can be found in '/usr/share/common-licenses/GPL-2'. debian/ipband.init0000644000000000000000000000362711542144207011320 0ustar #! /bin/sh ### BEGIN INIT INFO # Provides: ipband # Required-Start: $remote_fs $syslog # Required-Stop: $remote_fs $syslog # Default-Start: 2 3 4 5 # Default-Stop: 0 1 6 # Short-Description: ipband daemon # Description: This is a daemon which can monitor as many different subnets (or individual # hosts, by specifying a "subnet" of /32) as you'd like. ### END INIT INFO PATH=/sbin:/bin:/usr/sbin:/usr/bin DAEMON=/usr/sbin/ipband NAME=ipband DESC=ipband PIDDIR=/var/run/ipband set -e test -x $DAEMON || exit 0 if [ -r /etc/default/ipband ]; then . /etc/default/ipband else printf "/etc/default/ipband is not readable, not starting ipband.\n" exit 0 fi case "$1" in start) printf "Starting $DESC:" mkdir -p $PIDDIR for config_file in $CONFIG_FILES; do if [ ! -r "$config_file" ]; then [ "$CONFIG" = "true" ] || CONFIG="false" else CONFIG="true" IDENTIFIER="$(printf "$config_file" | tr / _)" start-stop-daemon --start --background --make-pidfile \ --quiet --pidfile "$PIDDIR/$IDENTIFIER.pid" \ --exec $DAEMON -- $FLAGS -c "$config_file" printf " $config_file" fi done [ "$CONFIG" = "false" ] && printf " no configuration files found" printf ".\n" ;; stop) printf "Stopping $DESC: " for pid_file in $PIDDIR/*.pid; do if [ ! -f "$pid_file" ]; then continue; fi start-stop-daemon --oknodo --stop --quiet --pidfile "$pid_file" \ --exec $DAEMON -- $FLAGS && \ rm -f $pid_file done printf "$NAME.\n" ;; restart|force-reload) $0 stop || true $0 start ;; status) count=$(ls -1 $PIDDIR/*.pid 2>/dev/null | wc -l) if [ $count -gt 0 ]; then echo -n "ipband is running $count configuration" [ $count -eq 1 ] || echo -n "s" echo "." else echo "Ipband is not running." fi ;; *) N=/etc/init.d/$NAME echo "Usage: $N {start|stop|restart|force-reload}" >&2 exit 1 ;; esac exit 0 debian/ipband.default0000644000000000000000000000073711460032473012000 0ustar # Flags which will be passed to ipband(8) during startup via # /etc/init.d/ipband. See 'man ipband' for information on what flags are # available. Keep in mind forking into the background is handled by # /etc/init.d/ipband. FLAGS="-A" # Specify your configuration files here. You may specify one, two, or more. If # you specify more than one, seperate them by spaces. One instance of ipband # will be launched for each configuration file listed. CONFIG_FILES="/etc/ipband.conf"