{"id":25,"date":"2009-04-09T06:59:02","date_gmt":"2009-04-09T06:59:02","guid":{"rendered":"http:\/\/www.houquner.com\/?p=69"},"modified":"2009-04-09T06:59:02","modified_gmt":"2009-04-09T06:59:02","slug":"openbsd%e4%b8%8b%e7%ad%96%e7%95%a5%e8%b7%af%e7%94%b1%e7%9a%84%e5%ae%9e%e7%8e%b0","status":"publish","type":"post","link":"https:\/\/www.houquner.com\/index.php\/archives\/25","title":{"rendered":"openbsd\u4e0b\u7b56\u7565\u8def\u7531\u7684\u5b9e\u73b0"},"content":{"rendered":"<p>\u4eceIP\u5730\u5740A.A.A.A\u5230\u53e6\u4e00\u4e2a\u5730\u5740B.B.B.B\u7684\u4e0b\u4e00\u6761\u8def\u7531\u5730\u5740C.C.C.C<br \/>\nlinux\u4e0b\u6709ip route2 \u5b9e\u73b0 ;\u5728openbsd\u4e0b\u5e94\u8be5\u8fd9\u6837\u5b9e\u73b0<br \/>\n?pass out log on em0 route-to (em0 C.C.C.C) inet from A.A.A.A to B.B.B.B flags S\/SA keep state<br \/>\n\u5373\u53ef.<\/p>\n<p>? If a packet matches a rule with a route option set, the packet filter<br \/>\n will route the packet according to the type of route option.? When such a<br \/>\n rule creates state, the route option is also applied to all packets<br \/>\n matching the same connection.<br \/>\n fastroute<br \/>\n The fastroute option does a normal route lookup to find the next<br \/>\n hop for the packet.<\/p>\n<p>route-to<br \/>\n The route-to option routes the packet to the specified interface<br \/>\n with an optional address for the next hop.? When a route-to rule<br \/>\n creates state, only packets that pass in the same direction as the<br \/>\n filter rule specifies will be routed in this way.? Packets passing<br \/>\n in the opposite direction (replies) are not affected and are routed<br \/>\n normally.<\/p>\n<p>reply-to<br \/>\n The reply-to option is similar to route-to, but routes packets that<br \/>\n pass in the opposite direction (replies) to the specified inter-<br \/>\n face.? Opposite direction is only defined in the context of a state<br \/>\n entry, and reply-to is useful only in rules that create state.? It<br \/>\n can be used on systems with multiple external connections to route<br \/>\n all outgoing packets of a connection through the interface the in-<br \/>\n coming connection arrived through (symmetric routing enforcement).<\/p>\n<p>dup-to<br \/>\n The dup-to option creates a duplicate of the packet and routes it<br \/>\n like route-to.? The original packet gets routed as it normally<br \/>\n would.<\/p>\n<p>\u8f6c\u8f7d\u8bf7\u6ce8\u660e\uff1a<a href=\"https:\/\/www.houquner.com\">Kermit\u7684\u7f51\u7ad9<\/a> &raquo; <a href=\"https:\/\/www.houquner.com\/index.php\/archives\/25\">openbsd\u4e0b\u7b56\u7565\u8def\u7531\u7684\u5b9e\u73b0<\/a><\/p>","protected":false},"excerpt":{"rendered":"<p>\u4eceIP\u5730\u5740A.A.A.A\u5230\u53e6\u4e00\u4e2a\u5730\u5740B.B.B.B\u7684\u4e0b\u4e00\u6761\u8def\u7531\u5730\u5740C.C.C.C linux\u4e0b\u6709ip route2 \u5b9e\u73b0 ;\u5728openbsd\u4e0b\u5e94\u8be5\u8fd9\u6837\u5b9e\u73b0 ?pass out log on em0 route-to (em0 C.C.C.C) ine [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[3],"tags":[],"class_list":["post-25","post","type-post","status-publish","format-standard","hentry","category-technology"],"_links":{"self":[{"href":"https:\/\/www.houquner.com\/index.php\/wp-json\/wp\/v2\/posts\/25"}],"collection":[{"href":"https:\/\/www.houquner.com\/index.php\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.houquner.com\/index.php\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.houquner.com\/index.php\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.houquner.com\/index.php\/wp-json\/wp\/v2\/comments?post=25"}],"version-history":[{"count":0,"href":"https:\/\/www.houquner.com\/index.php\/wp-json\/wp\/v2\/posts\/25\/revisions"}],"wp:attachment":[{"href":"https:\/\/www.houquner.com\/index.php\/wp-json\/wp\/v2\/media?parent=25"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.houquner.com\/index.php\/wp-json\/wp\/v2\/categories?post=25"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.houquner.com\/index.php\/wp-json\/wp\/v2\/tags?post=25"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}