mirror of
https://github.com/fatedier/frp.git
synced 2026-05-15 16:15:49 -06:00
[GH-ISSUE #2951] X-Forwarded-For type https, the value is IP Server, Not IP Visitor #2358
Labels
No labels
In Progress
WIP
WaitingForInfo
bug
doc
duplicate
easy
enhancement
future
help wanted
invalid
lifecycle/stale
need-issue-template
need-usage-help
no plan
proposal
pull-request
question
todo
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference: github-starred/frp#2358
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Originally created by @mafaza86 on GitHub (May 25, 2022).
Original GitHub issue: https://github.com/fatedier/frp/issues/2951
Bug Description
Thank you frp very helpful and amazing...
I have problems getting the visitor's IP address, I read the ip with the "X-Forwarded-For" header, which appears not the visitor's ip, but the server's ip. Here's my config:
access http//:web01.tunnel.example.com X-Forwarded-For contains visitor ip
access https://:web01.tunnel.example.com X-Forwarded-For contains the server ip, so it cannot know the real ip address of the visitor.
*I don't use proxy / nginx
Thanks very much
frpc Version
0.42.0
frps Version
0.0.2
System Architecture
linux/amd64
Configurations
frps.ini
[common]
bind_addr = 0.0.0.0
bind_port = 7000
vhost_http_port = 80
vhost_https_port = 443
frpc.ini
[common]
server_addr = 103.226.138.188
server_port = 7000
[web01https]
type = https
local_ip = 127.0.0.1
plugin = https2http
plugin_local_addr = 127.0.0.1:5050
plugin_crt_path = ./fullchain.pem
plugin_key_path = ./privkey.pem
subdomain = web01
custom_domains = tunnel.example.com
[web01http]
type = http
local_ip = 127.0.0.1
local_port = 5050
subdomain = web01
custom_domains = tunnel.example.com
Logs
No response
Steps to reproduce
...
Affected area
@fatedier commented on GitHub (May 25, 2022):
X-Forwarded-Forcan't be supported fro HTTPS.You can try proxy-protocol instead.
@github-actions[bot] commented on GitHub (Jun 25, 2022):
Issues go stale after 30d of inactivity. Stale issues rot after an additional 7d of inactivity and eventually close.