diff --git a/etc/arpwatch/README b/etc/arpwatch/README new file mode 100644 index 0000000..99ff7be --- /dev/null +++ b/etc/arpwatch/README @@ -0,0 +1,22 @@ +arpwatch does not support a configuration file, but the systemd unit files +shipped with Debian allow to launch arpwatch with different configurations on +each interface + +In order to do that, create a file called IFNAME.iface which contains variable +assignments in sh syntax (comments are allowed). You can use the following +variables to influence the invocation for that specific interface only: +* ARGS: overwrite the ARGS from /etc/default/arpwatch +* PCAP_FILTER: overwrite (or set) the pcap filter +* IFACE_ARGS: additional options to be passed to arpwatch + +See `man 8 arpwatch` for available arguments. Note that the -f, -i and -u +options are added by the init system and should not used. If you just want to +apply the options specified in /etc/default/arpwatch for an interface you do +not need to create a configuration file. + + +For example, if you want to send mails about arpwatch events on eth0 to +arpwatch+eth0@example.com, you can generate the configuration file using the +following command: + +echo 'IFACE_ARGS="-m arpwatch+eth0@example.com"' > /etc/arpwatch/eth0.iface diff --git a/etc/arpwatch/bond0.20.iface b/etc/arpwatch/bond0.20.iface new file mode 100644 index 0000000..1dbaf2e --- /dev/null +++ b/etc/arpwatch/bond0.20.iface @@ -0,0 +1 @@ +IFACE_ARGS="-m nukemailz" diff --git a/etc/arpwatch/bond0.21.iface b/etc/arpwatch/bond0.21.iface new file mode 100644 index 0000000..1dbaf2e --- /dev/null +++ b/etc/arpwatch/bond0.21.iface @@ -0,0 +1 @@ +IFACE_ARGS="-m nukemailz" diff --git a/etc/arpwatch/bond0.22.iface b/etc/arpwatch/bond0.22.iface new file mode 100644 index 0000000..1dbaf2e --- /dev/null +++ b/etc/arpwatch/bond0.22.iface @@ -0,0 +1 @@ +IFACE_ARGS="-m nukemailz" diff --git a/etc/arpwatch/bond0.23.iface b/etc/arpwatch/bond0.23.iface new file mode 100644 index 0000000..1dbaf2e --- /dev/null +++ b/etc/arpwatch/bond0.23.iface @@ -0,0 +1 @@ +IFACE_ARGS="-m nukemailz" diff --git a/etc/arpwatch/bond0.25.iface b/etc/arpwatch/bond0.25.iface new file mode 100644 index 0000000..1dbaf2e --- /dev/null +++ b/etc/arpwatch/bond0.25.iface @@ -0,0 +1 @@ +IFACE_ARGS="-m nukemailz" diff --git a/etc/arpwatch/bond0.29.iface b/etc/arpwatch/bond0.29.iface new file mode 100644 index 0000000..1dbaf2e --- /dev/null +++ b/etc/arpwatch/bond0.29.iface @@ -0,0 +1 @@ +IFACE_ARGS="-m nukemailz" diff --git a/etc/systemd/system/multi-user.target.wants/arpwatch.service b/etc/systemd/system/multi-user.target.wants/arpwatch.service new file mode 120000 index 0000000..71d9aca --- /dev/null +++ b/etc/systemd/system/multi-user.target.wants/arpwatch.service @@ -0,0 +1 @@ +/lib/systemd/system/arpwatch.service \ No newline at end of file diff --git a/etc/systemd/system/multi-user.target.wants/arpwatch@bond0.20.service b/etc/systemd/system/multi-user.target.wants/arpwatch@bond0.20.service new file mode 120000 index 0000000..584d81b --- /dev/null +++ b/etc/systemd/system/multi-user.target.wants/arpwatch@bond0.20.service @@ -0,0 +1 @@ +/lib/systemd/system/arpwatch@.service \ No newline at end of file diff --git a/etc/systemd/system/multi-user.target.wants/arpwatch@bond0.21.service b/etc/systemd/system/multi-user.target.wants/arpwatch@bond0.21.service new file mode 120000 index 0000000..584d81b --- /dev/null +++ b/etc/systemd/system/multi-user.target.wants/arpwatch@bond0.21.service @@ -0,0 +1 @@ +/lib/systemd/system/arpwatch@.service \ No newline at end of file diff --git a/etc/systemd/system/multi-user.target.wants/arpwatch@bond0.22.service b/etc/systemd/system/multi-user.target.wants/arpwatch@bond0.22.service new file mode 120000 index 0000000..584d81b --- /dev/null +++ b/etc/systemd/system/multi-user.target.wants/arpwatch@bond0.22.service @@ -0,0 +1 @@ +/lib/systemd/system/arpwatch@.service \ No newline at end of file diff --git a/etc/systemd/system/multi-user.target.wants/arpwatch@bond0.23.service b/etc/systemd/system/multi-user.target.wants/arpwatch@bond0.23.service new file mode 120000 index 0000000..584d81b --- /dev/null +++ b/etc/systemd/system/multi-user.target.wants/arpwatch@bond0.23.service @@ -0,0 +1 @@ +/lib/systemd/system/arpwatch@.service \ No newline at end of file diff --git a/etc/systemd/system/multi-user.target.wants/arpwatch@bond0.25.service b/etc/systemd/system/multi-user.target.wants/arpwatch@bond0.25.service new file mode 120000 index 0000000..584d81b --- /dev/null +++ b/etc/systemd/system/multi-user.target.wants/arpwatch@bond0.25.service @@ -0,0 +1 @@ +/lib/systemd/system/arpwatch@.service \ No newline at end of file diff --git a/etc/systemd/system/multi-user.target.wants/arpwatch@bond0.29.service b/etc/systemd/system/multi-user.target.wants/arpwatch@bond0.29.service new file mode 120000 index 0000000..584d81b --- /dev/null +++ b/etc/systemd/system/multi-user.target.wants/arpwatch@bond0.29.service @@ -0,0 +1 @@ +/lib/systemd/system/arpwatch@.service \ No newline at end of file