[GH-ISSUE #3288] port not listening #2632

Closed
opened 2026-05-05 13:42:01 -06:00 by gitea-mirror · 1 comment
Owner

Originally created by @Kry1702 on GitHub (Feb 3, 2023).
Original GitHub issue: https://github.com/fatedier/frp/issues/3288

Bug Description

Based on the configuration information I provided, start the server (frps) and client (frpc) at the same time, the server log shows normal, check the port "telnet server IP 26000" through the command, the port cannot be accessed normally.
The server passes "netstat -antulp |grep 26000", but there is no port information.

Firewall release port.
SELinux disabled.
System Version: Centos 7.6

frpc Version

0.46.1

frps Version

0.46.1

System Architecture

linux/amd64

Configurations

frps config

[common]
bind_addr = 0.0.0.0
bind_port = 7000
token = 123456
vhost_http_port = 880
vhost_https_port = 4443

frpc config

[common]
server_addr = Server IP
server_port = 7000
#log_file = ./frpc.log
#log_level = info
#log_max_days = 3
token = 123456
tls_enable = true

[ssh]
type = tcp
local_ip = 127.0.0.1
local_port = 22
remote_port = 26000

Logs

frps          | 2023/02/03 01:58:18 [I] [root.go:206] frps uses config file: /etc/frp/frps.ini
frps          | 2023/02/03 01:58:19 [I] [service.go:200] frps tcp listen on 0.0.0.0:7000
frps          | 2023/02/03 01:58:19 [I] [service.go:261] http service listen on 0.0.0.0:880
frps          | 2023/02/03 01:58:19 [I] [service.go:276] https service listen on 0.0.0.0:4443
frps          | 2023/02/03 01:58:19 [I] [root.go:215] frps started successfully
frps          | 2023/02/03 02:04:22 [I] [service.go:500] [ec2534978d9ac251] client login info: ip [XXX.XXX.XXX.XXX:54802] version [0.46.1] hostname [] os [linux] arch [amd64]
frps          | 2023/02/03 02:04:22 [I] [tcp.go:64] [ec2534978d9ac251] [ssh] tcp proxy listen port [26000]
frps          | 2023/02/03 02:04:22 [I] [control.go:464] [ec2534978d9ac251] new proxy [ssh] type [tcp] success

If the client does not add the "tls_enable = true" parameter,client fails to start.

[W] [service.go:133] login to server failed: EOF

端口检查

netstat   -antulp  |grep  26000

Steps to reproduce

  1. wget https://github.com/fatedier/frp/releases/download/v0.46.1/frp_0.46.1_linux_amd64.tar.gz
  2. Configure the configuration file content provided above.
  3. start service "./frps -c frps.ini" and "./frpc -c frpc.ini"
    4.Any host passed the "telnet serverIP 26000" command test

Affected area

  • Docs
  • Installation
  • Performance and Scalability
  • Security
  • User Experience
  • Test and Release
  • Developer Infrastructure
  • Client Plugin
  • Server Plugin
  • Extensions
  • Others
Originally created by @Kry1702 on GitHub (Feb 3, 2023). Original GitHub issue: https://github.com/fatedier/frp/issues/3288 ### Bug Description Based on the configuration information I provided, start the server (frps) and client (frpc) at the same time, the server log shows normal, check the port "telnet server IP 26000" through the command, the port cannot be accessed normally. The server passes "netstat -antulp |grep 26000", but there is no port information. Firewall release port. SELinux disabled. System Version: Centos 7.6 ### frpc Version 0.46.1 ### frps Version 0.46.1 ### System Architecture linux/amd64 ### Configurations frps config ``` [common] bind_addr = 0.0.0.0 bind_port = 7000 token = 123456 vhost_http_port = 880 vhost_https_port = 4443 ``` frpc config ``` [common] server_addr = Server IP server_port = 7000 #log_file = ./frpc.log #log_level = info #log_max_days = 3 token = 123456 tls_enable = true [ssh] type = tcp local_ip = 127.0.0.1 local_port = 22 remote_port = 26000 ``` ### Logs ``` frps | 2023/02/03 01:58:18 [I] [root.go:206] frps uses config file: /etc/frp/frps.ini frps | 2023/02/03 01:58:19 [I] [service.go:200] frps tcp listen on 0.0.0.0:7000 frps | 2023/02/03 01:58:19 [I] [service.go:261] http service listen on 0.0.0.0:880 frps | 2023/02/03 01:58:19 [I] [service.go:276] https service listen on 0.0.0.0:4443 frps | 2023/02/03 01:58:19 [I] [root.go:215] frps started successfully frps | 2023/02/03 02:04:22 [I] [service.go:500] [ec2534978d9ac251] client login info: ip [XXX.XXX.XXX.XXX:54802] version [0.46.1] hostname [] os [linux] arch [amd64] frps | 2023/02/03 02:04:22 [I] [tcp.go:64] [ec2534978d9ac251] [ssh] tcp proxy listen port [26000] frps | 2023/02/03 02:04:22 [I] [control.go:464] [ec2534978d9ac251] new proxy [ssh] type [tcp] success ``` If the client does not add the "tls_enable = true" parameter,client fails to start. ``` [W] [service.go:133] login to server failed: EOF ``` 端口检查 ``` netstat -antulp |grep 26000 ``` ### Steps to reproduce 1. wget https://github.com/fatedier/frp/releases/download/v0.46.1/frp_0.46.1_linux_amd64.tar.gz 2. Configure the configuration file content provided above. 3. start service "./frps -c frps.ini" and "./frpc -c frpc.ini" 4.Any host passed the "telnet serverIP 26000" command test ### Affected area - [ ] Docs - [ ] Installation - [ ] Performance and Scalability - [ ] Security - [ ] User Experience - [ ] Test and Release - [ ] Developer Infrastructure - [ ] Client Plugin - [ ] Server Plugin - [ ] Extensions - [ ] Others
Author
Owner

@Kry1702 commented on GitHub (Feb 3, 2023):

issue has been resolved

<!-- gh-comment-id:1415027452 --> @Kry1702 commented on GitHub (Feb 3, 2023): issue has been resolved
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#2632
No description provided.