ArpON ver. 2.7: the DARPI and -d (--darpi) flag bug.

Bug #1540807 reported by daniel CURTIS
10
This bug affects 2 people
Affects Status Importance Assigned to Milestone
arpon (Ubuntu)
Confirmed
Undecided
Unassigned

Bug Description

Hello. Because on Ubuntu 12.04 LTS an ArpON package is pretty outdated (ver. 2.0-2.1) I've decided to use a version from a Vivid release - 2.7.

It seems that ArpON ver. 2.7 has a bug related to a DARPI anti Arp Poisoning techniques. Because I am using a DHCP method to obtain an IP address, I had to use a DARPI method (Dynamin Arp Inspect.) instead of SARPI (Static Arp Inspect). After installation via 'apt-get' utility, configuring "arpon" file from '/etc/default/' directory and uncomment line responsible for a DARPI method, ArpON failed to start with a following error:

$ sudo /etc/init.d/arpon start
* Starting anti ARP poisoning daemon arpon
20:38:55 PID = </var/run/arpon.pid>

/usr/bin/arpon: invalid option -- 'd' [fail]

By default a line responsible for a DARPI technique (in the '/etc/default/arpon' file) looks this way:

DAEMON_OPTS="-q -f /var/log/arpon/arpon.log -g -d"

According to the Ubuntu manpage[1] '-g' flag stands for "Works in logging mode", since '-d' flag means "Manages Arp Cache dynamically". Everything should work okay, but it does not. I've tried many possibilities, configurations etc., but nothing worked.

And it seems, that a new ArpON 2.7 version requires a '-D' flag instead '-d'. At least in Ubuntu 12.04 LTS and it seems that in others flavors (Xubuntu etc) also. Please see:

DAEMON_OPTS="-q -f /var/log/arpon/arpon.log -g -D"

After this small change everything started to work okay:

$ sudo /etc/init.d/arpon start
* Starting anti ARP poisoning daemon arpon
20:43:32 PID = </var/run/arpon.pid> [OK]

One more test, to be one hundred percent sure: status of anti ARP poisoning daemon arpon is [OK] after running 'sudo /etc/init.d/arpon status' command, . Here are some technical details:

* Ubuntu 3.2.0-98.138-generic-pae 3.2.75 ('cat /proc/version_signature' command result)
* lsb_release -rd
      Description: Ubuntu 12.04.5 LTS
      Release: 12.04
* arpon: 2.7.2-1

By the way: ArpON sometimes crashing with "SIGSEGV in pthread_kill()" (right after user login), but I have to create a new bug report.

Best regards.
_____________

[1] http://manpages.ubuntu.com/manpages/trusty/man8/arpon.8.html

Tags: arpon darpi
daniel CURTIS (anoda)
affects: linux (Ubuntu) → arpon (Ubuntu)
description: updated
daniel CURTIS (anoda)
description: updated
description: updated
description: updated
daniel CURTIS (anoda)
description: updated
Revision history for this message
daniel CURTIS (anoda) wrote :

Hello. Bug report is not needed. According to a manpage for an ArpON package ver. 2.7.2-1 included in e.g. Vivid release[1], there is mentioned 'D' flag. I apologize for the confusion. I should check mentioned manpage first (see [1]). Generally look for "DYNAMIC ARP INSPECTION" sub-thread. There is a "-D (--darpi)" flag mentioned.

I created this bug report, because one user tell me that I should do this. I'm sorry once again. So, if it is possible please remove this bug report. It is not needed anymore.

Best regards.
_____________
[1] http://manpages.ubuntu.com/manpages/vivid/man8/arpon.8.html

Revision history for this message
daniel CURTIS (anoda) wrote :

NOTE: maybe a simple solution is to change a line responsible for a DARPI technique from '/etc/default/arpon'? Just, make this small change, so by default after ArpON installation user will not see: "/usr/bin/arpon: invalid option -- 'd' [fail]" message. Solution(?):

--- DAEMON_OPTS="-q -f /var/log/arpon/arpon.log -g -d"
+++ DAEMON_OPTS="-q -f /var/log/arpon/arpon.log -g -D"

I'm sorry for a double comment. Best regards.

Revision history for this message
Launchpad Janitor (janitor) wrote :

Status changed to 'Confirmed' because the bug affects multiple users.

Changed in arpon (Ubuntu):
status: New → Confirmed
Revision history for this message
Mirzet Kadic (caracal-enl) wrote :

The default config of /etc/default/arpon for DARPI is

DAEMON_OPTS="-d -q -f /var/log/arpon/arpon.log -g"

but it should be:

DAEMON_OPTS="-D -q -f /var/log/arpon/arpon.log -g"

-D instead -d

To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.