Github:[https://github.com/fatedier/frp](https://github.com/fatedier/frp "https://github.com/fatedier/frp") 下载地址:[https://github.com/fatedier/frp/releases](https://github.com/fatedier/frp/releases "https://github.com/fatedier/frp/releases")  ### frp服务端配置 ```php [common] #服务器监听ip bind_addr = x.x.x.x #服务器监听端口 bind_port = 7000 #http穿透访问的端口 vhost_http_port = xxx #https穿透访问的端口 vhost_https_port = xxx #管理面板端口 dashboard_port = xxx #管理面板用户名 dashboard_user = admin #管理面板密码 dashboard_pwd = admin #日志保存天数 log_max_days = 7 privilege_mode = true #安全认证token privilege_token = *** #绑定端口限制设置允许 frp 客户端使用哪些服务器的端口。可为端口号或端口号范围,如:2000-3000、3001,多个端口用英文,分隔。 privilege_allow_ports = 600 #最大预连接数 max_pool_count = 100 log_file = frps.log log_level = info ``` ### frp客户端配置 ```php [common] #服务端外网ip server_addr = x.x.x.x #安全认证Token privilege_token = *** #监听ip server_port = 7000 log_file = frpc.log log_level = info #日志保存天数 log_max_days = 7 [http_15083] #http穿透/映射 type = http #域名/ip/访问需要 custom_domains = www.domain.com #映射/穿透的ip local_ip = 192.168.1.1 #映射/穿透ip的端口 local_port = 80 privilege_mode = true authentication_timeout = 0 use_encryption = true use_gzip = true ``` ~~Windows客户端下载~~ Loading... Github:[https://github.com/fatedier/frp](https://github.com/fatedier/frp "https://github.com/fatedier/frp") 下载地址:[https://github.com/fatedier/frp/releases](https://github.com/fatedier/frp/releases "https://github.com/fatedier/frp/releases")  ### frp服务端配置 ```php [common] #服务器监听ip bind_addr = x.x.x.x #服务器监听端口 bind_port = 7000 #http穿透访问的端口 vhost_http_port = xxx #https穿透访问的端口 vhost_https_port = xxx #管理面板端口 dashboard_port = xxx #管理面板用户名 dashboard_user = admin #管理面板密码 dashboard_pwd = admin #日志保存天数 log_max_days = 7 privilege_mode = true #安全认证token privilege_token = *** #绑定端口限制设置允许 frp 客户端使用哪些服务器的端口。可为端口号或端口号范围,如:2000-3000、3001,多个端口用英文,分隔。 privilege_allow_ports = 600 #最大预连接数 max_pool_count = 100 log_file = frps.log log_level = info ``` ### frp客户端配置 ```php [common] #服务端外网ip server_addr = x.x.x.x #安全认证Token privilege_token = *** #监听ip server_port = 7000 log_file = frpc.log log_level = info #日志保存天数 log_max_days = 7 [http_15083] #http穿透/映射 type = http #域名/ip/访问需要 custom_domains = www.domain.com #映射/穿透的ip local_ip = 192.168.1.1 #映射/穿透ip的端口 local_port = 80 privilege_mode = true authentication_timeout = 0 use_encryption = true use_gzip = true ``` ~~Windows客户端下载~~ © 允许规范转载