mirror of
https://github.com/fatedier/frp.git
synced 2026-05-15 16:15:49 -06:00
[GH-ISSUE #4626] Can not access to client of frp 0.61.1 #3652
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#3652
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 @Leo2442926161 on GitHub (Jan 7, 2025).
Original GitHub issue: https://github.com/fatedier/frp/issues/4626
Bug Description
after setup the frps(c), I can access to http://qaure.com:7500, but I can access to the http client, I put my log and steps of reproduction below, could anyone help me take a look? thanks.
frpc Version
frp 0.61.1
frps Version
frp 0.61.1
System Architecture
frp_0.61.1_linux_amd64
Configurations
for Frps:
for frpc:
Logs
frps log:
frpc log:
Steps to reproduce
Affected area
@fatedier commented on GitHub (Jan 7, 2025):
Summary of Possible Causes and Solutions:
DNS Configuration
client2.qaure.com(or*.qaure.comif using a wildcard) has a valid A record that points to the same public IP asqaure.com.pingornslookupthatclient2.qaure.comresolves to the correct IP.HTTP Port vs. 80 Port
vhostHTTPPort = 8089infrps.toml. By default, visitinghttp://client2.qaure.comtries to connect on port 80, but FRP is listening on 8089.vhostHTTPPortto 80 in the FRP config, and ensure port 80 is open.Firewall / Security Group
Other Factors
127.0.0.1:80is actually running wherefrpcis installed.frpcandfrpsat version 0.61.1).Most likely, the main issue is either a missing/incorrect DNS record for
client2.qaure.comor the fact that the external HTTP port is set to 8089 but not forwarded from port 80.@Leo2442926161 commented on GitHub (Jan 7, 2025):
Hi Fatediler,
Thank you very much for your quick response and help.
I guess so, the main issue probably is port 8089, how to remove the port 8089?
if I remove the port 8089, it shows an error below:
[client2] start error: type [http] not supported when vhost http port is not setif I change the Vhost port to 80, it can not create the listerner:
create vhost http listener error, listen tcp 0.0.0.0:80: bind: permission deniedthat's why I add vhostHTTPPort = 8089 and vhostHTTPSPort = 4450 to the script, what exactly the vhost is thoough?
@fatedier commented on GitHub (Jan 7, 2025):
What is
vhostin FRP?type = "http"(orhttps), FRP uses HTTP host headers (e.g.,Host: client2.qaure.com) to decide which proxy to route the request to. In other words, multiple subdomains (likeclient1.qaure.com,client2.qaure.com, etc.) can share the same IP address and port, and FRP will internally direct each one to the appropriate local service.Why do I need
vhostHTTPPortorvhostHTTPSPort?80, but on most systems binding to port80requires root privileges.80, it will throw the “bind: permission denied” error. That’s why changingvhostHTTPPortto80fails unless you run FRP with root privileges or configure special permissions (e.g., usingsetcapon Linux).Why do I see “type [http] not supported when vhost http port is not set”?
vhostHTTPPortcompletely, FRP doesn’t know which port to use for HTTP routing.How can I use port 80 (without getting “permission denied”)?
setcapon Linux to allow a non-root binary to bind to privileged ports (e.g.,sudo setcap 'cap_net_bind_service=+ep' ./frps). This lets FRPS bind to port 80 without requiring root permissions to run.If I keep
vhostHTTPPort = 8089, how do I access my site?http://client2.qaure.com:8089).Otherwise, when users go to
http://client2.qaure.com, it tries port 80 by default, which FRP isn’t listening on.Summary
vhostHTTPPortis how FRP sets up a virtual host for HTTP subdomain routing.@Leo2442926161 commented on GitHub (Jan 7, 2025):
Hi Fatediler,
Thank you for the detailed explanation, that seems very helpful, I am trying it and will let you know the result.
@fatedier commented on GitHub (Jan 7, 2025):
The above content is all generated by chatgpt o1 model. You can also prioritize seeking solutions through an LLM.
@github-actions[bot] commented on GitHub (Jan 22, 2025):
Issues go stale after 14d of inactivity. Stale issues rot after an additional 3d of inactivity and eventually close.