使用frp搭建p2p远程桌面

不通过frp转发,第一次使用frps进行桥梁搭建,后面就是p2p流量了,

nat类型一共有nat1-nat4(最差),双方网络需要 client1+clinet2< 7 才行。对称网络+端口限制网络 已经不能打通p2p了

阅读更多

FPR快速配置

FRPS配置

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
[common]
bind_addr = 0.0.0.0
bind_port = 7000
bind_udp_port = 7001
kcp_bind_port = 7000
vhost_http_port = 80
vhost_https_port = 443
dashboard_addr = 0.0.0.0
dashboard_port = 7002
dashboard_user = admin
dashboard_pwd = login_password
log_file = ./frps.log
log_level = info
log_max_days = 1
disable_log_color = false
authentication_method = token
authenticate_new_work_conns = true
token = login_token
allow_ports =100-999, 2000-3000,3001,3003,4000-50000
max_pool_count = 5
max_ports_per_client = 0
tcp_mux = true

run

1
2
3
4
docker run -d --name=frps --restart=always \
--network host \
-v /root/frps.ini:/frp/frps.ini \
stilleshan/frps