Bug#931544: Arpwatch not working properly (bug) on Debian 10.0 (Buster)

2019-08-05 Thread Lukas Schwaighofer
Hi,

thanks for your report.

On Tue, 06 Aug 2019 01:58:43 +1100
Dev  wrote:

> Arpwatch not working properly (bug) on Debian 10.0 (Buster)
> (...)

There has been an intentional change on how arpwatch is started in
buster.  From the NEWS file (you should have seen the content of this
during the upgrade):

  Starting with version 2.1a15-3, arpwatch ships with systemd unit
  files.  The change requires manual steps after the upgrade.

  The `/etc/arpwatch.conf` file, which can be used to specify different
  configuration options for multiple interface, is replaced by
  individual configuration files for each interface.  If you have
  configured arpwatch using `/etc/arpwatch.conf` file, you need to
  convert this to the new format.  See `/etc/arpwatch/README` for
  details.

  After the upgrade, arpwatch will not be started by default. You need
  to specify the interface(s) to run on, see `/etc/default/arpwatch` for
  instructions.  If your database file in `/var/lib/arpwatch/` is called
  `arp.dat` you need to rename it to `IFACE.dat` (where IFACE is the
  name of the interface you configured arpwatch to run on) if you want
  to keep your current arp database.  Also, make sure to drop the `-i`
  option from ARGS if you were using that to specify the interface.

The instructions from /etc/default/arpwatch that have already been
quoted in this bug are:

# when using systemd you have to enable arpwatch explicitly for each
# interface  you want to run it on by running:
# systemctl enable arpwatch@IFACE
# systemctl start arpwatch@IFACE

> 1) File " /VAR/LIB/ARPWATCH/ARP.DAT " is not created
> (...)
> 2) /etc/init.d/arpwatch status display "service is running" but it's
> not running
> (...)

Reverting the changes you made to the systemd unit file and following
the instructions above to enable arpwatch on the interface(s) you want
should solve both your issues.

Regards
Lukas



Bug#931544: Arpwatch not working properly (bug) on Debian 10.0 (Buster)

2019-08-05 Thread Dev
 

Hi all

Arpwatch not working properly (bug) on Debian 10.0 (Buster)

For complete : https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=931544
[1]

I have tested arpwatch on 
- Debian 8.11 (Jessie) 2.1a15-1.3, wors fine
- Debian 9.9 (Strech) 2.1a15-2+b1, works fine
- Debian 10.0 (Buster) 2.1a15-7 Bug (fail to start)

On new debian (10.0 / buster) there is 2 bugs :

1) File " /VAR/LIB/ARPWATCH/ARP.DAT " is not created

[Fix it with]
touch /var/lib/arpwatch/arp.dat
chown arpwatch:arpwatch /var/lib/arpwatch/arp.dat

2) /etc/init.d/arpwatch status display "service is running" but it's not
running

[Fixed Partial]

In " /lib/systemd/system/arpwatch.service " (only in debian 10.x)

Replace:
 ExecStart=/bin/true
With:
 ExecStart=/usr/sbin/arpwatch

This works partially, because " /etc/init.d/arpwatch start " works ...
But igniore Configuration in " /etc/default/arpwatch " (Params ARGS /
RUNAS)

NB: " -u arpwatch -N -p " is default arguments

ps ax | grep arpwatch
1431 ? S 0:00 /usr/sbin/arpwatch 

Instead of: ExecStart=/usr/sbin/arpwatch
I have try : ExecStart=/usr/sbin/arpwatch -u arpwatch -N -p

After restart:
/etc/init.d/arpwatch restart
ps ax | grep arpwatch
1575 ? S 0:00 /usr/sbin/arpwatch -u arpwatch -N -p

This is a temporary solution while waiting for a real fix

Regards 

Links:
--
[1] https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=931544