{"id":312,"date":"2014-04-22T09:19:30","date_gmt":"2014-04-22T00:19:30","guid":{"rendered":"http:\/\/blog.ymyzk.com\/?p=312"},"modified":"2014-12-03T10:12:18","modified_gmt":"2014-12-03T01:12:18","slug":"arpwatch-ignorenet","status":"publish","type":"post","link":"https:\/\/blog.ymyzk.com\/2014\/04\/arpwatch-ignorenet\/","title":{"rendered":"arpwatch \u3067\u7279\u5b9a\u306e\u30cd\u30c3\u30c8\u30ef\u30fc\u30af\u306e IP \u30a2\u30c9\u30ec\u30b9\u3092\u7121\u8996\u3059\u308b\u65b9\u6cd5"},"content":{"rendered":"
arpwatch \u3067 DHCP \u90e8\u5206\u306e IP \u30a2\u30c9\u30ec\u30b9\u7bc4\u56f2\u306b\u3064\u3044\u3066\u306f\u691c\u77e5\u3057\u305f\u304f\u306a\u3044\u5834\u5408\u306a\u3069\u304c\u3042\u308a\u307e\u3059. Debian \u306e arpwatch \u3067\u306f -z \u30aa\u30d7\u30b7\u30e7\u30f3\u3092\u4f7f\u3046\u3068, \u7279\u5b9a\u306e\u30cd\u30c3\u30c8\u30ef\u30fc\u30af\u306e IP \u30a2\u30c9\u30ec\u30b9\u7bc4\u56f2\u306b\u3064\u3044\u3066\u7121\u8996\u3059\u308b\u3053\u3068\u304c\u51fa\u6765\u307e\u3059.<\/p>\n
<\/p>\n
\u3053\u306e\u6a5f\u80fd\u304c\u5229\u7528\u51fa\u6765\u308b\u304b\u30c1\u30a7\u30c3\u30af\u3059\u308b\u306b\u306f, \u4ee5\u4e0b\u3092\u5b9f\u884c\u3057\u3066, arpwatch \u306e\u30d8\u30eb\u30d7\u3092\u8868\u793a\u3057,<\/p>\n
\r\nsudo arpwatch -h\r\n<\/pre>\n\u4ee5\u4e0b\u306e\u3088\u3046\u306b [-z ignorenet\/ignoremask] \u304c\u542b\u307e\u308c\u3066\u3044\u308c\u3070\u5229\u7528\u51fa\u6765\u307e\u3059.<\/p>\n
\r\nVersion 2.1a15\r\nusage: arpwatch [-dN] [-f datafile] [-i interface] [-n net[\/width]] [-r file] [-s sendmail_path] [-p] [-a] [-m addr] [-u username] [-R seconds ] [-Q] [-z ignorenet\/ignoremask]\r\n<\/pre>\n\u307e\u305f\u306f, man arpwatch \u3067 arpwatch \u306e man \u30da\u30fc\u30b8\u3092\u8868\u793a\u3057, -z \u30aa\u30d7\u30b7\u30e7\u30f3\u304c\u5229\u7528\u51fa\u6765\u308b\u304b\u3092\u78ba\u8a8d\u3057\u307e\u3059.<\/p>\n
-z \u30aa\u30d7\u30b7\u30e7\u30f3\u306e\u8a2d\u5b9a\u65b9\u6cd5<\/h3>\n
-z \u30aa\u30d7\u30b7\u30e7\u30f3\u306f\u30cd\u30c3\u30c8\u30ef\u30fc\u30af\u30a2\u30c9\u30ec\u30b9\u3068\u30b5\u30d6\u30cd\u30c3\u30c8\u30de\u30b9\u30af\u3092\u8a2d\u5b9a\u3057\u307e\u3059. -z 192.168.0.1\/255.255.255.128 \u306e\u5834\u5408, 192.168.0.0 \u304b\u3089 192.168.0.127 \u307e\u3067\u306e IP \u30a2\u30c9\u30ec\u30b9\u306b\u3064\u3044\u3066\u7121\u8996\u3059\u308b\u3053\u3068\u304c\u51fa\u6765\u307e\u3059. \u3053\u306e\u3088\u3046\u306a\u8a2d\u5b9a\u306e\u305f\u3081, \u7121\u8996\u3057\u305f\u3044 IP \u30a2\u30c9\u30ec\u30b9\u306e\u30ea\u30b9\u30c8\u3092\u8a2d\u5b9a\u3059\u308b\u306a\u3069\u306e\u3042\u307e\u308a\u7d30\u304b\u3044\u8a2d\u5b9a\u3092\u884c\u306a\u3046\u3053\u3068\u306f\u51fa\u6765\u307e\u305b\u3093.<\/h3>\n
\u30b5\u30fc\u30d3\u30b9\u306e\u8a2d\u5b9a\u65b9\u6cd5<\/h3>\n
Debian \u306e arpwatch \u304c\u30b5\u30fc\u30d3\u30b9\u3068\u3057\u3066\u8d77\u52d5\u3059\u308b\u969b\u306b, \/etc\/default\/arpwatch \u5185\u306e ARGS \u304c\u5f15\u6570\u3068\u3057\u3066\u4e0e\u3048\u3089\u308c\u307e\u3059. \u3053\u3053\u306b -z \u30aa\u30d7\u30b7\u30e7\u30f3\u3092\u8ffd\u8a18\u3059\u308b\u3053\u3068\u3067, \u30b5\u30fc\u30d3\u30b9\u8d77\u52d5\u6642\u306b\u7121\u8996\u3059\u308b IP \u30a2\u30c9\u30ec\u30b9\u306e\u7bc4\u56f2\u3092\u8a2d\u5b9a\u51fa\u6765\u307e\u3059.<\/p>\n
\r\n# Global options for arpwatch(8).\r\n\r\n# Debian: don't report bogons, don't use PROMISC.\r\nARGS="-N -p -z 192.168.0.1\/255.255.255.128"\r\n\r\n# Debian: run as `arpwatch' user. Empty this to run as root.\r\nRUNAS="arpwatch"\r\n<\/pre>\n\u8a2d\u5b9a\u304c\u5b8c\u4e86\u3057\u305f\u3089, arpwatch \u3092\u518d\u8d77\u52d5\u3057\u307e\u3059.<\/p>\n
\r\nsudo \/etc\/init.d\/arpwatch restart\r\n<\/pre>\n","protected":false},"excerpt":{"rendered":"arpwatch \u3067 DHCP \u90e8\u5206\u306e IP \u30a2\u30c9\u30ec\u30b9\u7bc4\u56f2\u306b\u3064\u3044\u3066\u306f\u691c\u77e5\u3057\u305f\u304f\u306a\u3044\u5834\u5408\u306a\u3069\u304c\u3042\u308a\u307e\u3059. Debian \u306e arpwatch \u3067\u306f -z \u30aa\u30d7\u30b7\u30e7\u30f3\u3092\u4f7f\u3046\u3068, \u7279\u5b9a\u306e\u30cd\u30c3\u30c8\u30ef\u30fc\u30af\u306e IP \u30a2\u30c9\u30ec\u30b9\u7bc4\u56f2\u306b\u3064\u3044 […]<\/p>\n","protected":false},"author":2,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[26],"tags":[42,16],"_links":{"self":[{"href":"https:\/\/blog.ymyzk.com\/wp-json\/wp\/v2\/posts\/312"}],"collection":[{"href":"https:\/\/blog.ymyzk.com\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/blog.ymyzk.com\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/blog.ymyzk.com\/wp-json\/wp\/v2\/users\/2"}],"replies":[{"embeddable":true,"href":"https:\/\/blog.ymyzk.com\/wp-json\/wp\/v2\/comments?post=312"}],"version-history":[{"count":11,"href":"https:\/\/blog.ymyzk.com\/wp-json\/wp\/v2\/posts\/312\/revisions"}],"predecessor-version":[{"id":677,"href":"https:\/\/blog.ymyzk.com\/wp-json\/wp\/v2\/posts\/312\/revisions\/677"}],"wp:attachment":[{"href":"https:\/\/blog.ymyzk.com\/wp-json\/wp\/v2\/media?parent=312"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/blog.ymyzk.com\/wp-json\/wp\/v2\/categories?post=312"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/blog.ymyzk.com\/wp-json\/wp\/v2\/tags?post=312"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}