Project

General

Profile

Bug #8538

arpwatch missing ethercodes.dat

Added by ROB VANHOOREN almost 2 years ago. Updated 25 days ago.

Status:
Closed
Priority:
Normal
Assignee:
-
Category:
arpwatch
Target version:
-
Start date:
05/25/2018
Due date:
% Done:

0%

Estimated time:
Affected Version:
2.4.4
Affected Architecture:

Description

attached script will pull down the current mac address data from IEEE and parse it for arpwatch (and nmap, fwiw)

if this isn't primarily netgate's issue, please pass along to the pkg maintainers w/thx.

enjoy,
R.

ref. arpwatch pkg v0.1.0

Warning: file_get_contents(/usr/local/arpwatch/ethercodes.dat): failed to open stream: No such file or directory in /usr/local/pkg/arpwatch.inc on line 149 Warning: file_get_contents(/usr/local/arpwatch/ethercodes.dat): failed to open stream: No such file or directory in /usr/local/pkg/arpwatch.inc on line 149 Warning: file_get_contents(/usr/local/arpwatch/ethercodes.dat): failed to open stream: No such file or directory in /usr/local/pkg/arpwatch.inc on line 149 Warning: file_get_contents(/usr/local/arpwatch/ethercodes.dat): failed to open stream: No such file or directory in /usr/local/pkg/arpwatch.inc on line 149 Warning: file_get_contents(/usr/local/arpwatch/ethercodes.dat): failed to open stream: No such file or directory in /usr/local/pkg/arpwatch.inc on line 149 Warning: file_get_contents(/usr/local/arpwatch/ethercodes.dat): failed to open stream: No such file or directory in /usr/local/pkg/arpwatch.inc on line 149 Warning: file_get_contents(/usr/local/arpwatch/ethercodes.dat): failed to open stream: No such file or directory in /usr/local/pkg/arpwatch.inc on line 149 Warning: file_get_contents(/usr/local/arpwatch/ethercodes.dat): failed to open stream: No such file or directory in /usr/local/pkg/arpwatch.inc on line 149 Warning: file_get_contents(/usr/local/arpwatch/ethercodes.dat): failed to open stream: No such file or directory in /usr/local/pkg/arpwatch.inc on line 149 Warning: file_get_contents(/usr/local/arpwatch/ethercodes.dat): failed to open stream: No such file or directory in /usr/local/pkg/arpwatch.inc on line 149 Warning: file_get_contents(/usr/local/arpwatch/ethercodes.dat): failed to open stream: No such file or directory in /usr/local/pkg/arpwatch.inc on line 149 Warning: file_get_contents(/usr/local/arpwatch/ethercodes.dat): failed to open stream: No such file or directory in /usr/local/pkg/arpwatch.inc on line 149

update_ethercodes.sh (944 Bytes) update_ethercodes.sh script to pull & parse IEEE data ROB VANHOOREN, 05/25/2018 09:33 AM
update_ethercodes_v2.sh (1.02 KB) update_ethercodes_v2.sh THIS ONE INSTEAD - revised to accommodate new nmap field layout ROB VANHOOREN, 05/25/2018 09:39 AM

History

#2 Updated by ROB VANHOOREN almost 2 years ago

actually, this is syntax error -- single-quote vs double-quote issue on line 149 of the .inc

changing it to ARPWATCH_LOCAL_DIR."/ethercodes.dat" seems to fix things.

that said, upon reviewing the arpwatch code, it may be of benefit to pull the current OUI data from IEEE directly, rather than continuing to use the (outdated!) nth-hand source that is currently used.
fwiw, you'd want to munge the script appropriately for pfs/fBSD to use (e.g. sh/bash; curl/wget).

thanks,

R.

#3 Updated by Jim Pingle 6 months ago

  • Project changed from pfSense to pfSense Packages
  • Subject changed from missing ethercodes.dat to arpwatch missing ethercodes.dat
  • Category changed from Package System to arpwatch

#4 Updated by Viktor Gurov 25 days ago

  • Status changed from New to Closed

already in 0.2.0:

support for the new zero pad flags (-Z/-C). Fix the "update vendors" 
option to actually ethercodes.dat. Some other minor cleanups suggested
by Jim P and Renato Botelho.

https://github.com/pfsense/FreeBSD-ports/commit/99fd0d688df5a952d29f72eb90c152cce0acf07b#diff-45fff2efd3957d764a4fea3ff18e2135

Also available in: Atom PDF