{"id":22,"date":"2010-04-17T17:23:36","date_gmt":"2010-04-18T02:23:36","guid":{"rendered":"\/blog\/?p=22"},"modified":"2023-09-21T09:41:25","modified_gmt":"2023-09-21T00:41:25","slug":"openbsd-bridge-%eb%b0%a9%ed%99%94%eb%b2%bd-%ec%85%8b%ed%8c%85","status":"publish","type":"post","link":"https:\/\/hasu0707.duckdns.org\/blog\/?p=22","title":{"rendered":"OpenBSD Bridge \ubc29\ud654\ubcbd \uc14b\ud305"},"content":{"rendered":"\n<P>OpenBSD\ub97c Bridge \ubc29\ud654\ubcbd\uc73c\ub85c \ub3cc\ub824\ubcf4\uc790.<\/P>\n<P>&nbsp;<\/P>\n<P>\uc6b0\uc120 \ub79c\uce74\ub4dc\ub294 \uc544\ub798\uc640 \uac19\uc774 3\uc7a5\uc774 \uc788\ub2e4\uace0 \uac00\uc815\ud55c\ub2e4.<\/P>\n<P>&nbsp;<\/P>\n<P>fxp0 : \uacf5\uc778\uc8fc\uc18c\uc6a9 (125.1.1.1, NM:255.255.255.0) &lt;--&gt; &nbsp;Router(125.1.1.254)<\/P>\n<P>fxp1 : \uc0ac\uc124\ub124\ud2b8\uc6cc\ud06c\uc6a9 (192.168.0.254, NM:255.255.255.0) &lt;--&gt; \uc0ac\uc124\ub124\ud2b8\uc6cc\ud06c\uc6a9 Switch<\/P>\n<P>fxp2 : DMZ \ub124\ud2b8\uc6cc\ud06c\uc6a9 (100.100.100.100, NM:255.255.255.255) &lt;--&gt; DMZ\ub124\ud2b8\uc6cc\ud06c\uc6a9 Switch<\/P>\n<P>&nbsp;<\/P>\n<P>\uc704\uc5d0\uc11c \ubcf4\uba74 DMZ\ub124\ud2b8\uc6cc\ud06c\uac00 \uacf5\uc778\ub124\ud2b8\uc6cc\ud06c\uc640 \ub3d9\uc77c\ud55c \uac83\uc744 \ubcfc \uc218 \uc788\ub2e4.<\/P>\n<P>\ubcf4\ud1b5 DMZ\ub294 \uc0ac\uc124\ub124\ud2b8\uc6cc\ud06c\ub85c \uad6c\uc131\ud558\uc5ec 1:1 NAT \ub610\ub294 Redirect NAT\ub97c \uc0ac\uc6a9\ud558\ub294 \uac83\uc774<\/P>\n<P>\ubcf4\ud1b5\uc774\ub098 \uc6b0\ub9ac\ub294 Bridge\uc758 \uc7a5\uc810\uc744 \ucd5c\ub300\ud55c \uc0b4\ub824\uc11c DMZ\ub124\ud2b8\uc6cc\ud06c \uc124\uc815\uc744<\/P>\n<P>\ubc29\ud654\ubcbd\uc774 \uc5c6\ub294 \ub4ef \ud22c\uba85\ud558\uac8c \uc124\uc815\ud55c\ub2e4.<\/P>\n<P>\uc704\uc640 \uac19\uc774 \ud558\uba74 DMZ \ub124\ud2b8\uc6cc\ud06c\uc5d0 \uc788\ub294 \uc11c\ubc84\ub4e4\uc740 \uac8c\uc774\ud2b8\uc6e8\uc774\ub97c 125.1.1.254(Router)\ub85c<\/P>\n<P>\uc124\uc815\ud55c\ub2e4. \ub9cc\uc77c \uc7a5\ube44\uac00 bypass \uc9c0\uc6d0\ub418\ub294 \uc7a5\ube44\ub77c\uba74 \ubc29\ud654\ubcbd\uc774 \uc8fd\uac70\ub098<\/P>\n<P>\ub2e4\uc6b4 \ub418\ub354\ub77c\ub3c4 DMZ\ub124\ud2b8\uc6cc\ud06c\uc758 \uc11c\ubc84\ub4e4\uc740 bypass\uc5d0 \uc758\ud574 Router\uc640 \ubc14\ub85c \uc5f0\uacb0\ub418\uc5b4<\/P>\n<P>\uc8fd\uc9c0\uc54a\uace0 \uacc4\uc18d \ub3cc\uc544\uac04\ub2e4. \ubb3c\ub860, \uc774 \uc0c1\ud669\uc774 \ub418\uba74 \ubc29\ud654\ubcbd\uc758 \ubcf4\ud638\ub294 \ubc1b\uc744 \uc218 \uc5c6\ub2e4.<\/P>\n<P>100.100.100.100\/32 \ub294 \uc758\ubbf8\uc5c6\ub294 \uc8fc\uc18c\uc774\ub2e4. bridge\uac00 \uc81c\ub300\ub85c \ub3d9\uc791\ud558\ub824\uba74<\/P>\n<P>\ub79c\uce74\ub4dc\uc5d0 \uc8fc\uc18c\uac00 \uc788\uc5b4\uc57c \ub418\uae30 \ub54c\ubb38\uc5d0 \uc544\ubb34 \uc8fc\uc18c\ub098 \uc900 \uac83\uc774\ub2e4.<\/P>\n<P>&nbsp;<\/P>\n<P>\uc6b0\uc120 \uc704\uc758 \ub79c\uce74\ub4dc 3\uc7a5\uc5d0\ub294 \ubaa8\ub450 \uc8fc\uc18c\uac00 \uc788\uc5b4\uc57c \ud55c\ub2e4.<\/P>\n<P>DMZ\ub124\ud2b8\uc6cc\ud06c\uc6a9 \ub79c\uce74\ub4dc \uc8fc\uc18c\ub294 \ubc18\ub4dc\uc2dc \uacf5\uc778 \uc8fc\uc18c\uac00 \uc544\ub2c8\uc5b4\ub3c4 \uc0c1\uad00\uc5c6\ub2e4.<\/P>\n<P>\uc544\ubb34\uac83\uc774\ub098 \uc8fc\uba74 \ub41c\ub2e4.<\/P>\n<P>&nbsp;<\/P>\n<P>\uadf8\ub7fc \uc8fc\uc18c\uac00 \uc14b\ud305\ub418\uc5c8\ub2e4\uace0 \uac00\uc815\ud558\uace0 \uc544\ub798\uc640 \uac19\uc774 Bridge\ub97c \uc124\uc815\ud55c\ub2e4.<\/P>\n<P>&nbsp;<\/P>\n<P># brconfig bridge0 add fxp0 add fxp1 add fxp2 up<\/P>\n<P>&nbsp;<\/P>\n<P>\uc774\ub807\uac8c \ud558\uba74 fxp0,1,2\uac00 \ubaa8\ub450 \ud558\ub098\uc758 \uc2a4\uc704\uce58\ucc98\ub7fc \ub3d9\uc791\ud55c\ub2e4.<\/P>\n<P>\uc11c\ub85c\uc11c\ub85c ping \ud14c\uc2a4\ud2b8\ub97c \ud574\ubcf4\uba74 \uc798 \ub098\uac08 \uac83\uc774\ub2e4. \uadf8\ub7ec\uba74\uc11c<\/P>\n<P>\uc0ac\uc124\ub124\ud2b8\uc6cc\ud06c\ub294 pfctl\ub85c NAT\ub97c \uc124\uc815\ud558\uc5ec \uc0ac\uc124\ub124\ud2b8\uc6cc\ud06c\ub4e4\uc774<\/P>\n<P>\uc778\ud130\ub137\uc744 \uc0ac\uc6a9\ud560 \uc218 \uc788\uac8c \ud55c\ub2e4.<\/P>\n<P>DMZ\ub124\ud2b8\uc6cc\ud06c\ub294 \uacf5\uc778\uc8fc\uc18c\uc774\uae30 \ub54c\ubb38\uc5d0 NAT\ub97c \uc124\uc815\ud560 \ud544\uc694\ub294 \uc5c6\ub2e4.<\/P>\n<P>&nbsp;<\/P>\n<P>Bridge \ubc29\ud654\ubcbd\uc740 \ubcf4\ud1b5 \ub79c\uce74\ub4dc\uc5d0 \uc8fc\uc18c\uac00 \uc5c6\ub294\uac83\uc774 \ubcf4\ud1b5\uc774\ub098<\/P>\n<P>\uc8fc\uc18c\ub97c \uc8fc\uba74 \ub354\uc6b1 \uc720\uc5f0\ud558\uac8c \uc0ac\uc6a9\ud560 \uc218 \uc788\ub2e4.<\/P>\n<P>&nbsp;<\/P>\n<P>\ubcf4\uc548\uc124\uc815\uc740 Bridge\ub97c \uc758\uc2dd\ud558\uc9c0 \ub9d0\uace0 \ub298 \ud558\ub358\ub300\ub85c \ud558\uba74 \ub41c\ub2e4.<\/P>\n<P>\uc5b4\ub514\uc11c \uc5b4\ub514\ub85c \uac00\ub294 \ud328\ud0b7\uc740 \ucc28\ub2e8\ud558\uace0 \uc5b4\ub514\uc11c \uc5b4\ub514\ub85c \uac00\ub294 \ud328\ud0b7\uc740 \ud5c8\uc6a9\ud558\uace0...<\/P>\n<P>\uc2a4\uc704\uce58\ucc98\ub7fc \ub3d9\uc791\ud558\uc9c0\ub9cc pfctl \ubcf4\uc548\uc124\uc815\uc740 \ubaa8\ub450 \uc124\uc815\uac00\ub2a5\ud558\ub2e4.<\/P>\n<P>\n","protected":false},"excerpt":{"rendered":"<p>OpenBSD\ub97c Bridge \ubc29\ud654\ubcbd\uc73c\ub85c \ub3cc\ub824\ubcf4\uc790. &nbsp; \uc6b0\uc120 \ub79c\uce74\ub4dc\ub294 \uc544\ub798\uc640 \uac19\uc774 3\uc7a5\uc774 \uc788\ub2e4\uace0 \uac00\uc815\ud55c\ub2e4. &nbsp; fxp0 : \uacf5\uc778\uc8fc\uc18c\uc6a9 (125.1.1.1, NM:255.255.255.0) &lt;&#8211;&gt; &nbsp;Router(125.1.1.254) fxp1 : \uc0ac\uc124\ub124\ud2b8\uc6cc\ud06c\uc6a9 (192.168.0.254, NM:255.255.255.0) &lt;&#8211;&gt; \uc0ac\uc124\ub124\ud2b8\uc6cc\ud06c\uc6a9 Switch fxp2 : DMZ \ub124\ud2b8\uc6cc\ud06c\uc6a9 (100.100.100.100, NM:255.255.255.255) &lt;&#8211;&gt; DMZ\ub124\ud2b8\uc6cc\ud06c\uc6a9 Switch &nbsp; \uc704\uc5d0\uc11c \ubcf4\uba74 DMZ\ub124\ud2b8\uc6cc\ud06c\uac00 \uacf5\uc778\ub124\ud2b8\uc6cc\ud06c\uc640 \ub3d9\uc77c\ud55c \uac83\uc744 \ubcfc \uc218 \uc788\ub2e4. \ubcf4\ud1b5 DMZ\ub294 \uc0ac\uc124\ub124\ud2b8\uc6cc\ud06c\ub85c \uad6c\uc131\ud558\uc5ec 1:1 NAT \ub610\ub294 Redirect [&hellip;]<\/p>\n","protected":false},"author":2,"featured_media":0,"comment_status":"closed","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"_import_markdown_pro_load_document_selector":0,"_import_markdown_pro_submit_text_textarea":"","site-sidebar-layout":"default","site-content-layout":"","ast-site-content-layout":"","site-content-style":"default","site-sidebar-style":"default","ast-global-header-display":"","ast-banner-title-visibility":"","ast-main-header-display":"","ast-hfb-above-header-display":"","ast-hfb-below-header-display":"","ast-hfb-mobile-header-display":"","site-post-title":"","ast-breadcrumbs-content":"","ast-featured-img":"","footer-sml-layout":"","theme-transparent-header-meta":"","adv-header-id-meta":"","stick-header-meta":"","header-above-stick-meta":"","header-main-stick-meta":"","header-below-stick-meta":"","astra-migrate-meta-layouts":"default","ast-page-background-enabled":"default","ast-page-background-meta":{"desktop":{"background-color":"","background-image":"","background-repeat":"repeat","background-position":"center center","background-size":"auto","background-attachment":"scroll","background-type":"","background-media":"","overlay-type":"","overlay-color":"","overlay-opacity":"","overlay-gradient":""},"tablet":{"background-color":"","background-image":"","background-repeat":"repeat","background-position":"center center","background-size":"auto","background-attachment":"scroll","background-type":"","background-media":"","overlay-type":"","overlay-color":"","overlay-opacity":"","overlay-gradient":""},"mobile":{"background-color":"","background-image":"","background-repeat":"repeat","background-position":"center center","background-size":"auto","background-attachment":"scroll","background-type":"","background-media":"","overlay-type":"","overlay-color":"","overlay-opacity":"","overlay-gradient":""}},"ast-content-background-meta":{"desktop":{"background-color":"var(--ast-global-color-5)","background-image":"","background-repeat":"repeat","background-position":"center center","background-size":"auto","background-attachment":"scroll","background-type":"","background-media":"","overlay-type":"","overlay-color":"","overlay-opacity":"","overlay-gradient":""},"tablet":{"background-color":"var(--ast-global-color-5)","background-image":"","background-repeat":"repeat","background-position":"center center","background-size":"auto","background-attachment":"scroll","background-type":"","background-media":"","overlay-type":"","overlay-color":"","overlay-opacity":"","overlay-gradient":""},"mobile":{"background-color":"var(--ast-global-color-5)","background-image":"","background-repeat":"repeat","background-position":"center center","background-size":"auto","background-attachment":"scroll","background-type":"","background-media":"","overlay-type":"","overlay-color":"","overlay-opacity":"","overlay-gradient":""}},"footnotes":""},"categories":[39],"tags":[],"class_list":["post-22","post","type-post","status-publish","format-standard","hentry","category-os_linux_unix_macos"],"_links":{"self":[{"href":"https:\/\/hasu0707.duckdns.org\/blog\/index.php?rest_route=\/wp\/v2\/posts\/22","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/hasu0707.duckdns.org\/blog\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/hasu0707.duckdns.org\/blog\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/hasu0707.duckdns.org\/blog\/index.php?rest_route=\/wp\/v2\/users\/2"}],"replies":[{"embeddable":true,"href":"https:\/\/hasu0707.duckdns.org\/blog\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=22"}],"version-history":[{"count":0,"href":"https:\/\/hasu0707.duckdns.org\/blog\/index.php?rest_route=\/wp\/v2\/posts\/22\/revisions"}],"wp:attachment":[{"href":"https:\/\/hasu0707.duckdns.org\/blog\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=22"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/hasu0707.duckdns.org\/blog\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=22"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/hasu0707.duckdns.org\/blog\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=22"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}