ARPALERT(8)
β¨ NAME β¨
arpalert β ARP traffic monitoring, bestie. That's the whole thing. π
πΈ DESCRIPTION πΈ
okay so picture this: arpalert uses ARP protocol monitoring to stop unauthorized connections from popping up on the local network. And if it does catch an illegal connection? It can launch a program or a script, which you could totally use to send an alert message, for example. It's giving security guard but make it iconic. π
π COMMAND LINE π
-f config_fileβ specify the config file. π-i interfaceβ comma separated network interfaces to listen to.-p pid_fileβ use this pid file. This file contains a pid number of the arpalert session. If the file exists and it's locked, the daemon does not run. π-e exec_scriptβ script that gets launched when an alert is sent.-D log_levelβ the level logged. Levels run between0(emergency) and7(debug). If3is selected, all levels between0and3are logged.-l leases_fileβ this file contains a dump of the mac address in memory (check the config file for that one).-m module fileβ specify a module file to load.-dβ run as daemon. π΄-Fβ run in foreground.-vβ watch on screen all the options selected (the options specified in the config file and the default options). π-hβ the help command line.-wβ debug option: print a dump of packets captured.-Pβ set the interface in promiscuous mode (don't set this if only the arp analyse is used). π-Vβ print version and quit.
π CONFIGURATION FILE π
The config file holds 3 types of data: integer, string and boolean. And the boolean type? It can take the values 'oui', 'true', 'yes', '1' for the true values, or 'non', 'no', 'false', '0' for the false values. Choose your fighter. π
user = arpalertβ use privileges separation with this user.umask = 177β uses this umask for file creation.chroot dir = /home/thierry/arp_test/β use this directory for program jail.- If this option is commented out, the program does not use chroot.
- The program reads the config file and opens the syslog socket before the chroot.
- The
kill -HUPdoes not work with chroot. - If the syslog program is restarted, the socket changes and the arpalert syslog system can't be connected to the new socket: the logs with syslog are disabled. Prefer to use the log file. π
- The file paths are relative to the chroot dir (except the config file).
log file = /var/log/arpalert.logβ the program logs into this file.- If this option is commented out, the internal system log is not used.
- The internal system logs can be used at the same time as syslog.
log level = 6β the level logged. The levels are between0(emergency) and7(debug). If3is selected, all levels between0and3are logged.use syslog = trueβ if this option isfalse, the syslog system is disabled.maclist file = /etc/arpalert/maclist.allowβ white list. π€maclist alert file = /etc/arpalert/maclist.denyβ black list. π€maclist leases file = /var/lib/arpalert/arpalert.leasesβ dump file.dump inter = 5β minimum time to wait between two leases dump.auth request file = /etc/arpalert/authrq.confβ list of authorized request.lock file = /var/run/arpalert.pidβ pid file.dump packet = falseβ only for debugging: this dumps packets received on standard output. The syntax"dump paquet"is also available, but is deprecated. β οΈdaemon = falseβ if it's set totrue, run the program as daemon.interface = ""β comma separated network interfaces leisten to. If this value is not specified, the soft selects the first interface.catch only arp = TRUEβ configure the network to catch only arp request. The detection type"new_mac"is deactivated. This mode is used for CPU saving if Arpalert is running on a router.mod on detect = ""β module file loaded by arpalert. This module is launched on each valid alert. This system avoids a costly fork/exec.mod config = ""β this chain is transferred to the init function of the module loaded.action on detect = ""β script launched on each detection. Parameters are:- mac address of requestor,
- ip of requestor,
- supp. parm.,
- ethernet device listening on,
- type of alert,
- optional: ethernet vendor
type of alert:
0: IP change1: Mac address already detected but not in white list2: Mac address in black list3: New mac address4: Unauthorized arp request5: Abusive number of arp request detected6: Ethernet mac address different from arp mac address7: Flood detected8: New mac address without ip address
execution timeout = 10β script execution timeout (seconds).max alert = 20β maximun simultaneous lanched script.dump black list = falseβ dump the black listed mac address in leases file.dump white list = falseβ dump the white listed mac address in leases file.dump new address = trueβ dump the new mac address in leases file.mac timeout = 259200β after this time a mac address is removed from memory (seconds) (default1month).max entry = 1000000β after this limit the memory hash is cleaned (protect to arp flood).anti flood interval = 10β this sends only one mismatch alert in this time (in seconds).anti flood global = 50β if the number of arp request in seconds exceeds this value, all alerts are ignored for"anti flood interval"time.mac vendor file = ""β this file contains the association from mac address to vendor name. This file can be downloaded here:http://standards.ieee.org/regauth/oui/oui.txtlog mac vendor = falseβ log vendor name.alert mac vendor = falseβ give vendor name to script.mod mac vendor = falseβ give vendor name to module.log referenced address, alert on referenced address, mod on referenced address = falseβ log/launch script/call module if the address is referenced in hash but is not in white list.log deny address, alert on deny address, mod on deny address = trueβ log/launch script/call module if the mac address is in black list.log new address, alert on new address, mod on new address = trueβ log/launch script/call module if the address isn't referenced.log mac change, alert on mac change, mod on mac change = trueβ log/launch script/call module if the mac address is different from the last arp request with the same ip address.log ip change, alert on ip change, mod on ip change = trueβ log/launch script/call module if the ip address is different from the last arp request with the same mac address.log unauth request, alert on unauth request, mod on unauth request = trueβ unauthorized arp request: launch if the request is not authorized in auth file.ignore unknown sender = trueβ don't analyse arp request for unknown hosts (not in white list).ignore self test = trueβ ignore ARP self test generated by windows dhcp for unauthorized request detection.ignore me = trueβ ignore arp request with mac addresse of the listing interfaces for the authorizations checks.unauth ignore time method = 2β select suspend time method:1: ignore all unauth alerts during"anti flood interval"time2: ignore only tuple (mac address, ip address) during"anti flood interval"time
log request abus, alert on request abus, mod on request abus = trueβ log/launch script/call module if the number of request per seconds are>"max request".max request = 1000000β maximun request authorized by second.log mac error, alert on mac error, mod on mac error = trueβ log/launch script/call module if the ethernet mac address is different than the arp mac address (only for requestor).log flood = true, alert on flood = true, mod on flood = trueβ log/launch script/call module if have too many arp request per seconds.log expire mac address = true, alert on expire mac address = true, mod on expire mac address = trueβ log/launch script/call module if the ethernet mac address expire.expire authorized mac addresses = trueβ allow authorized mac addresses to expire.
π¦ DATA FILES FORMATS π¦
/etc/arpalert/maclist.allow and /etc/arpalert/maclist.deny:
All the line with # as a first caracter are ignored. The data on this file take this form:
<MAC_ADRESS> <IP_ADDRESS> <DEVICE> [<FLAG> <FLAG> <FLAG> ...]
The available flags are:
ip_change: Ignore ip change alert for this mac addressblack_listed: Ignore black list alerts for this mac addressunauth_rq: Ignore unauthorized requests for this mac addressrq_abus: Ignore request abuse for this mac addressmac_error: Ignore mac error for this mac addressmac_change: Ignore mac change for this mac addressmac_expire: Never expire this mac address. Useful if the option"expire authorized mac addresses"is used
/etc/arpalert/authrq.conf:
- All the words after
#character are ignored - All the blank characters are ignored
- The authorisations list for one mac address begins by the mac address into brackets
- All the next values are ip hosts addresses or ip networks addresses (with
/xxnotion)
[<MAC_ADRESS> <DEVICE>] <IP_ADRESS>
<IP_ADRESS>/<BITS>
π FILES π
sbin/arpalert: binary fileetc/arpalert/arpalert.conf: default config filevar/run/arpalert.pid: pid filevar/state/arpalert.leases: leases file
and that's the whole page, bestie!! this one is from the arp traffic monitoring era, dated 2006-05-09 β vintage but still serving. go secure your network, ily π«Άπ
π¦ where this page comes from
- debian bookworm: arpalert 2.0.12-6+b1 Β· GPL-2.0-only
- debian trixie: arpalert 2.0.12-6+b2 Β· GPL-2.0-only
- ubuntu jammy: arpalert 2.0.12-6 Β· GPL-2.0-only
- ubuntu noble: arpalert 2.0.12-6build2 Β· GPL-2.0-only
- ubuntu resolute: arpalert 2.0.12-7 Β· GPL-2.0-only
- ubuntu stonking: arpalert 2.0.12-7 Β· GPL-2.0-only
- Copyright (c) 2005-2010 Thierry FOURNIER
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms