You can get user's real IP from HTTP request headers X-Forwarded-For. Proxy Protocol frp supports Proxy Protocol to send user's real IP to local services. It support all types except UDP. Here is an example for https service: # frpc.toml [[proxies]] name = "web" type = "https" ...
Get Real IP HTTP X-Forwarded-For Features for http proxy only. You can get user's real IP from HTTP request header X-Forwarded-For and X-Real-IP. Proxy Protocol frp support Proxy Protocol to send user's real IP to local service. It support all types without UDP. Here is an example...
from http://www.wkii.org/nginx-cdn-get-user-real-ip.html ##1.背景知识 1.1. 前提知识点: 关键词:ngx_http_realip_module,HAProxy,反向代理,出口IP 还有nginx中的几个变量: remote_addr 代表客户端的IP,但它的值不是由客户端提供的,而是服务端根据客户端的ip指定的,当你的浏览器访问某个网站时,假...
type= http#http协议 local_ip = 192.168.2.1#软路由IP地址 local_port = 80#软路由默认端口remote_port = 43389 #远程端口/服务器端端口,确保端口已放行 5.启动frpc客户端,在frpc文件夹下执行: 1 frpc.exe -c ./frpc.ini 6.客户端启动起来后,可以在管理界面看到刚才配置的已经连接的TCP的3个条目,status...
第一部分(云服务器+frp)不具有实用性,因为市面上的大多数的云服务器性能都足够运行l4d2游戏服务器且自带公网ip;第二部分(使用SakuraFrp)的穿透效果也很难令人满意,毕竟免费的内网穿透工具不能保证网络的稳定性,而这一点对游戏体验影响很大,使用付费的内网穿透工具又不如直接加钱买云服务器。但是,如果有一台性能很...
#local_ip=127.0.0.1#local_port=22#remote_port=6000启动服务 [root@#quan#Better frp_0.27.0_linux_amd64]$./frpc -c ./frpc.ini2019/12/0111:11:47[I] [service.go:221] login to server success,getrun id [6250c843a4d98a90], server udp port [0] ...
# console or real logFile path like ./frpc.log log.to = "./frpc.log" # trace, debug, info, warn, error log.level = "info" log.maxDays = 3 # disable log colors when log.to is console, default is false log.disablePrintColor = false ...
# console or real logFile path like ./frpc.log log.to = "./frpc.log" # trace, debug, info, warn, error log.level = "info" log.maxDays = 3 # disable log colors when log.to is console, default is false log.disablePrintColor = false ...
proxy_set_header X-Real-IP $remote_addr; proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for; } } frp完整文件配置信息 frp还有很多配置项,根据实际需要进行配置。 frps服务端配置信息 # [common] 完整的部分[common]# 必须包含IPv6的文本地址或主机名# 方括号内,如 "[::1]:80", "[ip...
frp可以有10+个监听端口,因为frp可以通过自定义接口决定监听每个接口来设定监听后的动作,监听接口暂无限制,可以监听多个接口。