{"id":3425,"date":"2019-03-28T22:46:26","date_gmt":"2019-03-28T14:46:26","guid":{"rendered":"https:\/\/tao0.date\/?p=3425"},"modified":"2023-11-18T21:19:02","modified_gmt":"2023-11-18T13:19:02","slug":"wg-yijiananzhuang","status":"publish","type":"post","link":"https:\/\/tao0.date\/?p=3425","title":{"rendered":"WG \u4e00\u952e\u5b89\u88c5"},"content":{"rendered":"<p><code>yum install -y wget &amp;&amp; wget https:\/\/raw.githubusercontent.com\/atrandys\/wireguard\/master\/wireguard_install.sh &amp;&amp; chmod +x wireguard_install.sh &amp;&amp; .\/wireguard_install.sh<\/code><\/p>\n<p><code>.\/wireguard_install.sh<\/code><\/p>\n<p><code>lsmod | grep wireguard<\/code><\/p>\n<p>&nbsp;<\/p>\n<table id=\"pid3457\" class=\"plhin\" summary=\"pid3457\" cellspacing=\"0\" cellpadding=\"0\">\n<tbody>\n<tr>\n<td class=\"plc\">\n<div class=\"post_con\">\n<div class=\"pct\">\n<div class=\"pcb\">\n<div class=\"t_fsz\">\n<table cellspacing=\"0\" cellpadding=\"0\">\n<tbody>\n<tr>\n<td id=\"postmessage_3457\" class=\"t_f\"><strong><span style=\"font-size: large;\"><span style=\"color: #ff0000;\">\u7cfb\u7edf\u8981\u6c42<\/span><\/span><\/strong><\/p>\n<hr class=\"l\" \/>\n<p>CentOS 7+<br \/>\nVPS\u67b6\u6784\u5fc5\u987b\u662fKVM<br \/>\n\u7ecf\u8fc7\u6d4b\u8bd5\uff0c<a href=\"https:\/\/www.bbaaz.com\/thread-176-1-1.html\" target=\"_blank\" rel=\"noopener noreferrer\">Hostwinds<\/a>\u7684VPS\u53ef\u4ee5\u5b8c\u7f8e\u8fd0\u884c\u5b89\u88c5<br \/>\ncentos7\u7cfb\u7edf\u5927\u90e8\u5206\u5185\u6838\u90fd\u662f3.10\uff0c\u4e0d\u80fd\u6b63\u786e\u5b89\u88c5\uff0c\u6240\u4ee5\u9700\u8981\u5347\u7ea7<\/p>\n<p><span style=\"font-size: large;\"><span style=\"color: #ff0000;\"><strong>\u5b89\u88c5\u6b65\u9aa4<\/strong><\/span><\/span><\/p>\n<hr class=\"l\" \/>\n<div align=\"left\">\u4f7f\u7528ssh\u5de5\u5177\u8fde\u63a5VPS\u767b\u5f55root\u5e10\u53f7\uff0c\u6267\u884c\u4e0b\u9762\u547d\u4ee4\uff1a<\/div>\n<div align=\"left\">\n<div class=\"blockcode\">\n<div id=\"code_kK8\">\n<ol>\n<li>yum install -y wget &amp;&amp; wget https:\/\/makeai.cn\/wireguard\/wireguard_install.sh &amp;&amp; chmod +x wireguard_install.sh &amp;&amp; .\/wireguard_install.sh<\/li>\n<\/ol>\n<\/div>\n<p><em>\u590d\u5236\u4ee3\u7801<\/em><\/p>\n<\/div>\n<\/div>\n<div align=\"left\">\u6267\u884c\u811a\u672c\u4f1a\u5f39\u51fa\u9009\u62e9\u9879\uff0c\u9996\u5148\u6211\u4eec\u9009\u62e9\u00a0<strong><span style=\"color: #ff0000;\">1\u00a0<\/span><\/strong>\u5b89\u88c5\u5185\u6838\uff08\u5982\u4e0b\u56fe\u6240\u793a\uff09\uff0c\u5b89\u88c5\u8fc7\u7a0b\u4e2d\u9700\u8981\u51e0\u5206\u949f\uff0c\u5b89\u88c5\u8fc7\u7a0b\u4e2d\u4e0d\u8981\u6309\u4efb\u4f55\u6309\u952e\u3002<\/div>\n<div align=\"left\"><img decoding=\"async\" id=\"aimg_525\" class=\"zoom\" src=\"https:\/\/tao0.date\/wp-content\/uploads\/2019\/12\/5e5e5-231410j4bca4etazeecg6e.jpg\" width=\"303\" \/><\/div>\n<div align=\"left\">\u7b49\u51e0\u5206\u949f\u4f1a\u63d0\u793a\u4f60\u662f\u5426\u91cd\u542f\u670d\u52a1\u5668\uff0c\u8f93\u5165\u00a0<span style=\"color: #ff0000;\"><strong>Y<\/strong><\/span>\uff0c\u7136\u540e\u56de\u8f66\u5c31\u4f1a\u91cd\u542fVPS\uff08\u5982\u4e0b\u56fe\u6240\u793a\uff09\uff0c\u540c\u65f6SSH\u4f1a\u81ea\u52a8\u65ad\u5f00\u3002<\/div>\n<div align=\"left\"><img decoding=\"async\" id=\"aimg_526\" class=\"zoom\" src=\"https:\/\/tao0.date\/wp-content\/uploads\/2019\/12\/43062-231547s7p4k94he8kw8o7h.jpg\" width=\"591\" \/><\/div>\n<div align=\"left\">\u91cd\u542f\u5b8c\u6bd5\u540e\uff0c\u4f7f\u7528SSH\u8fde\u63a5\u5de5\u5177\u91cd\u65b0\u8fde\u63a5VPS\uff0c\u6267\u884c\u4e0b\u9762\u547d\u4ee4\uff1a<\/div>\n<div align=\"left\">\n<div class=\"blockcode\">\n<div id=\"code_Lbn\">\n<ol>\n<li>.\/wireguard_install.sh<\/li>\n<\/ol>\n<\/div>\n<p><em>\u590d\u5236\u4ee3\u7801<\/em><\/p>\n<\/div>\n<p>\u6267\u884c\u547d\u4ee4\u540e\uff0c\u6211\u4eec\u9009\u62e9\u00a0<span style=\"color: #ff0000;\"><strong>2\u00a0<\/strong><\/span>\u5b89\u88c5wireguard\uff0c\u5b89\u88c5\u8fc7\u7a0b\u4e2d\u9700\u8981\u7b49\u51e0\u5206\u949f\uff0c\u5b89\u88c5\u5b8c\u6210\u670d\u52a1\u5373\u81ea\u884c\u542f\u52a8\u4e86\u3002<\/p>\n<\/div>\n<div align=\"left\"><span style=\"color: #ff0000;\">\u6ce8\uff1a\u5b89\u88c5\u6210\u529f\u540e\u5f97\u5230\u7684\u4e8c\u7ef4\u7801\u6700\u597d\u622a\u56fe\u4fdd\u5b58\u4e0b\uff0c\u4ee5\u540e\u8981\u7528\u3002<\/span><\/div>\n<div align=\"left\"><span style=\"font-size: large;\"><span style=\"color: #ff0000;\"><strong>\u5bfc\u51fa\u914d\u7f6e\u6587\u4ef6<\/strong><\/span><\/span><\/div>\n<hr class=\"l\" \/>\n<div align=\"left\">\u7528SSH\u8fde\u63a5\u670d\u52a1\u5668\u6267\u884c\u4ee5\u4e0b\u547d\u4ee4\u663e\u793a\u51fa<span style=\"color: #555555;\"><span style=\"font-family: &amp;quot;\">client.conf\u6587\u4ef6\u914d\u7f6e\u4fe1\u606f<\/span><\/span><\/div>\n<div align=\"left\">\n<div class=\"blockcode\">\n<div id=\"code_Ep3\">\n<ol>\n<li>cat \/etc\/wireguard\/client.conf<\/li>\n<\/ol>\n<\/div>\n<p><em>\u590d\u5236\u4ee3\u7801<\/em><\/p>\n<\/div>\n<\/div>\n<div align=\"left\">\u7136\u540e\u5728\u672c\u5730\u7535\u8111\u684c\u9762\u65b0\u5efa\u4e00\u4e2a<span style=\"color: #555555;\"><span style=\"font-family: &amp;quot;\">client.conf\u6587\u4ef6\uff0c\u4e0d\u4f1a\u5efa\u8fd9\u4e2a\u6587\u4ef6\u7684\u53ef\u4ee5\u4ece\u8fd9\u91cc\u4e0b\u8f7d\u4e2a\u8fd9\u4e2a\u6587\u4ef6\u6a21\u677f\uff0c\u4e0b\u8f7d\u540e\u89e3\u538b\u5230\u684c\u9762\u7528\u8bb0\u4e8b\u672c\u7b49\u5de5\u5177\u6253\u5f00\uff1a<\/span><\/span>\u00a0<img decoding=\"async\" class=\"vm\" src=\"https:\/\/tao0.date\/wp-content\/uploads\/2019\/12\/56a37-zip.gif\" alt=\"\" border=\"0\" \/>\u00a0<span id=\"attach_538\"><\/span><\/div>\n<div align=\"left\"><span style=\"color: #555555;\"><span style=\"font-family: &amp;quot;\">\u7136\u540e\u628a\u663e\u793a\u51fa\u6765\u7684\u5185\u5bb9\u66ff\u6362\u5230\u4e0b\u8f7d\u7684\u6587\u4ef6\u4e2d\u4fdd\u5b58\uff0c\u590d\u5236\u90e8\u5206\u5982\u4e0b\u56fe\u6240\u793a\uff1a\uff08\u4e00\u5b9a\u8981\u590d\u5236\u5b8c\u6574\uff09<\/span><\/span><\/div>\n<div align=\"left\"><img decoding=\"async\" id=\"aimg_532\" class=\"zoom\" src=\"https:\/\/tao0.date\/wp-content\/uploads\/2019\/12\/dcd56-234648y1zqz9qnrifjjib5.jpg\" width=\"506\" \/><\/div>\n<div align=\"left\"><span style=\"color: #ff0000;\">\u5404\u79cd\u8bbe\u5907\u5ba2\u6237\u7aef\u4e0b\u8f7d\u4ee5\u53ca\u4f7f\u7528\u65b9\u6cd5<\/span><\/div>\n<\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n<\/div>\n<\/div>\n<\/div>\n<\/div>\n<\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n","protected":false},"excerpt":{"rendered":"<p>yum install -y wget &amp;&hellip;<\/p>\n","protected":false},"author":1,"featured_media":5864,"comment_status":"open","ping_status":"open","sticky":true,"template":"","format":"standard","meta":{"footnotes":""},"categories":[24],"tags":[],"class_list":["post-3425","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-code"],"_links":{"self":[{"href":"https:\/\/tao0.date\/index.php?rest_route=\/wp\/v2\/posts\/3425","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/tao0.date\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/tao0.date\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/tao0.date\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/tao0.date\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=3425"}],"version-history":[{"count":1,"href":"https:\/\/tao0.date\/index.php?rest_route=\/wp\/v2\/posts\/3425\/revisions"}],"predecessor-version":[{"id":5865,"href":"https:\/\/tao0.date\/index.php?rest_route=\/wp\/v2\/posts\/3425\/revisions\/5865"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/tao0.date\/index.php?rest_route=\/wp\/v2\/media\/5864"}],"wp:attachment":[{"href":"https:\/\/tao0.date\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=3425"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/tao0.date\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=3425"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/tao0.date\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=3425"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}