Openresty Python LUA

Openresty Python LUA 学习资料 QQ群:397745473

0%

frp 穿透配置参考

frp 穿透配置参考

QQ群:397745473

frp 下载地址:

https://github.com/fatedier/frp/releases

文档:

https://github.com/fatedier/frp/blob/master/README_zh.md

服务端配置

frps.ini

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
# [common] is integral section
[common]
# A literal address or host name for IPv6 must be enclosed
# in square brackets, as in "[::1]:80", "[ipv6-host]:http" or "[ipv6-host%zone]:80"
bind_addr = 0.0.0.0
bind_port = 7000
kcp_bind_port =7000
# udp port used for kcp protocol, it can be same with 'bind_port'
# if not set, kcp is disabled in frps
#kcp_bind_port = 5443

# if you want to configure or reload frps by dashboard, dashboard_port must be set
dashboard_port = 6443
# dashboard assets directory(only for debug mode)
dashboard_user = admin
dashboard_pwd = password
# assets_dir = ./static
vhost_http_port = 8080
vhost_https_port = 8081
# console or real logFile path like ./frps.log
log_file = ./frps.log
# debug, info, warn, error
log_level = info
log_max_days = 3
# auth token
token = tokenPassword
# only allow frpc to bind ports you list, if you set nothing, there won't be any limit
#allow_ports = 1-65535
# pool_count in each proxy will change to max_pool_count if they exceed the maximum value
max_pool_count = 50
# if tcp stream multiplexing is used, default is true
tcp_mux = true

客户端配置

frpc.ini

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
[common]
server_addr = 服务器ip
server_port = 7000
protocol = kcp

# connections will be established in advance
pool_count = 5

# use tcp stream multiplexing
tcp_mux = true

# user name
#user = RaspberryPi
token = tokenPassword

log_file = ./frpc.log
log_level = info
log_max_days = 30

[rdp-vsyour]
#远程连接TCP类型
type = tcp
#本机的IP地址
local_ip = ip
local_port = 被映射端口
remote_port = 外网连接端口
custom_domains = 绑定域名
use_encryption = true
use_compression = true

QQ群:397745473

欢迎关注我的其它发布渠道