全新内网穿透(支持https)
<h2>1.下载文件,解压并上传到/root/frp目录下(frp目录没有则新建)</h2>
<p>链接: <a href="https://pan.baidu.com/s/1R3esAdrbh16ch5zyzxj4lg">https://pan.baidu.com/s/1R3esAdrbh16ch5zyzxj4lg</a> 提取码: dbdz</p>
<h3>并且给777权限</h3>
<p><img src="https://www.showdoc.cc/server/api/common/visitfile/sign/13f2f6e8a72aec2f59ea8e38d012b4a8?showdoc=.jpg" alt="" /></p>
<h2>2.编辑frpc.ini文件</h2>
<pre><code class="language-lua">[common]
server_addr = 47.103.9.172
server_port = 5443
tcp_mux = true
protocol = tcp
token = duwwtokenfrps
dns_server = 114.114.114.114
[名字]
privilege_mode = true
type = 类型
local_ip = 127.0.0.1
local_port = 端口
custom_domains = 域名 多域名,隔开</code></pre>
<h2>http示例</h2>
<pre><code class="language-lua">[duwwhttp]
privilege_mode = true
type = http
local_ip = 127.0.0.1
local_port = 80
custom_domains = duww.top,www.duww.top</code></pre>
<h2>https示例</h2>
<pre><code class="language-lua">[duww]
privilege_mode = true
type = https
local_ip = 127.0.0.1
local_port = 443
custom_domains = duww.top,www.duww.top</code></pre>
<h3>如果你要https 必须要http和https都要映射</h3>
<h2>3.编辑/etc/rc.local文件。加入以下代码</h2>
<pre><code class="language-lua">/root/frp/./frpc -c/root/frp/./frpc.ini</code></pre>
<h2>4.解析域名</h2>
<h3>把你的域名A记录到47.103.9.172就可以了</h3>
<h1>自此映射完毕</h1>