{"id":1237,"date":"2026-02-14T13:17:39","date_gmt":"2026-02-14T05:17:39","guid":{"rendered":"https:\/\/lalaland.wlzy.online\/?p=1237"},"modified":"2026-02-14T13:17:39","modified_gmt":"2026-02-14T05:17:39","slug":"%e4%bd%bf%e7%94%a8%e5%9b%bd%e5%86%85vps%e5%9b%bd%e5%a4%96%e6%a0%91%e8%8e%93%e6%b4%be%e6%90%ad%e5%bb%ba-%e7%a7%91-%e5%ad%a6-%e4%b8%8a-%e7%bd%91","status":"publish","type":"post","link":"https:\/\/lalaland.wlzy.online\/?p=1237","title":{"rendered":"\u4f7f\u7528\u56fd\u5185VPS+\u56fd\u5916\u6811\u8393\u6d3e\u642d\u5efa-\u79d1-\u5b66-\u4e0a-\u7f51"},"content":{"rendered":"\n<p>1. \u56fd\u5185VPS\u7684\u542f\u52a8frps\uff0c\u56fd\u5916\u6811\u8393\u6d3e\u7528frpc\uff0c\u5efa\u7acb\u6620\u5c04\u6811\u8393\u6d3e8080\u5230vps\u768410124<\/p>\n\n\n\n<p>2. \u56fd\u5185VPS\u7684nginx\u8bbe\u7f6e\uff1a<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code># \/etc\/nginx\/sites-available\/\n\nserver {\n    listen 443 ssl http2;\n    server_name {\u4f60\u7684\u57df\u540d};\n\n    ssl_certificate \/etc\/letsencrypt\/live\/***********;\n    ssl_certificate_key \/etc\/letsencrypt\/***********; \n\n    location \/to_jp {\n        proxy_redirect off;\n        proxy_http_version 1.1;\n\n        proxy_set_header Upgrade $http_upgrade;\n        proxy_set_header Connection \"upgrade\";\n\n        proxy_set_header Host $host;\n        proxy_set_header X-Real-IP $remote_addr;\n        proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;\n\n        proxy_pass http:\/\/127.0.0.1:{frp\u6620\u5c04\u7aef\u53e3};\n    }\n\n    location \/ {\n        return 404;\n    }\n}<\/code><\/pre>\n\n\n\n<p>\u6811\u8393\u6d3e\u4e0a\u7684nginx\u914d\u7f6e\uff1a<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>server {\n    listen 8080;\n\n    location \/to_jp {\n        proxy_redirect off;\n        proxy_http_version 1.1;\n\n        proxy_set_header Upgrade $http_upgrade;\n        proxy_set_header Connection \"upgrade\";\n\n        proxy_set_header Host $host;\n        proxy_set_header X-Real-IP $remote_addr;\n        proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;\n\n        proxy_pass http:\/\/127.0.0.1:{xray\u5bb9\u5668\u7684\u7aef\u53e3};\n    }\n\n    location \/ {\n        return 200 \"ok\";\n    }\n}\n<\/code><\/pre>\n\n\n\n<p>\u6811\u8393\u6d3e\u7684xray\u5bb9\u5668\u914d\u7f6e\uff1a<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>{\n  \"log\": {\n    \"loglevel\": \"warning\"\n  },\n  \"inbounds\": &#91;\n    {\n      \"port\": 8850,\n      \"listen\": \"0.0.0.0\",\n      \"protocol\": \"vless\",\n      \"settings\": {\n        \"clients\": &#91;\n          {\n            \"id\": \"{cat \/proc\/sys\/kernel\/random\/uuid \u751f\u6210uuid}\",\n            \"flow\": \"\"\n          }\n        ],\n        \"decryption\": \"none\"\n      },\n      \"streamSettings\": {\n        \"network\": \"ws\",\n        \"wsSettings\": {\n          \"path\": \"\/to_jp\"\n        }\n      }\n    }\n  ],\n  \"outbounds\": &#91;\n    {\n      \"protocol\": \"freedom\",\n      \"settings\": {}\n    }\n  ]\n}<\/code><\/pre>\n\n\n\n<p>\u6811\u8393\u6d3e\u4e0afrpc\u914d\u7f6e\uff1a<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code># your proxy name will be changed to {user}.{proxy}\nuser = *********\n\n#transport.tls.enable = true\n\nserverAddr = {\u8fdc\u7aefvps\u7684IP\u5730\u5740}\nserverPort = *********\nauth.method = \"token\"\nauth.token = *********\n\n\n&#91;&#91;proxies]]\nname = \"raspi-ssh\"\ntype = \"tcp\"\nlocalIP = \"127.0.0.1\"\nlocalPort = 22\nremotePort = {******}\n\n&#91;&#91;proxies]]\nname = \"raspi-xray-nginx\"\ntype = \"tcp\"\nlocalIP = \"127.0.0.1\"\nlocalPort = 8080  # \u672c\u5730nginx\u7aef\u53e3\nremotePort = {\u901a\u8fc7frp\u6620\u5c04\u5230vps\u7684\u7aef\u53e3}\n<\/code><\/pre>\n","protected":false},"excerpt":{"rendered":"<p>1. \u56fd\u5185VPS\u7684\u542f\u52a8frps\uff0c\u56fd\u5916\u6811\u8393\u6d3e\u7528frpc\uff0c\u5efa\u7acb\u6620\u5c04\u6811\u8393\u6d3e8080\u5230vps\u768410124 2. \u56fd\u5185V&#8230;<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"_kad_post_transparent":"","_kad_post_title":"","_kad_post_layout":"","_kad_post_sidebar_id":"","_kad_post_content_style":"","_kad_post_vertical_padding":"","_kad_post_feature":"","_kad_post_feature_position":"","_kad_post_header":false,"_kad_post_footer":false,"_kad_post_classname":"","footnotes":""},"categories":[3,33,20,1,19,21],"tags":[],"class_list":["post-1237","post","type-post","status-publish","format-standard","hentry","category-linux-tech","category-nas","category-20","category-tech","category-19","category-21"],"_links":{"self":[{"href":"https:\/\/lalaland.wlzy.online\/index.php?rest_route=\/wp\/v2\/posts\/1237","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/lalaland.wlzy.online\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/lalaland.wlzy.online\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/lalaland.wlzy.online\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/lalaland.wlzy.online\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=1237"}],"version-history":[{"count":21,"href":"https:\/\/lalaland.wlzy.online\/index.php?rest_route=\/wp\/v2\/posts\/1237\/revisions"}],"predecessor-version":[{"id":1258,"href":"https:\/\/lalaland.wlzy.online\/index.php?rest_route=\/wp\/v2\/posts\/1237\/revisions\/1258"}],"wp:attachment":[{"href":"https:\/\/lalaland.wlzy.online\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=1237"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/lalaland.wlzy.online\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=1237"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/lalaland.wlzy.online\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=1237"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}