±âº»ÀûÀ¸·Î ÆÐŶ ĸÃÄ ¶óÀ̺귯¸®ÀÎ libpcapÀ» ¼³Ä¡ÇÏ¿©¾ß Çϸç ÷ºÎ ÆÄÀÏÀ» ´Ù¿î·Îµå ¹Þ¾Æ ¾ÐÃà ÇØÁ¦ÇÑ´Ù.
±×¸®°í º¯°æµÈ ARP Á¤º¸ ¹Ý°ß½Ã ¸ÞÀÏÀ» ¼ö½ÅÇÒ À̸ÞÀÏ ÁÖ¼Ò¸¦ ¼³Á¤Çϱâ À§ÇØ address.h.in ÆÄÀÏÀ» ¿¾î
#define WATCHER "system@hanbiro.com"
#define WATCHEE" "arpwatch(server ip)"
·Î ¼öÁ¤ÇØÁÖ°í ./configure;make;make install ÇØÁØ´Ù.
¼³Ä¡ÈÄ¿¡
#touch /var/log/arp.log
#/usr/local/sbin/arpwatch -d -f /var/log/arp.log
=> ÇöÀç ³×Æ®¿öÅ©ÀÇ MAC Á¤º¸¿Í IP Á¤º¸¸¦ ¸ÅĪÇÏ¿© /var/log/arp.log ÆÄÀÏ¿¡ µ¥ÀÌŸ º£À̽º ½ÖÀ» »ý¼ºÇÑ´Ù.
µ¥ÀÌÅÍ º£À̽º »ý¼ºÀÌ ¿Ï·áµÈÈÄ /usr/local/sbin/arpwatch -N -f /var/log/arp.log¸¦ ½ÇÇàÇÏ¿© µÎ¸é ½Ç½Ã°£À¸·Î ARP Æ®·¡ÇÈÀ» üũÇÏ¿© »õ·Î¿î MAC Á¤º¸°¡ Ãß°¡µÇ°Å³ª MAC Á¤º¸°¡ º¯°æµÇ´Â µî ÇöÀçÀÇ µ¥ÀÌÅÍ º£À̽º Á¤º¸¿Í ´Ù¸¥ Á¤º¸°¡ ¹ß°ß ½Ã¿¡´Â ¾Õ¿¡¼ ÁöÁ¤ÇÑ °ü¸®ÀÚ¿¡°Ô ÇØ´çÇÏ´Â ³»¿ë¿¡ ´ëÇØ Å뺸¸¦ ÇÏ°í µ¥ÀÌŸ º£À̽ºÀ» °»½ÅÇÏ°Ô µÈ´Ù.