[GH-ISSUE #730] frp 安裝 騰訊雲 Centos 7 只能監聽端口 tcp6 無法監聽 tcp #571

Closed
opened 2026-05-05 12:22:24 -06:00 by gitea-mirror · 1 comment
Owner

Originally created by @cddisk2000 on GitHub (Apr 29, 2018).
Original GitHub issue: https://github.com/fatedier/frp/issues/730

使用「frp_0.17.0_linux_amd64.tar.gz」版本。

背景啟動「nohup ./frps -c frps.ini &」

使用「netstat -ltunp」結果如下

[root@frp frp_0.17.0_linux_386]# netstat -ltunp
Active Internet connections (only servers)
Proto Recv-Q Send-Q Local Address Foreign Address State PID/Program name
tcp 0 0 0.0.0.0:111 0.0.0.0:* LISTEN 1/systemd
tcp 0 0 0.0.0.0:22 0.0.0.0:* LISTEN 815/sshd
tcp6 0 0 :::80 :::* LISTEN 2384/./frps
tcp6 0 0 :::433 :::* LISTEN 2384/./frps
tcp6 0 0 :::7000 :::* LISTEN 2384/./frps
udp 0 0 172.19.0.5:123 0.0.0.0:* 485/ntpd
udp 0 0 127.0.0.1:123 0.0.0.0:* 485/ntpd
udp 0 0 0.0.0.0:123 0.0.0.0:* 485/ntpd
udp6 0 0 :::123 :::* 485/ntpd

只有監聽「TCP6」端口

「frps.ini」配置文檔如下

[common]
bind_port = 7000
vhost_http_port = 80
vhost_https_port = 433
privilege_token = 123

[https]
type = https

Originally created by @cddisk2000 on GitHub (Apr 29, 2018). Original GitHub issue: https://github.com/fatedier/frp/issues/730 使用「frp_0.17.0_linux_amd64.tar.gz」版本。 背景啟動「nohup ./frps -c frps.ini &」 使用「netstat -ltunp」結果如下 [root@frp frp_0.17.0_linux_386]# netstat -ltunp Active Internet connections (only servers) Proto Recv-Q Send-Q Local Address Foreign Address State PID/Program name tcp 0 0 0.0.0.0:111 0.0.0.0:* LISTEN 1/systemd tcp 0 0 0.0.0.0:22 0.0.0.0:* LISTEN 815/sshd tcp6 0 0 :::80 :::* LISTEN 2384/./frps tcp6 0 0 :::433 :::* LISTEN 2384/./frps tcp6 0 0 :::7000 :::* LISTEN 2384/./frps udp 0 0 172.19.0.5:123 0.0.0.0:* 485/ntpd udp 0 0 127.0.0.1:123 0.0.0.0:* 485/ntpd udp 0 0 0.0.0.0:123 0.0.0.0:* 485/ntpd udp6 0 0 :::123 :::* 485/ntpd 只有監聽「TCP6」端口 「frps.ini」配置文檔如下 [common] bind_port = 7000 vhost_http_port = 80 vhost_https_port = 433 privilege_token = 123 [https] type = https
Author
Owner

@cddisk2000 commented on GitHub (May 1, 2018):

問題解決了,自己打錯 監聽通訊 Port

vhost_https_port = 443

<!-- gh-comment-id:385578615 --> @cddisk2000 commented on GitHub (May 1, 2018): 問題解決了,自己打錯 監聽通訊 Port vhost_https_port = 443
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#571
No description provided.