diff options
author | Facundo Acevedo <facevedo@disroot.org> | 2023-06-09 20:47:59 -0300 |
---|---|---|
committer | Josef Schlehofer <pepe.schlehofer@gmail.com> | 2023-06-18 07:44:06 +0200 |
commit | ce0749a477d64b23fc77e6bd24d18903263ac4c6 (patch) | |
tree | 621b735936b175498e17361837782083db3d7453 /utils/arp-whisper/files | |
parent | b0f8ca045da65147731c56dfa3e5eb1f70e70f7f (diff) |
arp-whisper: Add new package
arp-whisper listens to ARP requests on a network interface and responds
to them based on a list of IP-MAC address mappings defined in a
configuration file
Signed-off-by: Facundo Acevedo <facevedo@disroot.org>
Diffstat (limited to 'utils/arp-whisper/files')
-rw-r--r-- | utils/arp-whisper/files/arp-whisper.init | 14 | ||||
-rw-r--r-- | utils/arp-whisper/files/etc/arp-whisper/arp-whisper | 8 |
2 files changed, 22 insertions, 0 deletions
diff --git a/utils/arp-whisper/files/arp-whisper.init b/utils/arp-whisper/files/arp-whisper.init new file mode 100644 index 000000000..f5a29773d --- /dev/null +++ b/utils/arp-whisper/files/arp-whisper.init @@ -0,0 +1,14 @@ +#!/bin/sh /etc/rc.common + +START=60 +USE_PROCD=1 +PROG=/usr/sbin/arp-whisper +CONF_FILE=/etc/arp-whisper/arp-whisper + +start_service() { + procd_open_instance + procd_set_param command "$PROG" "$CONF_FILE" + procd_set_param stdout 1 + procd_set_param stderr 1 + procd_close_instance +} diff --git a/utils/arp-whisper/files/etc/arp-whisper/arp-whisper b/utils/arp-whisper/files/etc/arp-whisper/arp-whisper new file mode 100644 index 000000000..d2d8de71f --- /dev/null +++ b/utils/arp-whisper/files/etc/arp-whisper/arp-whisper @@ -0,0 +1,8 @@ +logging_level = "info" +[Network] +interface = br-lan + +[Hosts] +; ip = mac_address +; 192.168.1.2 = aa:bb:cc:dd:ee:ff +; 192.168.1.3 = 00:11:22:33:44:55 |