frp使用说明


配置文件使用说明

<h2>特别注意用英文输入法!注意标点符号!</h2> <h3>配置文件在conf\npc.conf文件里,使用文本文档编辑</h3> <h4>一:需要修改的地方,<code>有蓝色标注!</code></h4> <table> <thead> <tr> <th style="text-align: left;">[common]</th> <th>这里不要修改</th> </tr> </thead> <tbody> <tr> <td style="text-align: left;"><code>server_addr=</code></td> <td>这里填frp服务器的地址+端口号客服会给你</td> </tr> <tr> <td style="text-align: left;"><code>vkey=</code></td> <td>这里填你的密钥,16位随机英文数字</td> </tr> <tr> <td style="text-align: left;">conn_type=</td> <td>tcp(这里不要改)</td> </tr> <tr> <td style="text-align: left;">disconnect_timeout=</td> <td>60(连接超时时间,默认60秒)</td> </tr> </tbody> </table> <h4>单端口tcp示例</h4> <table> <thead> <tr> <th style="text-align: left;">[<code>tcp</code>]</th> <th>名称,随机改个英文或数字即可,3位以上</th> </tr> </thead> <tbody> <tr> <td style="text-align: left;"><code>mode=</code></td> <td>tcp(连接方式tcp就写tcp)</td> </tr> <tr> <td style="text-align: left;"><code>target_addr=</code></td> <td>127.0.0.1:8080(127.0.0.1为本机,8080本地服务的运行端口)</td> </tr> <tr> <td style="text-align: left;"><code>server_port=</code></td> <td>10001(远程端口号,改为分配你的端口</td> </tr> </tbody> </table> <h4>单端口udp示例</h4> <table> <thead> <tr> <th style="text-align: left;">[<code>udp</code>]</th> <th>名称,随机改个英文或数字即可,3位以上</th> </tr> </thead> <tbody> <tr> <td style="text-align: left;"><code>mode=</code></td> <td>udp(连接方式udp就写udp)</td> </tr> <tr> <td style="text-align: left;"><code>target_addr=</code></td> <td>127.0.0.1:8211(127.0.0.1为本机,8080本地服务的运行端口)</td> </tr> <tr> <td style="text-align: left;"><code>server_port=</code></td> <td>10002(远程端口号,改为分配你的端口</td> </tr> </tbody> </table> <p>单端口示例</p> <pre><code>[common] server_addr=frpa01.ntpizza.com:10000 conn_type=tcp vkey=1234567812345678 disconnect_timeout=60 [tcp] mode=tcp target_addr=127.0.0.1:8080 server_port=10001 [udp] mode=udp target_addr=127.0.0.1:8211 server_port=10002</code></pre>

页面列表

ITEM_HTML