debian/0000755000000000000000000000000011613076107007170 5ustar debian/rules0000755000000000000000000000233711613073723010256 0ustar #!/usr/bin/make -f # -*- makefile -*- # Uncomment this to turn on verbose mode. #export DH_VERBOSE=1 build: build-stamp build-stamp: dh_testdir $(MAKE) -C src touch $@ # Added just to remove lintian warning debian-rules-missing-recommended-target build-arch build-indep: build clean: dh_testdir dh_testroot rm -f build-stamp configure-stamp $(MAKE) -C src clean dh_clean install: build dh_testdir dh_testroot dh_prep dh_installdirs $(MAKE) -C src DESTDIR=$(CURDIR)/debian/ipwatchd install # Remove upstream manpages causing lintian error manpage-not-compressed-with-max-compression rm $(CURDIR)/debian/ipwatchd/usr/share/man/man1/ipwatchd-script.1.gz rm $(CURDIR)/debian/ipwatchd/usr/share/man/man5/ipwatchd.conf.5.gz rm $(CURDIR)/debian/ipwatchd/usr/share/man/man8/ipwatchd.8.gz binary-indep: install binary-arch: install dh_testdir dh_testroot dh_installchangelogs dh_installdocs dh_installman debian/ipwatchd.8 debian/ipwatchd.conf.5 debian/ipwatchd-script.1 dh_installinit --onlyscripts dh_link dh_strip dh_compress dh_fixperms dh_installdeb dh_shlibdeps dh_gencontrol dh_md5sums dh_builddeb binary: binary-indep binary-arch .PHONY: build clean binary-indep binary-arch binary install configure debian/source/0000755000000000000000000000000011613076141010466 5ustar debian/source/format0000644000000000000000000000001411613076141011674 0ustar 3.0 (quilt) debian/control0000644000000000000000000000147511613066703010603 0ustar Source: ipwatchd Section: net Priority: optional Maintainer: Jaroslav Imrich Build-Depends: debhelper (>= 7), libpcap-dev, libnet1-dev Standards-Version: 3.9.2 Homepage: http://ipwatchd.sf.net Package: ipwatchd Architecture: linux-any Depends: ${shlibs:Depends}, ${misc:Depends} Suggests: ipwatchd-gnotify Description: IP conflict detection tool IPwatchD is a simple daemon that analyses all incoming ARP packets in order to detect IP conflicts on Linux. It can be configured to listen on one or more interfaces (alias interfaces are also supported) in active or passive mode. In active mode IPwatchD protects your host before IP takeover by answering Gratuitous ARP requests received from conflicting system. In passive mode it just records information about conflict through standard syslog interface. debian/compat0000644000000000000000000000000211613061041010355 0ustar 7 debian/changelog0000644000000000000000000000106411613066713011045 0ustar ipwatchd (1.2.1-1) unstable; urgency=low * Updated to upstream release 1.2.1 * Changed architecture to linux-any -- Jaroslav Imrich Sun, 24 Jul 2011 20:50:05 +0200 ipwatchd (1.2-2) unstable; urgency=low * Added manpage ipwatchd-script(1) * Added manpage ipwatchd.conf(5) * Updated upstream manpage ipwatchd(8) -- Jaroslav Imrich Sun, 28 Feb 2010 09:34:04 +0100 ipwatchd (1.2-1) unstable; urgency=low * Initial release (Closes: #569779) -- Jaroslav Imrich Sat, 20 Feb 2010 13:46:11 +0100 debian/ipwatchd-script.10000644000000000000000000000161511613027207012357 0ustar .TH IPWATCHD-SCRIPT 1 .SH NAME ipwatchd-script \- User-defined script called by IPwatchD daemon when IP conflict occurs .SH SYNOPSIS .B ipwatchd-script .I device .I IP_address .I MAC_address .SH DESCRIPTION This script is executed by IPwatchD daemon when IP conflict occurs. It uses IPwatchD-G-Notify (if available) to display warning message in Gnome sessions. System administrator can write own script to handle IP conflicts and instruct IPwatchD daemon to use it by modification of .B user_script directive in its configuration file. .PP .SH OPTIONS Following options are passed by IPwatchD daemon: .TP .B "device" Name of network device in conflict. .TP .B "IP_address" IP address in conflict. .TP .B "MAC_address" MAC address of conflicting system. .SH AUTHOR This manual page was written by Jaroslav Imrich .SH SEE ALSO .BR ipwatchd (8), .BR ipwatchd.conf (5), .BR ipwatchd-gnotify (1) debian/ipwatchd.conf.50000644000000000000000000000451211613027207012004 0ustar .TH IPWATCHD.CONF 5 .SH NAME ipwatchd.conf \- Configuration file of IPwatchD daemon .SH SYNOPSIS .B /etc/ipwatchd.conf .SH DESCRIPTION IPwatchD daemon reads configuration from file specified with -c on command line. The file contains keyword-argument pairs, one per line. Lines beginning with # sign and empty lines are ignored. .PP Possible keywords and their meanings are as follows: .TP .B iface_configuration Specifies configuration mode for network interfaces. In .B automatic configuration mode IPwatchD detects all network interfaces automatically and sets passive protection mode for them. In .B manual mode it is up to administrator to specify list of interfaces and protection modes. Accepted values are automatic or manual. Default is automatic. .TP .B iface Specifies network interface and its protection mode. Value is accepted only in manual configuration mode. In .B active protection mode IPwatchD protects your host before IP takeover by answering Gratuitous ARP requests received from conflicting system. In .B passive protection mode it just records information about IP conflict through standard syslog interface. Specified interface must exist and protection mode must be passive or active. .TP .B defend_interval Specifies minimum interval between defensive ARPs in seconds. Accepted value is number from 0 to 600. Default value is 0. .TP .B user_script Specifies absolute path to user-defined script called by IPwatchD when IP conflict occurs. When there is no script specified IPwatchD just generates syslog event for every IP conflict. Specified file must exist. There is no default value. .TP .B syslog_facility Specifies facility for logging. Accepted values are auth, authpriv, cron, daemon, kern, lpr, mail, news, syslog, user, uucp, local0, local1, local2, local3, local4, local5, local6 and local7. Default value is daemon. .SH EXAMPLES .B Automatic configuration mode: .RS .PP iface_configuration automatic .br defend_interval 10 .br user_script /usr/sbin/ipwatchd-script .br syslog_facility daemon .RE .PP .B Manual configuration mode: .RS .PP iface_configuration manual .br iface eth0 active .br iface eth0:0 passive .br defend_interval 10 .br user_script /usr/sbin/ipwatchd-script .br syslog_facility daemon .RE .SH AUTHOR This manual page was written by Jaroslav Imrich .SH SEE ALSO .BR ipwatchd (8), .BR ipwatchd-script (1) debian/watch0000644000000000000000000000007511613061041010212 0ustar version=3 http://sf.net/ipwatchd/ipwatchd-(\d+.*)\.tar\.gz debian/dirs0000644000000000000000000000011511613065370010051 0ustar etc/init.d usr/sbin usr/share/man/man1 usr/share/man/man5 usr/share/man/man8 debian/copyright0000644000000000000000000000234211613061041011113 0ustar This package was debianized by: Jaroslav Imrich on Sat, 20 Feb 2010 13:46:11 +0100 It was downloaded from: http://ipwatchd.sf.net Upstream Author: Jaroslav Imrich Copyright: Copyright (C) 2007-2010 Jaroslav Imrich License: This package is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License version 2 as published by the Free Software Foundation. This package 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. You should have received a copy of the GNU General Public License along with this package; if not, write to the Free Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA On Debian systems, the complete text of the GNU General Public License version 2 can be found in `/usr/share/common-licenses/GPL-2'. The Debian packaging is: Copyright (C) 2010 Jaroslav Imrich and is licensed under the GPL version 2, see `/usr/share/common-licenses/GPL-2'. debian/ipwatchd.80000644000000000000000000000410011613027207011054 0ustar .TH IPWATCHD 8 .SH NAME ipwatchd \- IP conflict detection tool for Linux .SH SYNOPSIS .B ipwatchd --config .I config_file .B [\-\-debug] .B [\-\-test] .br .B ipwatchd \-\-version .br .B ipwatchd \-\-help .SH DESCRIPTION IPwatchD is a simple daemon that analyses all incoming ARP packets in order to detect IP conflicts. .PP Default configuration file uses "automatic configuration mode" with "passive protection mode" and it should be the best option for most systems. .PP Configuration mode applies to the daemon instance and it specifies how the list of network interfaces that should be monitored will be obtained. In .B automatic configuration mode IPwatchD detects all network interfaces automatically and sets passive protection mode for them. In .B manual configuration mode it is up to the system administrator to specify list of interfaces and protection modes in configuration file. .PP Protection mode specifies the action that will be performed when IP conflict is detected. In .B active protection mode IPwatchD protects your host before IP takeover by answering gratuitous ARP requests received from conflicting system. In .B passive protection mode it just records information about IP conflict through standard syslog interface. .PP IPwatchD also supports execution of user defined scripts. See .BR ipwatchd.conf (5) and .BR ipwatchd-script (1) for more details. .SH OPTIONS The following options are supported: .TP .B "\-c \-\-config" Specifies path to configuration file. .TP .B "\-d \-\-debug" Enables debug mode. Debug information are recorded through syslog with "daemon" facility and "debug" priority. .TP .B "\-t \-\-test" Enables testing mode that is useful only for debugging. In this mode every received ARP packet is considered to be conflicting. .TP .B "\-v \-\-version" Prints program version to standard output. .TP .B "\-h \-\-help" Prints short help information to standard output. .SH CONFIGURATION See .BR ipwatchd.conf (5) for more details. .SH AUTHOR This manual page was written by Jaroslav Imrich .SH SEE ALSO .BR ipwatchd.conf (5), .BR ipwatchd-script (1)