{"id":138,"date":"2010-11-03T17:39:55","date_gmt":"2010-11-03T09:39:55","guid":{"rendered":"http:\/\/cowman-chiang.no-ip.org\/wordpress\/?p=138"},"modified":"2023-10-31T15:48:43","modified_gmt":"2023-10-31T07:48:43","slug":"openvpn-%e8%a7%a3%e6%b1%ba%e5%8b%95%e6%85%8bip%e7%9a%84%e5%95%8f%e9%a1%8c","status":"publish","type":"post","link":"https:\/\/cowmanchiang.me\/wp\/?p=138","title":{"rendered":"OpenVPN: \u89e3\u6c7a\u52d5\u614bip\u7684\u554f\u984c"},"content":{"rendered":"<p>\u70ba\u4e86\u8981\u4f7f\u5f97VPN Server\u53ef\u4ee5\u540c\u6642\u639b\u5169\u500bip<br \/>\n(\u6709\u9ede\u7dda\u8def\u5099\u63f4\u7684\u610f\u5473\uff0c\u4e0d\u904e\u7576\u4e3b\u8981gateway\u6c92\u4e86\uff0c\u5176\u5be6\u4e5f\u63b0\u4e86\uff0c\u5047\u5099\u63f4\u554a)<\/p>\n<p>\u9019\u6642\u5019\u5982\u679cclient\u9023\u7dda\u5230server\u4e3b\u8981\u7684ip\u6642\uff0c\u56e0\u70ba\u56de\u53bb\u7684\u9810\u8a2d\u8def\u7531\u4e00\u6a23\uff0c\u6240\u4ee5\u6703\u6b63\u5e38<br \/>\n\u5982\u679c\u9023\u7dda\u7684\u662f\u6b21\u8981\u7684ip\u6642\uff0c\u6703\u56e0\u70ba\u4f86\u7684\u8def\u8ddf\u56de\u53bb\u7684\u8def\u4e0d\u4e00\u6a23\u5c0e\u81f4TLS\u4ea4\u63e1\u932f\u8aa4<br \/>\n\u9019\u6642\u5019\u53ef\u4ee5\u5728client.conf\u5167\u52a0\u5165&#8221;float&#8221;\u5c31\u89e3\u6c7a\u4e86<br \/>\n\u4ee5\u4e0b\u662f\u539f\u5ee0\u7684\u89e3\u91cb<\/p>\n<p><code>--float<br \/>\nAllow remote peer to change its IP address and\/or port number, such as due to DHCP (this is the default if --remote is not used). --float when specified with --remote allows an OpenVPN session to initially connect to a peer at a known address, however if packets arrive from a new address and pass all authentication tests, the new address will take control of the session. This is useful when you are connecting to a peer which holds a dynamic address such as a dial-in user or DHCP client.<br \/>\nEssentially, --float tells OpenVPN to accept authenticated packets from any address, not only the address which was specified in the --remote option<\/code><\/p>\n<p>Source: <a href=\"http:\/\/openvpn.net\/index.php\/open-source\/documentation\/manuals\/65-openvpn-20x-manpage.html\">http:\/\/openvpn.net\/index.php\/open-source\/documentation\/manuals\/65-openvpn-20x-manpage.html<\/a><\/p>\n","protected":false},"excerpt":{"rendered":"<p>\u70ba\u4e86\u8981\u4f7f\u5f97VPN Server\u53ef\u4ee5\u540c\u6642\u639b\u5169\u500bip (\u6709\u9ede\u7dda\u8def\u5099\u63f4\u7684\u610f\u5473\uff0c\u4e0d\u904e\u7576\u4e3b\u8981gateway\u6c92\u4e86\uff0c\u5176\u5be6\u4e5f\u63b0\u4e86\uff0c\u5047\u5099\u63f4\u554a) \u9019\u6642\u5019\u5982\u679cclient\u9023\u7dda\u5230server\u4e3b\u8981\u7684ip\u6642\uff0c\u56e0\u70ba\u56de\u53bb\u7684\u9810\u8a2d\u8def\u7531\u4e00\u6a23\uff0c\u6240\u4ee5\u6703\u6b63\u5e38 \u5982\u679c\u9023\u7dda\u7684\u662f\u6b21\u8981\u7684ip\u6642\uff0c\u6703\u56e0\u70ba\u4f86\u7684\u8def\u8ddf\u56de\u53bb\u7684\u8def\u4e0d\u4e00\u6a23\u5c0e\u81f4TLS\u4ea4\u63e1\u932f\u8aa4 \u9019\u6642\u5019\u53ef\u4ee5\u5728client.conf\u5167\u52a0\u5165&#8221;float&#8221;\u5c31\u89e3\u6c7a\u4e86 \u4ee5\u4e0b\u662f\u539f\u5ee0\u7684\u89e3\u91cb &#8211;float Allow remote peer to change its IP address and\/or port number, such as due to DHCP (this is the default if &#8211;remote is not used). &#8211;float when specified with &#8211;remote allows an &hellip; <a href=\"https:\/\/cowmanchiang.me\/wp\/?p=138\">Continue reading <span class=\"meta-nav\">&rarr;<\/span><\/a><\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"closed","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[69],"tags":[],"class_list":["post-138","post","type-post","status-publish","format-standard","hentry","category-openvpn"],"_links":{"self":[{"href":"https:\/\/cowmanchiang.me\/wp\/index.php?rest_route=\/wp\/v2\/posts\/138","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/cowmanchiang.me\/wp\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/cowmanchiang.me\/wp\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/cowmanchiang.me\/wp\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/cowmanchiang.me\/wp\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=138"}],"version-history":[{"count":1,"href":"https:\/\/cowmanchiang.me\/wp\/index.php?rest_route=\/wp\/v2\/posts\/138\/revisions"}],"predecessor-version":[{"id":2320,"href":"https:\/\/cowmanchiang.me\/wp\/index.php?rest_route=\/wp\/v2\/posts\/138\/revisions\/2320"}],"wp:attachment":[{"href":"https:\/\/cowmanchiang.me\/wp\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=138"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/cowmanchiang.me\/wp\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=138"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/cowmanchiang.me\/wp\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=138"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}