{"id":3053,"date":"2009-10-28T06:06:23","date_gmt":"2009-10-28T06:06:23","guid":{"rendered":"http:\/\/www.happyfam.or.kr\/ysoh\/ubuntu-%ec%84%9c%eb%b2%84%eb%a5%bc-%ec%9d%b8%ed%84%b0%eb%84%b7-%ea%b3%b5%ec%9c%a0%ea%b8%b0%eb%a1%9c-%ec%82%ac%ec%9a%a9%ed%95%98%ea%b8%b0\/"},"modified":"2015-02-10T21:12:13","modified_gmt":"2015-02-10T12:12:13","slug":"ubuntu-%ec%84%9c%eb%b2%84%eb%a5%bc-%ec%9d%b8%ed%84%b0%eb%84%b7-%ea%b3%b5%ec%9c%a0%ea%b8%b0%eb%a1%9c-%ec%82%ac%ec%9a%a9%ed%95%98%ea%b8%b0","status":"publish","type":"post","link":"http:\/\/www.happyfam.or.kr\/ysoh\/ubuntu-%ec%84%9c%eb%b2%84%eb%a5%bc-%ec%9d%b8%ed%84%b0%eb%84%b7-%ea%b3%b5%ec%9c%a0%ea%b8%b0%eb%a1%9c-%ec%82%ac%ec%9a%a9%ed%95%98%ea%b8%b0\/","title":{"rendered":"Ubuntu \uc11c\ubc84\ub97c \uc778\ud130\ub137 \uacf5\uc720\uae30\ub85c \uc0ac\uc6a9\ud558\uae30"},"content":{"rendered":"<p>\uc11c\ubc84\ub97c \uc778\ud130\ub137 \uacf5\uc720\uae30\ucc98\ub7fc \uc0ac\uc6a9\ud558\ub824\uba74 IP forwarding\uae30\ub2a5\uc774 \uac00\ub2a5\ud574\uc57c \ud558\uace0 \ub610\ud55c DHCP \uc11c\ubc84\uac00 \uc2e4\ud589\ub418\uace0 \uc788\uc5b4\uc57c\ud55c\ub2e4. \uc544\ub798 \uc608\ub294 Ubuntu Linux\uc5d0 eth0, eth1 \ub450 \uac1c\uc758 \ub124\ud2b8\uc6cc\ud06c \uce74\ub4dc\uac00 \uc124\uce58\ub3fc \uc788\uc73c\uba70, eth0\ub294 \uc778\ud130\ub137\uacfc eth1\uc740 \uc0ac\uc124 IP(192.168.1.xxx)\ub97c \uc0ac\uc6a9\ud558\ub294 \ub0b4\ubd80 \ub124\ud2b8\uc6cc\ud06c\uc640 \uc5f0\uacb0\ub410\uc74c\uc744 \uac00\uc815\ud558\uc600\ub2e4.<\/p>\n<p>1. \ub2e4\uc74c \uba85\ub839\uc744 \uc774\uc6a9 IP forwarding\uc774 \uac00\ub2a5\ud558\ub3c4\ub85d \ud55c\ub2e4.<\/p>\n<div class=\"txc-textbox\">\nsudo sysctl -w net.ipv4.ip_forward=1<\/div>\n<p>\n2. \uc704 \uba85\ub839\uc744 \uc8fc\uc5b4\ub3c4 \uc11c\ubc84\uac00 \uc7ac \ubd80\ud305 \ub41c\ub2e4\uba74 IP forwarding \uae30\ub2a5\uc774 \ud65c\uc131\ud654 \ub418\uc9c0 \uc54a\uae30 \ub54c\ubb38\uc5d0 \ubd80\ud305 \uc2dc \uc790\ub3d9\uc73c\ub85c IP forwarding\uc774 \uac00\ub2a5\ud558\ub3c4\ub85d \ud574\uc57c\ud558\ub294\ub370 \uc774\ub97c \uc704\ud574\uc11c \/etc\/sysctl.conf \ud30c\uc77c\uc758 #net.ipv4.ip_forward=1 \ubd80\ubd84\uc758 \uc8fc\uc11d \ucc98\ub9ac &#8216;#&#8217;\ub97c \uc5c6\uc560\ub2e4.<\/p>\n<div class=\"txc-textbox\">\nsudo vi \/etc\/sysctl.conf<\/p>\n<p>net.ipv4.ip_forward=1<\/p><\/div>\n<p>\n3. \ud604\uc7ac IP forwarding \uae30\ub2a5\uc774 \ud65c\uc131\ud654 \ub410\ub294\uc9c0 \uc5ec\ubd80\ub97c \ud655\uc778\ud558\ub824\uba74 \uc544\ub798 \uba85\ub839\uc744 \uc785\ub825\ud55c\ub2e4. \uadf8 \uacb0\uacfc\uac00 net.ipv4.ip_forward = 1 \ub85c \ub098\uc624\uba74  \ud65c\uc131\ud654 \ub410\uc74c\uc744 \uc758\ubbf8\ud558\uace0 \uadf8\ub807\uc9c0 \uc54a\uc73c\uba74 \ud65c\uc131\ud654 \ub418\uc9c0 \uc54a\uc558\uc74c\uc744 \uc758\ubbf8\ud55c\ub2e4.<\/p>\n<div class=\"txc-textbox\">\nsudo sysctl net.ipv4.ip_forward<\/div>\n<p>\n4. \uc678\ubd80\ub85c \ubd80\ud130 \ub0b4\ubd80\ub85c \ub4e4\uc5b4\uc624\uac70\ub098 \ub0b4\ubd80\uc5d0\uc11c \uc678\ubd80\ub85c \ub098\uac00\ub294 \ud328\ud0b7\uc744 \uac00\ub2a5\ud558\ub3c4\ub85d \ud558\uae30 \uc704\ud574 \uc544\ub798 \ub450 \uba85\ub839\uc744 \uc785\ub825\ud55c\ub2e4.<\/p>\n<div class=\"txc-textbox\">\nsudo \/sbin\/iptables -P FORWARD ACCEPT<br \/>\nsudo \/sbin\/iptables &#8211;table nat -A POSTROUTING -o <span style=\"font-weight: bold\">eth0<\/span> -j MASQUERADE\n<\/div>\n<p>\n5. \uc704 \uba85\ub839 \uc5ed\uc2dc \ubd80\ud305\uc2dc \uc790\ub3d9\uc73c\ub85c \uc2e4\ud589\ub418\ub3c4\ub85d \ud558\uae30 \uc704\ud574 \/etc\/rc.local \ud30c\uc77c\uc758 exit 0 \uc717 \ubd80\ubd84\uc5d0 \ub450 \ub77c\uc778\uc744 \ucd94\uac00\ud55c\ub2e4.<\/p>\n<div class=\"txc-textbox\">\nsudo vi \/etc\/rc.local<\/p>\n<p>\/sbin\/iptables -P FORWARD ACCEPT<br \/>\n\/sbin\/iptables &#8211;table nat -A POSTROUTING -o <span style=\"font-weight: bold\">eth0<\/span> -j MASQUERADE<\/div>\n<p>\n6. \uc774\uc81c \ub0b4\ubd80 \ub124\ud2b8\uc6cc\ud06c\uc758 \ucef4\ud4e8\ud130\ub4e4\uc5d0\uac8c IP\ub97c \ud560\ub2f9\ud574 \uc904 \uc218 \uc788\ub3c4\ub85d DHCP \uc11c\ubc84\ub97c \uc544\ub798 \uba85\ub839\uc744 \uc774\uc6a9 \uc124\uce58\ud55c\ub2e4.<\/p>\n<div class=\"txc-textbox\">\nsudo apt-get install dhcp3-server<\/div>\n<p>\n7. \uc124\uce58 \ud6c4 \/etc\/dhcp3\/dhcpd.conf\uc758 \ub0b4\uc6a9\uc744 \uc544\ub798\uc640 \uac19\uc774 \uc785\ub825\ud55c\ub2e4. \uc774 \uc124\uc815\uc740 domain Name\uc744 &#8220;mynetwork&#8221;\ub85c, Domain Name Server\ub85c IP \uc8fc\uc18c\uac00 61.41.153.2, 203.248.252.2\uc778 \ub450 \ub300\uc758 \uc11c\ubc84\ub97c \uc0ac\uc6a9\ud558\uba70, \ub0b4\ubd80 \ub124\ud2b8\uc6cc\ud06c\uc5d0 \uc5f0\uacb0\ub41c \ucef4\ud4e8\ud130\uac00 IP \ud560\ub2f9\uc744 \uc694\uad6c\ud560 \uacbd\uc6b0 192.168.1.100\uc5d0\uc11c 192.168.1.254 \uc0ac\uc774\uc758 \uac12 \uc911 \ud558\ub098\ub97c \ud560\ub2f9\ud574 \uc8fc\ub3c4\ub85d \ud55c\ub2e4.<br \/>\n&nbsp;<\/p>\n<div class=\"txc-textbox\">\nsudo vi \/etc\/dhcp3\/dhcpd.conf<\/p>\n<p>ddns-update-style none;<br \/>\n<br \/>\noption domain-name &#8220;<span style=\"font-weight: bold\">mynetwork<\/span>&#8220;;<br \/>\n<br \/>\noption domain-name-servers <span style=\"font-weight: bold\">61.41.153.2, 203.248.252.2<\/span>;<br \/>\n<br \/>\noption routers <span style=\"font-weight: bold\">192.168.1.1<\/span>;<\/p>\n<p>default-lease-time 42300;<br \/>\n<br \/>\nmax-lease-time 84600;<br \/>\n<br \/>\nauthoritative;<\/p>\n<p>log-facility local7;<\/p>\n<p>subnet <span style=\"font-weight: bold\">192.168.1.0<\/span> netmask 255.255.255.0 {<br \/>\n<br \/>\n&nbsp;&nbsp; range <span style=\"font-weight: bold\">192.168.1.100 192.168.1.254<\/span>;<br \/>\n}<\/div>\n<p>\n8. \/etc\/default\/dhcp3-server \ud30c\uc77c\uc758 \ub0b4\uc6a9 \uc911 INTERFACES \ud56d\ubaa9\uc744 \ub0b4\ubd80 \ub124\ud2b8\uc6cc\ud06c\uc5d0 \uc5f0\uacb0\ub41c \ub124\ud2b8\uc6cc\ud06c \uce74\ub4dc\uc758 \uc7a5\uce58\uba85\uc73c\ub85c \uc124\uc815\ud55c\ub2e4.<\/p>\n<div class=\"txc-textbox\">\nsudo vi \/etc\/default\/dhcp3-server <\/p>\n<p>INTERFACES=&#8221;<span style=\"font-weight: bold\">eth1<\/span>&#8220;<\/div>\n<p>\n9. \uc124\uc815\uc744 \uc644\ub8cc\ud55c \ud6c4  DHCP \uc11c\ubc84\ub97c \uc2e4\ud589\ud558\uba74 \uc11c\ubc84\ub97c \uacf5\uc720\uae30\ucc98\ub7fc \uc0ac\uc6a9\ud560 \uc218 \uc788\ub2e4. <\/p>\n<div class=\"txc-textbox\">\nsudo \/etc\/init.d\/dhcp3-server start<\/div>\n","protected":false},"excerpt":{"rendered":"<p>\uc11c\ubc84\ub97c \uc778\ud130\ub137 \uacf5\uc720\uae30\ucc98\ub7fc \uc0ac\uc6a9\ud558\ub824\uba74 IP forwarding\uae30\ub2a5\uc774 \uac00\ub2a5\ud574\uc57c \ud558\uace0 \ub610\ud55c DHCP \uc11c\ubc84\uac00 \uc2e4\ud589\ub418\uace0 \uc788\uc5b4\uc57c\ud55c\ub2e4. \uc544\ub798 \uc608\ub294 Ubuntu Linux\uc5d0 eth0, eth1 \ub450 \uac1c\uc758 \ub124\ud2b8\uc6cc\ud06c \uce74\ub4dc\uac00 \uc124\uce58\ub3fc \uc788\uc73c\uba70, eth0\ub294 \uc778\ud130\ub137\uacfc eth1\uc740 \uc0ac\uc124 IP(192.168.1.xxx)\ub97c \uc0ac\uc6a9\ud558\ub294 \ub0b4\ubd80 \ub124\ud2b8\uc6cc\ud06c\uc640 \uc5f0\uacb0\ub410\uc74c\uc744 \uac00\uc815\ud558\uc600\ub2e4. 1. \ub2e4\uc74c \uba85\ub839\uc744 \uc774\uc6a9 IP forwarding\uc774 \uac00\ub2a5\ud558\ub3c4\ub85d \ud55c\ub2e4. sudo sysctl -w net.ipv4.ip_forward=1 2. \uc704 \uba85\ub839\uc744 \uc8fc\uc5b4\ub3c4 \uc11c\ubc84\uac00 \uc7ac \ubd80\ud305 \ub41c\ub2e4\uba74\u2026 <span class=\"read-more\"><a href=\"http:\/\/www.happyfam.or.kr\/ysoh\/ubuntu-%ec%84%9c%eb%b2%84%eb%a5%bc-%ec%9d%b8%ed%84%b0%eb%84%b7-%ea%b3%b5%ec%9c%a0%ea%b8%b0%eb%a1%9c-%ec%82%ac%ec%9a%a9%ed%95%98%ea%b8%b0\/\">Read More &raquo;<\/a><\/span><\/p>\n","protected":false},"author":3,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"_jetpack_newsletter_access":"","_jetpack_dont_email_post_to_subs":false,"_jetpack_newsletter_tier_id":0,"_jetpack_memberships_contains_paywalled_content":false,"_jetpack_memberships_contains_paid_content":false,"footnotes":"","jetpack_publicize_message":"","jetpack_publicize_feature_enabled":true,"jetpack_social_post_already_shared":false,"jetpack_social_options":{"image_generator_settings":{"template":"highway","default_image_id":0,"font":"","enabled":false},"version":2},"jetpack_post_was_ever_published":false},"categories":[254],"tags":[13,25,26,35],"class_list":["post-3053","post","type-post","status-publish","format-standard","hentry","category-linux","tag-dhcp","tag-ip-forwarding","tag-iptables","tag-nat"],"jetpack_publicize_connections":[],"jetpack_featured_media_url":"","jetpack_sharing_enabled":true,"jetpack_shortlink":"https:\/\/wp.me\/p776QY-Nf","jetpack-related-posts":[],"_links":{"self":[{"href":"http:\/\/www.happyfam.or.kr\/ysoh\/wp-json\/wp\/v2\/posts\/3053","targetHints":{"allow":["GET"]}}],"collection":[{"href":"http:\/\/www.happyfam.or.kr\/ysoh\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"http:\/\/www.happyfam.or.kr\/ysoh\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"http:\/\/www.happyfam.or.kr\/ysoh\/wp-json\/wp\/v2\/users\/3"}],"replies":[{"embeddable":true,"href":"http:\/\/www.happyfam.or.kr\/ysoh\/wp-json\/wp\/v2\/comments?post=3053"}],"version-history":[{"count":0,"href":"http:\/\/www.happyfam.or.kr\/ysoh\/wp-json\/wp\/v2\/posts\/3053\/revisions"}],"wp:attachment":[{"href":"http:\/\/www.happyfam.or.kr\/ysoh\/wp-json\/wp\/v2\/media?parent=3053"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"http:\/\/www.happyfam.or.kr\/ysoh\/wp-json\/wp\/v2\/categories?post=3053"},{"taxonomy":"post_tag","embeddable":true,"href":"http:\/\/www.happyfam.or.kr\/ysoh\/wp-json\/wp\/v2\/tags?post=3053"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}