There are 2 ways to install IPwatchD. Passive mode or active mode. Passive mode just logs packets, active mode uses Gratuitous Arp and notifies you of a problem.
The notification works nicely in 9.10 (as shown).
Here are the steps I followed:
http://www.linuxconfig.org/IPwatchD_an_IP_conflict_detection_tool_for_Linux
I will add some additional info.
The article doesn't say what to do to get the script to run at setup. It's simple. In 9.10 there is a file you can update to run scripts as root after user login. They are nice enough to provide a sample.
/etc/gdm/PostLogin/Default.sample
# Note: this is a sample and will not be run as is. Change the name of this
# file to # script will be run before any setup is run on behalf of the user and is
# useful if you for example need to do some setup to create a home directory
# for the user or something like that. $HOME, $LOGIN and such will all be
# set appropriately and this script is run as root.
sudo cp /etc/gdm/PostLogin/Default.sample /etc/gdm/PostLogin/Default echo /usr/local/sbin/ipwatchd -c /usr/local/etc/ipwatchd.conf | sudo tee -a /etc/gdm/PostLogin/Default
logout and back in or reboot to check the work.
Show running status:
ps aux | grep ipwatchdYou'll see something like:
mikem@mikem-9751L:~$ ps aux | grep ipwatchd root 28581 0.0 0.1 12388 4744 ? Ss 21:58 0:00 /usr/local/sbin/ipwatchd -c /usr/local/etc/ipwatchd.conf mikem 30234 0.0 0.0 7340 892 pts/0 S+ 22:15 0:00 grep ipwatchd
No comments:
Post a Comment