Ben's notes

Linux, Unix, network, radio...

User Tools

Site Tools


arpwatch

Link to this comparison view

Both sides previous revisionPrevious revision
Next revision
Previous revision
Next revisionBoth sides next revision
arpwatch [2014/06/24 19:49] – [ARP monitoring with arpwatch] adminarpwatch [2021/10/30 13:14] admin
Line 1: Line 1:
 {{tag>[network security arp linux]}} {{tag>[network security arp linux]}}
-~~TOC~~ 
  
-=====ARP monitoring with arpwatch===== +=====ARP monitoring with arpwatch and msmtp=====
-===Prerequisites:=== +
-  * Make sure e-mail works+
  
-===Install and configure arpwatch=== +  * Install packages. <code>apt install arpwatch msmtp</code> 
-  * Install aprwatch. <code>yum install arpwatch</code> +  * Configure interface. <code>cat > /etc/arpwatch/eth0.iface <<'EOF' 
-  * Start arpwatch at boot. <code>chkconfig arpwatch on</code> +IFACE_ARGS="-s /usr/bin/msmtp -m monitor@1k2.nl" 
-  * Change config if needed, edit **/etc/sysconfig/arpwatch**+EOF</code> 
-  * Start arpwatch. <code>service arpwatch start</code>+  * Start arpwatch at boot. <code>systemctl enable --now arpwatch@eth0</code>
  
-===Example mail=== 
-<code>subject: new station (apc.mgmt.polaire.nl) 
  
-           hostname: apc.mgmt.polaire.nl 
-         ip address: 192.168.40.51 
-   ethernet address: 0:c0:b7:95:2e:e8 
-    ethernet vendor: AMERICAN POWER CONVERSION CORP 
-          timestamp: Tuesday, June 24, 2014 21:48:39 +0200</code> 
arpwatch.txt · Last modified: 2021/10/30 13:20 by admin