{"id":45,"date":"2007-10-05T05:16:30","date_gmt":"2007-10-05T05:16:30","guid":{"rendered":"http:\/\/pchero21.com\/?p=45"},"modified":"2007-10-05T05:16:30","modified_gmt":"2007-10-05T05:16:30","slug":"%ec%88%98%ed%8d%bc%eb%8d%b0%eb%aa%ac-xinetd-xinetd-%ec%97%90-%ec%9d%98%ed%95%9c-%ec%a0%91%ec%86%8d%ec%a0%9c%ec%96%b4-tcpd","status":"publish","type":"post","link":"http:\/\/pchero21.com\/?p=45","title":{"rendered":"[\uc218\ud37c\ub370\ubaac xinetd] xinetd \uc5d0 \uc758\ud55c \uc811\uc18d\uc81c\uc5b4( tcpd )"},"content":{"rendered":"<p>&nbsp;1. tcpd( Tcp_wrapper ) \uc758 \ub450\uac00\uc9c0 \uc5ed\ud560<\/p>\n<p>&nbsp;&#8211; \ud2b9\uc815 IP \ub098 \ub3c4\uba54\uc778\uc73c\ub85c\ubd80\ud130 \uc11c\ubc84\ub85c\uc758 telnet, ftp, pop \ub4f1\uc758 \uc811\uc18d\uc744 \ucc28\ub2e8\ud560 \uc218 \uc788\uc74c.<\/p>\n<p>&nbsp;&#8211; \uc811\uc18d\uae30\ub85d\uc774\ub098 \uc811\uc18d\uc2dc\ub3c4\uae30\ub85d\uc744 \ud2b9\uc815\ud55c \ud30c\uc77c\uc5d0 \ub85c\uadf8\ub85c \uae30\ub85d\ud568.<\/p>\n<p>&nbsp;2.<br \/>\nxinetd \ub294 tcp_wrapper \ub97c \ub0b4\uc7a5\ud558\uace0 \uc788\uae30 \ub54c\ubb38\uc5d0 xinetd \ubaa8\ub4dc\uc5d0\uc11c \uc2e4\ud589\ub418\ub294 \uc11c\ube44\uc2a4\ub4e4( ex. ftp,<br \/>\ntelnet, ssh \ub4f1 ) \uc740 \uac70\uc758 \ub300\ubd80\ubd84 tcpd \ub77c\ub294 Tcp_wrapper \uc758 \ub370\ubaac\uc5d0 \uc758\ud574 \uc811\uc18d\uc81c\uc5b4\ub97c \ubc1b\uac8c \ub428.<br \/>\n\uac1c\ubcc4\uc11c\ube44\uc2a4\ub4e4( ex. ftp, telnet \ub4f1 ) \uc758 \uc811\uadfc\ud5c8\uc6a9\uc744 \uc124\uc815\ud558\ub294 \ud30c\uc77c\uc740 \/etc\/hosts.allow \uc774\uba70 \uc811\uadfc\ud5c8\uc6a9\uc774<br \/>\n\ub418\uc9c0 \uc54a\ub3c4\ub85d \uc124\uc815\ud558\ub294 \ud30c\uc77c\uc774 \/etc\/hosts.deny \uc784.<\/p>\n<p>&nbsp;3. \/etc\/hosts.allow \uc640 \/etc\/hosts.deny \ud30c\uc77c\uc758 \uc124\uc815\ud56d\ubaa9<\/p>\n<p>&nbsp;&#8211; \/etc\/hosts.allow \ubc0f \/etc\/hosts.deny \ud30c\uc77c\uc758 \uc124\uc815\ud56d\ubaa9\uc740 \ud06c\uac8c \ub450\uac00\uc9c0\ub85c \ub098\ub258\uc5b4 \uc9d0.<\/p>\n<p>&nbsp; &nbsp; &nbsp; &nbsp;&nbsp; \uad6c\ubd84 &nbsp; &nbsp;&nbsp; | &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; \uc67c\ucabd\ubd80\ubd84 \uc124\uc815\ud56d\ubaa9 &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; | &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; \uc624\ub978\ucabd\ubd80\ubd84 \uc124\uc815\ud56d\ubaa9<br \/>&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;-<br \/>&nbsp; &nbsp; &nbsp;&nbsp; \ub300\uc0c1 &nbsp; &nbsp; &nbsp;&nbsp; | \uc811\uadfc\uc81c\uc5b4 \ub300\uc0c1 \uc11c\ube44\uc2a4 &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; | &nbsp; \uc811\uadfc\uc81c\uc5b4 \ub300\uc0c1 <br \/>&nbsp;&nbsp; &#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8211; <br \/>&nbsp; &nbsp; \uc124\uc815\uac12 &nbsp; &nbsp; &nbsp; | xinetd \uae30\ubc18\uc5d0\uc11c \uc81c\uc5b4\ub418\ub294 \ubaa8\ub4e0 \uc11c&nbsp; | \ud2b9\uc815 \ub3c4\uba54\uc778\uba85<br \/>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;&nbsp; | \ube44\uc2a4 \uba85\ub4e4. &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; | \ud2b9\uc815 \ud638\uc2a4\ud2b8\uba85<br \/>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;&nbsp; |&nbsp; \/etc\/services \ub0b4\uc758 \uac01 \uc11c\ube44\uc2a4\uc774\ub984\uacfc| \ud2b9\uc815 IP \uc8fc\uc18c<br \/>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;&nbsp; |\/etc\/xinetd.d\/ \ub514\ub809\ud1a0\ub9ac\uc5d0 \uc874\uc7ac\ud558\ub294 | \ud2b9\uc815 \ub124\ud2b8\uc6cc\ud06c<br \/>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;&nbsp; | \ud30c\uc77c\uba85\uacfc \ub3d9\uc77c\ud55c \uc774\ub984\uc744 \uc0ac\uc6a9\ud55c\ub2e4.&nbsp; |<br \/>&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;<br \/>&nbsp; &nbsp; \uc124\uc815\uc608 &nbsp; &nbsp; &nbsp; | telnet &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; | pchero21.com<br \/>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;&nbsp; | sshd &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;&nbsp; | host1<br \/>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;&nbsp; | proftpd &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;&nbsp; | 192.168.0.100<br \/>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;&nbsp; | &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;&nbsp; | 192.168.1.0\/24<br \/>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;&nbsp; | &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;&nbsp; | 192.168.2.0\/255.255.255.0<br \/>&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;-<br \/>&nbsp;&nbsp; \uc2e4\uc81c\uc608 &nbsp; &nbsp; &nbsp;&nbsp; | proftpd : 192.168.10.0\/255.255.255.0 EXCEPT 192.168.10.100<br \/>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;&nbsp; | proftpd : 192.168.10.100 : twist \/bin\/echo &#8220;Access Denied!&#8221;<br \/>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;&nbsp; | sshd : 192.168.0.100<br \/>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;&nbsp; | sshd : 192.168.1.0\/24<br \/>&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;-<\/p>\n<p>&nbsp;&#8211; \uc67c\ucabd\ud56d\ubaa9\uacfc \uc624\ub978\ucabd \ud56d\ubaa9\uc740 \ucf5c\ub860( : ) \uc73c\ub85c \uad6c\ubd84\uc744 \ud55c\ub2e4. \ub610\ud55c \uc138\ubc88\uc9f8 \ud56d\ubaa9\uc744 \uacc4\uc18d \uc124\uc815\ud560 \ub54c\uc5d0\ub3c4 \ucf5c\ub860\uc73c\ub85c \uad6c\ubd84\ud558\uc5ec \uc124\uc815\uc744 \ud55c\ub2e4.<\/p>\n<p>&nbsp;&#8211;<br \/>\n\/etc\/hosts.allow \ub0b4\uc758 \uc124\uc815\uacfc \/etc\/hosts.deny \ub0b4\uc758 \uc124\uc815\uc774 \uc911\ubcf5\ub418\uc5c8\uc744 \uacbd\uc6b0\uc5d0<br \/>\n\/etc\/hosts.allow \ud30c\uc77c\uc758 \ub0b4\uc6a9\uc774 \uc801\uc6a9\ub41c\ub2e4. \uc989, \/etc\/hosts.allow \ud30c\uc77c\uacfc \/etc\/hosts.deny<br \/>\n\ud30c\uc77c\uc5d0 \ub3d9\uc77c\ud55c \uc124\uc815\uc744 \ud574\ub450\uba74 \/etc\/hosts.allow \ud30c\uc77c\uc758 \ub0b4\uc6a9\uc774 \uc801\uc6a9\ub418\uc5b4 \uc811\uc18d\uc774 \ud5c8\uc6a9\ub428.<\/p>\n<p>&nbsp;&#8211; # \ubb38\uc790\ub85c \uc2dc\uc791\ub418\uba74 \uc8fc\uc11d\ubb38\uc73c\ub85c \uc778\uc2dd\ud568.<\/p>\n<p>&nbsp;&#8211; \uac01 \ub300\uc0c1\ub9ac\uc2a4\ud2b8\ub4e4\uc758 \ub098\uc601\uc744 \uc2a4\ud398\uc774\uc2a4( space ) \ub098 \ucf64\ub9c8( , ) \ub85c \uad6c\ubd84\ud568<\/p>\n<p>&nbsp;4. hosts.deny \uc758 \uc608<\/p>\n<p>&nbsp;&#8211;&nbsp; ALL : ALL<\/p>\n<p>&nbsp;&#8211; hosts.allow \ud30c\uc77c\uacfc hosts.deny \ud30c\uc77c\uc758 \ud574\uc11d\uc740 : \uc744 \uae30\uc810\uc73c\ub85c \ud558\uc5ec \uc67c\ucabd\uc5d0\ub294 \uc11c\ube44\uc2a4\ub420 \ub300\uc0c1\ub370\ubaac\ub4e4\uc774\uba70 \uc624\ub978\ucabd\uc5d0\ub294 \ub300\uc0c1 IP \ubc0f \ud638\uc2a4\ud2b8 \uc815\ubcf4\uc784.<\/p>\n<p>&nbsp;&#8211;<br \/>\n\uc67c\ucabd\uc758 \uc11c\ube44\uc2a4\uc5d0 \ub300\ud574\uc11c \uc624\ub978\ucabd\uc758 IP \ub098 \ud638\uc2a4\ud2b8\uc5d0 \ub300\ud574\uc11c \uc811\uadfc\uc744 \ud5c8\uc6a9\ud55c\ub2e4\ub294 \uc124\uc815\uc774\ub77c\uace0 \ud574\uc11d\ud558\uba74 \ub428. \uc704\uc758 \uc608\ucc98\ub7fc ALL :<br \/>\nALL \ub85c \uc124\uc815\ub418\uc5b4 \uc788\uc73c\uba74 xinetd \ubaa8\ub4dc\ud558\uc5d0\uc11c \uc11c\ube44\uc2a4\ub418\ub294 \ubaa8\ub4e0 \uc11c\ube44\uc2a4\uc5d0 \ub300\ud574\uc11c \ubaa8\ub4e0 IP \ubc0f \ubaa8\ub4e0 \ud638\uc2a4\ud2b8\uc758 \uc811\uadfc\uc744 \ud5c8\uc6a9\ud558\uc9c0<br \/>\n\uc54a\ub294\ub2e4\ub294 \uc124\uc815\uc784.<\/p>\n<p>&nbsp;5. hosts.allow \uc758 \uc608<\/p>\n<p>&nbsp;&#8211; in.telnetd : 210.101.112.240 210.101.112.241 211.123.12.12 168.`16.3.<br \/>&nbsp; &nbsp; in.ftpd : 210.101.112.240 210.101.112.241 211.123.12.12 168.126.3.<br \/>&nbsp; &nbsp; ipop3d : ALL<\/p>\n<p>&nbsp;&#8211;<br \/>\n\uc704\uc758 hosts.allow \ud30c\uc77c\uc5d0 \uc124\uc815\ub418\uc5b4 \uc788\ub294 \uccab\ubc88\uc9f8 \ud589\uc758 \uc124\uc815\uc740 telnet \uc11c\ube44\uc2a4\uc5d0 \ub300\ud574\uc11c 210.101.112.240<br \/>\n210.101.112.241 211.123.12.12 168.126.3. \uc5d0 \ub300\ud55c \uc811\uadfc\ub9cc\uc744 \ud5c8\uc6a9\ud55c\ub2e4\ub294 \uc124\uc815\uc774\uba70, \ub450\ubc88\uc9f8 \ud589\uc758<br \/>\n\uc124\uc815\uc740 ftp \uc11c\ube44\uc2a4\uc5d0 \ub300\ud574\uc11c 210.101.112.240 210.101.112.241 211.123.12.12<br \/>\n168.126.3. \uc5d0 \ub300\ud55c \uc811\uadfc\ub9cc\uc744 \ud5c8\uc6a9\ud55c\ub2e4\ub294 \uc124\uc815\uc784. \uadf8\ub9ac\uace0 ipop3d \uc5d0 \ub300\ud574\uc11c\ub294 \ubaa8\ub4e0 \uacf3\uc5d0\uc11c\uc758 \uc811\uadfc\uc744 \ud5c8\uc6a9\ud55c\ub2e4\ub294 \uc124\uc815\uc784<\/p>\n","protected":false},"excerpt":{"rendered":"<p>&nbsp;1. tcpd( Tcp_wrapper ) \uc758 \ub450\uac00\uc9c0 \uc5ed\ud560 &nbsp;&#8211; \ud2b9\uc815 IP \ub098 \ub3c4\uba54\uc778\uc73c\ub85c\ubd80\ud130 \uc11c\ubc84\ub85c\uc758 telnet, ftp, pop \ub4f1\uc758 \uc811\uc18d\uc744 \ucc28\ub2e8\ud560 \uc218 \uc788\uc74c. &nbsp;&#8211; \uc811\uc18d\uae30\ub85d\uc774\ub098 \uc811\uc18d\uc2dc\ub3c4\uae30\ub85d\uc744 \ud2b9\uc815\ud55c \ud30c\uc77c\uc5d0 \ub85c\uadf8\ub85c \uae30\ub85d\ud568. &nbsp;2. xinetd \ub294 tcp_wrapper \ub97c \ub0b4\uc7a5\ud558\uace0 \uc788\uae30 \ub54c\ubb38\uc5d0 xinetd \ubaa8\ub4dc\uc5d0\uc11c \uc2e4\ud589\ub418\ub294 \uc11c\ube44\uc2a4\ub4e4( &hellip; <a href=\"http:\/\/pchero21.com\/?p=45\">Continue reading <span class=\"meta-nav\">&rarr;<\/span><\/a><\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":[],"categories":[25],"tags":[],"_links":{"self":[{"href":"http:\/\/pchero21.com\/index.php?rest_route=\/wp\/v2\/posts\/45"}],"collection":[{"href":"http:\/\/pchero21.com\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"http:\/\/pchero21.com\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"http:\/\/pchero21.com\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"http:\/\/pchero21.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=45"}],"version-history":[{"count":0,"href":"http:\/\/pchero21.com\/index.php?rest_route=\/wp\/v2\/posts\/45\/revisions"}],"wp:attachment":[{"href":"http:\/\/pchero21.com\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=45"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"http:\/\/pchero21.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=45"},{"taxonomy":"post_tag","embeddable":true,"href":"http:\/\/pchero21.com\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=45"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}