{"id":1777,"date":"2009-01-25T23:30:45","date_gmt":"2009-01-25T14:30:45","guid":{"rendered":"http:\/\/seecom-s.com\/?p=1777"},"modified":"2009-01-25T23:30:45","modified_gmt":"2009-01-25T14:30:45","slug":"%e8%87%aa%e5%ae%85%e3%82%b5%e3%83%bc%e3%83%90%e5%be%a9%e6%97%a7%e3%81%ae%e7%b6%9a%e3%81%8d","status":"publish","type":"post","link":"https:\/\/seecom-s.com\/?p=1777","title":{"rendered":"\u81ea\u5b85\u30b5\u30fc\u30d0\u5fa9\u65e7\u306e\u7d9a\u304d"},"content":{"rendered":"<p>\u7d50\u5c40\u3001\u307e\u305fGNU\/Debian 4.x etch\u3092\u5165\u308c\u305f\u3002<br \/>\nSSD\u642d\u8f09Mac mini\u3078\u306eLinux\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u3060\u3002<br \/>\n\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u6642\u306b\u3001swap\u9818\u57df\u3092\u4f5c\u3089\u306a\u304b\u3063\u305f\u3002<br \/>\n&#8212;&#8212;<br \/>\n02 ext3 \/boot<br \/>\n03 ext3 \/<br \/>\n&#8212;&#8211;<br \/>\n\u4e0a\u8a182\u30d1\u30fc\u30c6\u30a3\u30b7\u30e7\u30f3\u306e\u307f\u306e\u69cb\u6210\u3002<br \/>\n\uff08\u4ed6\u306bMacOSX\u3084bootloader\u306e\u30d1\u30fc\u30c6\u30a3\u30b7\u30e7\u30f3\u3082\u3042\u308b\uff09<br \/>\nSSD\u3078\u306e\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u306f\u3080\u3084\u307f\u306a\u66f8\u304d\u8fbc\u307f\u3092\u9632\u3050\u305f\u3081<br \/>\nnoatime\u30aa\u30d7\u30b7\u30e7\u30f3\u3092\u8ffd\u52a0\u3002<\/p>\n<p>\u3068\u308a\u3042\u3048\u305a\u3001<br \/>\n\u30c7\u30b9\u30af\u30c8\u30c3\u30d7\u74b0\u5883+Web\u30b5\u30fc\u30d0+\u30d5\u30a1\u30a4\u30eb\u30b5\u30fc\u30d0\u306e\u30bb\u30c3\u30c8\u3067\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u3002<br \/>\n\u3068\u308a\u3042\u3048\u305aSFTP\u3060\u3051\u4f7f\u3048\u308b\u3088\u3046\u306b\u306a\u3063\u305f\u3002<\/p>\n<p>\u3042\u3068\u306fApache\u306e\u8a2d\u5b9a\u304b\u306a\u3002\u3002<br \/>\n\u8ffd\u3005\u3001SSH\u306e\u5f37\u5ea6\u3092\u4e0a\u3052\u308b\u305f\u3081\u306bRSA\u306e\u9375\u4ea4\u63db\u65b9\u5f0f\u30ed\u30b0\u30a4\u30f3\u306b\u5207\u308a\u66ff\u3048\u308b\u4e88\u5b9a\u3002<br \/>\n\u30d1\u30b9\u30ef\u30fc\u30c9\u304c\u901a\u3089\u306a\u304f\u306a\u3063\u305f\u3089\u5207\u308a\u66ff\u308f\u3063\u3066\u308b\u306e\u3067\u9023\u7d61\u30d7\u30ea\u30fc\u30ba\u3002<\/p>\n<p>\u4ee5\u4e0b\u30ed\u30b0<br \/>\n<!--more--><br \/>\n\u518d\u8d77\u52d5\u5f8c\u3002<br \/>\naptitude\u3067OpenSSH\u306e\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u5f8c\u3001\u30ea\u30e2\u30fc\u30c8\u304b\u3089\u306e\u4f5c\u696d\u306b\u79fb\u884c\u3002<\/p>\n<p>SSD\u306a\u306e\u3067RAMDISK\u5316\u3002fstab\u306btmpfs\u3067\/tmp\u3092mount\u3059\u308b\u3088\u3046\u8a18\u8ff0\u3002<br \/>\n\u3064\u3044\u3067\u306b\u5916\u90e8HDD\u3082\u8a18\u8ff0\u3002\u30c7\u30d0\u30a4\u30b9\u540d\u306fdmesg\u3067\u78ba\u8a8d\u3002<\/p>\n<p>network\u8a2d\u5b9a\u3092\u3059\u308b\u3002\/etc\/network\/interfaces\u3068\/etc\/resolv.conf\u3002<\/p>\n<p>resolvconf\u306e\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u3002<br \/>\n\/etc\/resolv.conf\u304csymlink\u306b\u5909\u5316\u3059\u308b\u3053\u3068\u306b\u6ce8\u610f\u3002<\/p>\n<p>dnsmasq\u306e\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u3002<br \/>\nDNS\u30ad\u30e3\u30c3\u30b7\u30e5\u30b5\u30fc\u30d0\u3092\u7acb\u3066\u308b\u4e00\u756a\u624b\u3063\u53d6\u308a\u65e9\u3044\u65b9\u6cd5\u3002<br \/>\n\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u3059\u308c\u3070\u7d42\u308f\u308a\u3002<\/p>\n<p>ntpdate\u306e\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u3068\/etc\/ntp.conf\u306e\u4f5c\u6210\u3002<br \/>\n\u30cd\u30c3\u30c8\u30ef\u30fc\u30af\u78ba\u7acb\u6642\u306b\u52d5\u304f\u3088\u3046\u306b\u8a2d\u5b9a\u3055\u308c\u3066\u3044\u308b\u305f\u3081\u3001<br \/>\ncron\u3067\u30b9\u30af\u30ea\u30d7\u30c8\u3092\u5b9a\u671f\u5b9f\u884c\u306b\u6307\u5b9a\u30021\u6642\u9593\u304f\u3089\u3044\u3067\u826f\u3044\u304b\u306a\u3002<br \/>\n0 * * * * \/etc\/network\/if-up.d\/ntpdate > \/dev\/null<br \/>\nDebian\u306fntpdate-debian\u3068\u3044\u3046\u30b3\u30de\u30f3\u30c9\u3082\u3042\u308b\u306e\u3067\u6ce8\u610f<br \/>\n\u4fbf\u5229\u306a\u30ed\u30fc\u30ab\u30ebNTP\u30b5\u30fc\u30d0\u306e\u51fa\u6765\u4e0a\u304c\u308a\u3002<\/p>\n<p>sudo\u306e\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u3068\u8a2d\u5b9a\u3002\u4ee5\u5f8c\u306f\u7ba1\u7406\u30e6\u30fc\u30b6\u304b\u3089sudo\u3067\u4f5c\u696d\u3002<\/p>\n<p>chkrootkit\u306e\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u3002\u4e00\u5fdc\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u3002<br \/>\nchkrootkit -q\u3067\u691c\u67fb\u53ef\u80fd\u3002<br \/>\n\u5fc5\u9808\u30b3\u30de\u30f3\u30c9\u306f\u6539\u3056\u3093\u3055\u308c\u305f\u6642\u306e\u305f\u3081\u306b\u30d0\u30c3\u30af\u30a2\u30c3\u30d7\u3057\u3066\u304a\u304f\u4e8b\u3002<\/p>\n<p>iptables\u306e\u30b9\u30af\u30ea\u30d7\u30c8\u3092\u66f8\u3044\u3066\u8a2d\u7f6e\u3002<br \/>\nICMP\/NTP\/DNS\/WWW\/SSH\u3001\u3042\u3068\u306f\u65e2\u306b\u78ba\u7acb\u3055\u308c\u305f\u30bb\u30c3\u30b7\u30e7\u30f3\u306e\u307f\u958b\u3051\u308b\u3002<br \/>\n\u7d42\u4e86\u6642\uff1a\/etc\/network\/if-post-down.d\/iptables-down<br \/>\n\u8d77\u52d5\u6642\uff1a\/etc\/network\/if-pre-up.d\/iptables-up<\/p>\n<p>&#8212;<br \/>\nbootstrap\u3092\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u5f8c\u3001chroot\u74b0\u5883\u3092\u69cb\u7bc9\u3002<\/p>\n<p>chroot\u30e6\u30fc\u30b6\u306e\u4f5c\u6210\u3002<br \/>\n&#8211;home\u306fchroot\u4ee5\u4e0b\u3001&#8211;shell\u306f\/usr\/bin\/rssh\u306b\u3059\u308b\u3002<\/p>\n<p>rssh\u306e\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u3068\u8a2d\u5b9a\u3002<br \/>\nchroot\u5316\u30b9\u30af\u30ea\u30d7\u30c8\u306f\u4ee5\u4e0b\u306b\u3042\u308b\u3002\u30d5\u30a1\u30a4\u30eb\u306e\u30d1\u30b9\u7b49\u3001\u9069\u5b9c\u66f8\u304d\u63db\u3048\u3002<br \/>\n\/usr\/share\/doc\/rssh\/examples\/mkchroot.sh<\/p>\n<p>\u66f4\u306bsamba\u306e\u8a2d\u5b9a\u3068\u30e6\u30fc\u30b6\u4f5c\u6210\u3002<br \/>\n\u30d1\u30b9\u30ef\u30fc\u30c9\u306e\u6697\u53f7\u5316\u3092\u5fd8\u308c\u305a\u306b\u3002<\/p>\n<p>\u4ed5\u4e0a\u3052\u306b aptitude clean\u3002<\/p>\n","protected":false},"excerpt":{"rendered":"<p>\u7d50\u5c40\u3001\u307e\u305fGNU\/Debian 4.x etch\u3092\u5165\u308c\u305f\u3002 SSD\u642d\u8f09Mac mini\u3078\u306eLinux\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u3060\u3002 \u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u6642\u306b\u3001swap\u9818\u57df\u3092\u4f5c\u3089\u306a\u304b\u3063\u305f\u3002 &#8212;&#8212; 02 ext3 \/boo <a href=\"https:\/\/seecom-s.com\/?p=1777\" class=\"more-link\">\u2026\u7d9a\u304d\u3092\u8aad\u3080<\/a><\/p>\n","protected":false},"author":2,"featured_media":0,"comment_status":"open","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[3],"tags":[],"class_list":["post-1777","post","type-post","status-publish","format-standard","hentry","category-3"],"_links":{"self":[{"href":"https:\/\/seecom-s.com\/index.php?rest_route=\/wp\/v2\/posts\/1777","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/seecom-s.com\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/seecom-s.com\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/seecom-s.com\/index.php?rest_route=\/wp\/v2\/users\/2"}],"replies":[{"embeddable":true,"href":"https:\/\/seecom-s.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=1777"}],"version-history":[{"count":0,"href":"https:\/\/seecom-s.com\/index.php?rest_route=\/wp\/v2\/posts\/1777\/revisions"}],"wp:attachment":[{"href":"https:\/\/seecom-s.com\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=1777"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/seecom-s.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=1777"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/seecom-s.com\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=1777"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}