[GH-ISSUE #535] 普通用户绑定80的vhost_http_port失败 #417

Closed
opened 2026-05-05 12:14:12 -06:00 by gitea-mirror · 2 comments
Owner

Originally created by @ghost on GitHub (Nov 26, 2017).
Original GitHub issue: https://github.com/fatedier/frp/issues/535

What version of frp are you using (./frpc -v or ./frps -v)?
0.13.0_linux_amd64

What operating system and processor architecture are you using (go env)?
CentOS 7 (VPS), virtual cpu, 64bit

Configures you used:
The following is the configuration in frps.ini
[common]
bind_port = 7000
vhost_http_port = 80
vhost_https_port = 443
......
[web_http]
type = http
custom_domains = xxx.example.com

[web_https]
type = https
custom_domains = xxx.example.com
......

Steps to reproduce the issue:

  1. create a new user for FRP
    sudo useradd -M -s /usr/sbin/nologin -d /usr/local/frp frp

  2. install and config authbind:
    yum install authbind
    sudo touch /etc/authbind/byport/{80,443}
    sudo chown frp.frp /etc/authbind/byport/{80,443}
    sudo chmod 755 /etc/authbind/byport/{80,443}

  3. run FRP by the user frp in server
    sudo -u frp authbind --deep /path/to/frps -c /path/to/frps.ini &

Describe the results you received:
Unable to bind to 80, permission denied

Describe the results you expected:
Binding to 80 by the general user frp successfully

Additional information you deem important (e.g. issue happens only occasionally):
No apache, nginx or other program is listening on 80 or 443.

Can you point out what caused this issue (optional)
No

Originally created by @ghost on GitHub (Nov 26, 2017). Original GitHub issue: https://github.com/fatedier/frp/issues/535 **What version of frp are you using (./frpc -v or ./frps -v)?** 0.13.0_linux_amd64 **What operating system and processor architecture are you using (`go env`)?** CentOS 7 (VPS), virtual cpu, 64bit **Configures you used:** The following is the configuration in `frps.ini` `[common]` `bind_port = 7000` `vhost_http_port = 80` `vhost_https_port = 443` `......` `[web_http]` `type = http` `custom_domains = xxx.example.com` `[web_https]` `type = https` `custom_domains = xxx.example.com` `......` **Steps to reproduce the issue:** 1. create a new user for FRP `sudo useradd -M -s /usr/sbin/nologin -d /usr/local/frp frp` 2. install and config `authbind`: `yum install authbind` `sudo touch /etc/authbind/byport/{80,443}` `sudo chown frp.frp /etc/authbind/byport/{80,443}` `sudo chmod 755 /etc/authbind/byport/{80,443}` 3. run FRP by the user `frp` in server `sudo -u frp authbind --deep /path/to/frps -c /path/to/frps.ini &` **Describe the results you received:** Unable to bind to 80, permission denied **Describe the results you expected:** Binding to 80 by the general user `frp` successfully **Additional information you deem important (e.g. issue happens only occasionally):** No apache, nginx or other program is listening on 80 or 443. **Can you point out what caused this issue (optional)** No
Author
Owner

@ghost commented on GitHub (Nov 26, 2017):

用中文回答就行了

<!-- gh-comment-id:346990855 --> @ghost commented on GitHub (Nov 26, 2017): 用中文回答就行了
Author
Owner

@fatedier commented on GitHub (Dec 7, 2017):

普通用户不能绑定 80 端口是系统层面的问题,和 frp 无关。你可以选择绑定其他端口,或者使用 root 用户绑定 80 端口。

<!-- gh-comment-id:349862551 --> @fatedier commented on GitHub (Dec 7, 2017): 普通用户不能绑定 80 端口是系统层面的问题,和 frp 无关。你可以选择绑定其他端口,或者使用 root 用户绑定 80 端口。
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference: github-starred/frp#417
No description provided.