{"id":761,"date":"2014-06-02T03:08:05","date_gmt":"2014-06-01T19:08:05","guid":{"rendered":"https:\/\/ros.tw\/wp\/?p=761"},"modified":"2015-03-14T16:24:49","modified_gmt":"2015-03-14T08:24:49","slug":"mikrotik-ipsec-site-to-site-%e8%a8%ad%e5%ae%9a%e6%95%99%e5%ad%b8","status":"publish","type":"post","link":"https:\/\/ros.tw\/wp\/?p=761","title":{"rendered":"Mikrotik IPSEC Site-to-Site \u8a2d\u5b9a\u6559\u5b78"},"content":{"rendered":"<h1 style=\"text-align: center;\"><strong><span style=\"color: #ff0000;\">ipsec \u8a2d\u5b9a\u6210\u529f\u5f8c,\u5c31\u5982\u540c\u5e95\u4e0b\u9019\u5f35\u5716<\/span><\/strong><\/h1>\n<h1 style=\"text-align: center;\"><strong><span style=\"color: #ff0000;\">\u96d9\u65b9\u5340\u7db2\u4e4b\u4e0b\u7684\u96fb\u8166\u90fd\u80fd\u900f\u904eipsec\u4e92\u9023<\/span><\/strong><\/h1>\n<p>&nbsp;<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" class=\"alignnone wp-image-762 size-full\" src=\"https:\/\/ros.tw\/wp\/wp-content\/uploads\/2014\/06\/Site-to-site-ipsec-example.png\" alt=\"\" width=\"745\" height=\"400\" srcset=\"https:\/\/ros.tw\/wp\/wp-content\/uploads\/2014\/06\/Site-to-site-ipsec-example.png 745w, https:\/\/ros.tw\/wp\/wp-content\/uploads\/2014\/06\/Site-to-site-ipsec-example-300x161.png 300w\" sizes=\"auto, (max-width: 745px) 100vw, 745px\" \/><\/p>\n<p>&nbsp;<\/p>\n<h2 style=\"text-align: center;\"><strong><span style=\"color: #ff0000;\">\u5f9e\u9019\u958b\u59cb\u770b\u8457\u5716\u8a2d\u5b9a\u5373\u53ef<\/span><\/strong><\/h2>\n<h2 style=\"text-align: center;\"><span style=\"color: #0000ff;\"><strong>\u5e95\u4e0b\u4e09\u5f35\u5716\u662f\u00a0Site A\u9ede \u7684\u8a2d\u5b9a<\/strong><\/span><\/h2>\n<p><a href=\"\/\/ros.tw\/wp\/wp-content\/uploads\/2014\/06\/Site-A-1.gif\"><img loading=\"lazy\" decoding=\"async\" class=\"aligncenter wp-image-758 size-full\" src=\"https:\/\/ros.tw\/wp\/wp-content\/uploads\/2014\/06\/Site-A-1.gif\" alt=\"\" width=\"550\" height=\"434\" \/><\/a><\/p>\n<p>&nbsp;<\/p>\n<p><a href=\"\/\/ros.tw\/wp\/wp-content\/uploads\/2014\/06\/Site-A-2.gif\"><img loading=\"lazy\" decoding=\"async\" class=\"aligncenter wp-image-759 size-full\" src=\"https:\/\/ros.tw\/wp\/wp-content\/uploads\/2014\/06\/Site-A-2.gif\" alt=\"\" width=\"399\" height=\"322\" \/><\/a><\/p>\n<p>&nbsp;<\/p>\n<p><a href=\"\/\/ros.tw\/wp\/wp-content\/uploads\/2014\/06\/Site-A-3.gif\"><img loading=\"lazy\" decoding=\"async\" class=\"aligncenter wp-image-760 size-full\" src=\"https:\/\/ros.tw\/wp\/wp-content\/uploads\/2014\/06\/Site-A-3.gif\" alt=\"\" width=\"564\" height=\"811\" \/><\/a><\/p>\n<p><strong>\u5982\u679c\u4f60\u7684\u9632\u706b\u7246\u6709\u5176\u4ed6\u7684\u8a2d\u5b9a\u53ef\u80fd\u5e72\u64fe\u5230\u9019\u88e1\u7684\u9023\u7dda,\u53ef\u4ee5\u8a66\u8457\u52a0\u5165\u5e95\u4e0b\u7684\u8a2d\u5b9a\u6392\u9664.<\/strong><\/p>\n<pre style=\"color: #666666;\">\/ip firewall nat\r\nadd chain=srcnat action=accept  place-before=0 \\\r\n src-address=192.168.1.0\/24 dst-address=172.16.1.0\/24<\/pre>\n<p>&nbsp;<\/p>\n<h2 style=\"text-align: center;\"><span style=\"color: #0000ff;\"><strong>\u5e95\u4e0b\u4e09\u5f35\u5716\u662f\u00a0Site B\u9ede \u7684\u8a2d\u5b9a<\/strong><\/span><\/h2>\n<p><a href=\"\/\/ros.tw\/wp\/wp-content\/uploads\/2014\/06\/Site-B-1.gif\"><img loading=\"lazy\" decoding=\"async\" class=\"aligncenter wp-image-763 size-full\" src=\"https:\/\/ros.tw\/wp\/wp-content\/uploads\/2014\/06\/Site-B-1.gif\" alt=\"\" width=\"544\" height=\"443\" \/><\/a><\/p>\n<p>&nbsp;<\/p>\n<p><a href=\"\/\/ros.tw\/wp\/wp-content\/uploads\/2014\/06\/Site-B-2.gif\"><img loading=\"lazy\" decoding=\"async\" class=\"aligncenter wp-image-764 size-full\" src=\"https:\/\/ros.tw\/wp\/wp-content\/uploads\/2014\/06\/Site-B-2.gif\" alt=\"\" width=\"387\" height=\"330\" \/><\/a><\/p>\n<p>&nbsp;<\/p>\n<p><a href=\"\/\/ros.tw\/wp\/wp-content\/uploads\/2014\/06\/Site-B-3.gif\"><img loading=\"lazy\" decoding=\"async\" class=\"aligncenter wp-image-765 size-full\" src=\"https:\/\/ros.tw\/wp\/wp-content\/uploads\/2014\/06\/Site-B-3.gif\" alt=\"\" width=\"542\" height=\"796\" \/><\/a><\/p>\n<p><strong>site b\u4e5f\u4e00\u6a23,\u5982\u679c\u4f60\u7684\u9632\u706b\u7246\u6709\u5176\u4ed6\u7684\u8a2d\u5b9a\u53ef\u80fd\u5e72\u64fe\u5230\u9019\u88e1\u7684\u9023\u7dda,\u53ef\u4ee5\u8a66\u8457\u52a0\u5165\u5e95\u4e0b\u7684\u8a2d\u5b9a\u6392\u9664.<\/strong><\/p>\n<pre style=\"color: #666666;\">\/ip firewall nat\r\nadd chain=srcnat action=accept  place-before=0 \\\r\n src-address=172.16.1.0\/24 dst-address=192.168.1.0\/24<\/pre>\n<p>&nbsp;<\/p>\n<h1 style=\"text-align: center;\"><span style=\"color: #ff0000;\"><strong>\u5b8c\u5de5<\/strong><\/span><\/h1>\n<hr \/>\n<p>&nbsp;<\/p>\n<p><strong><span style=\"color: #ff0000;\">\u5e95\u4e0b\u662f\u5b98\u65b9WIKI\u8b1b\u89e3\u7684L2TP+IPSEC\u7684\u8a2d\u5b9a\u65b9\u6cd5, \u64cd\u4f5c\u8ddf\u4e0a\u9762\u4ecb\u7d39\u7684\u4e00\u6a23,<\/span><\/strong><\/p>\n<p><strong><span style=\"color: #ff0000;\">\u53ea\u8981\u628a\u516c\u7db2IP\u63db\u6210L2TP\u7684IP\u5373\u53ef.<\/span><\/strong><\/p>\n<h1 id=\"firstHeading\" class=\"firstHeading\" lang=\"en\"><a href=\"http:\/\/wiki.mikrotik.com\/wiki\/L2TP_%2B_IPSEC_between_2_Mikrotik_routers\" target=\"_blank\"><span dir=\"auto\">L2TP + IPSEC between 2 Mikrotik routers<\/span><\/a><\/h1>\n<p><a href=\"http:\/\/wiki.mikrotik.com\/images\/4\/46\/VPN.png\"><img loading=\"lazy\" decoding=\"async\" class=\"alignnone\" src=\"http:\/\/wiki.mikrotik.com\/images\/4\/46\/VPN.png\" alt=\"File:VPN.png\" width=\"639\" height=\"166\" \/><\/a><\/p>\n<p>&nbsp;<\/p>\n","protected":false},"excerpt":{"rendered":"<p>ipsec \u8a2d\u5b9a\u6210\u529f\u5f8c,\u5c31\u5982\u540c\u5e95\u4e0b\u9019\u5f35\u5716 \u96d9\u65b9\u5340\u7db2\u4e4b\u4e0b\u7684\u96fb\u8166\u90fd\u80fd\u900f\u904eipsec\u4e92 &hellip; <a href=\"https:\/\/ros.tw\/wp\/?p=761\">\u95b1\u8b80\u5168\u6587 <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":{"footnotes":""},"categories":[1],"tags":[],"class_list":["post-761","post","type-post","status-publish","format-standard","hentry","category-ros"],"_links":{"self":[{"href":"https:\/\/ros.tw\/wp\/index.php?rest_route=\/wp\/v2\/posts\/761","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/ros.tw\/wp\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/ros.tw\/wp\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/ros.tw\/wp\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/ros.tw\/wp\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=761"}],"version-history":[{"count":7,"href":"https:\/\/ros.tw\/wp\/index.php?rest_route=\/wp\/v2\/posts\/761\/revisions"}],"predecessor-version":[{"id":1280,"href":"https:\/\/ros.tw\/wp\/index.php?rest_route=\/wp\/v2\/posts\/761\/revisions\/1280"}],"wp:attachment":[{"href":"https:\/\/ros.tw\/wp\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=761"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/ros.tw\/wp\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=761"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/ros.tw\/wp\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=761"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}