[GH-ISSUE #2331] 127.0.0.1本地测试connect refused #1851

Closed
opened 2026-05-05 13:11:46 -06:00 by gitea-mirror · 3 comments
Owner

Originally created by @ufoozhenghao on GitHub (Mar 25, 2021).
Original GitHub issue: https://github.com/fatedier/frp/issues/2331

[REQUIRED] hat version of frp are you using

Version:0.36.2

[REQUIRED] What operating system and processor architecture are you using
OS:ubuntu 16.04 server
CPU architecture:intel E3

[REQUIRED] description of errors
使用127.0.0.1本地ssh远程端口提示connect refused
confile

frps.ini
[common]
bind_port = 7000

frpc.ini
[common]
server_addr = 127.0.0.1
server_port = 7000

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

log file

Steps to reproduce the issue
下载frp_0.36.2_linux_amd64.tar.gz

  1. 在ubuntu上执行 ./frps -c ./frps.ini./frpc -c ./frpc.ini后都提示proxy success
  2. 本地终端执行 ssh -oPort=6000 dell@127.0.0.1提示connect refused
  3. ufw disable后错误仍然存在
  4. 启用ufw后ufw allow 6000无法连接
  5. ufw status 显示 6000 anywhere
  6. lsof -i:6000 无返回,端口没有被占用
  7. nelnet 127.0.0.1 6000无响应

Supplementary information

Can you guess what caused this issue

Checklist:

  • [] I included all information required in the sections above
  • [] I made sure there are no duplicates of this report (Use Search)
Originally created by @ufoozhenghao on GitHub (Mar 25, 2021). Original GitHub issue: https://github.com/fatedier/frp/issues/2331 <!-- From Chinese to English by machine translation, welcome to revise and polish. --> <!-- ⚠️⚠️ Incomplete reports will be marked as invalid, and closed, with few exceptions ⚠️⚠️ --> <!-- in addition, please use search well so that the same solution can be found in the feedback, we will close it directly --> <!-- for convenience of differentiation, use FRPS or FRPC to refer to the FRP server or client --> **[REQUIRED] hat version of frp are you using** <!-- Use ./frpc -v or ./frps -v --> Version:0.36.2 **[REQUIRED] What operating system and processor architecture are you using** OS:ubuntu 16.04 server CPU architecture:intel E3 **[REQUIRED] description of errors** 使用127.0.0.1本地ssh远程端口提示connect refused **confile** <!-- Please pay attention to hiding the token, server_addr and other privacy information --> frps.ini [common] bind_port = 7000 frpc.ini [common] server_addr = 127.0.0.1 server_port = 7000 [ssh] type = tcp local_ip = 127.0.0.1 local_port = 22 remote_port = 6000 **log file** <!-- If the file is too large, use Pastebin, for example https://pastebin.ubuntu.com/ --> **Steps to reproduce the issue** 下载frp_0.36.2_linux_amd64.tar.gz 1. 在ubuntu上执行 `./frps -c ./frps.ini`与`./frpc -c ./frpc.ini`后都提示proxy success 2. 本地终端执行 `ssh -oPort=6000 dell@127.0.0.1`提示connect refused 3. ufw disable后错误仍然存在 4. 启用ufw后`ufw allow 6000`无法连接 5. ufw status 显示 6000 anywhere 6. lsof -i:6000 无返回,端口没有被占用 6. nelnet 127.0.0.1 6000无响应 **Supplementary information** **Can you guess what caused this issue** **Checklist**: <!--- Make sure you've completed the following steps (put an "X" between of brackets): --> - [] I included all information required in the sections above - [] I made sure there are no duplicates of this report [(Use Search)](https://github.com/fatedier/frp/issues?q=is%3Aissue)
gitea-mirror 2026-05-05 13:11:46 -06:00
Author
Owner

@blizard863 commented on GitHub (Mar 26, 2021):

  1. 换个机器,用同样的配置试一下?
  2. ss -alpn|grep frp 一下?
<!-- gh-comment-id:807898713 --> @blizard863 commented on GitHub (Mar 26, 2021): 1. 换个机器,用同样的配置试一下? 2. ss -alpn|grep frp 一下?
Author
Owner

@ufoozhenghao commented on GitHub (Mar 26, 2021):

  1. 换个机器,用同样的配置试一下?
  2. ss -alpn|grep frp 一下?

感谢帮忙 我在虚拟机中用同样的配置可以实现 第二个步骤我明天去公司看看

127.0.0.1不通是啥问题啊?服务器是Dell PowerEdge R230 安装的是ubuntu 16.04 server

<!-- gh-comment-id:808172022 --> @ufoozhenghao commented on GitHub (Mar 26, 2021): > 1. 换个机器,用同样的配置试一下? > 2. ss -alpn|grep frp 一下? 感谢帮忙 我在虚拟机中用同样的配置可以实现 第二个步骤我明天去公司看看 127.0.0.1不通是啥问题啊?服务器是Dell PowerEdge R230 安装的是ubuntu 16.04 server
Author
Owner

@blizard863 commented on GitHub (Mar 27, 2021):

  1. 换个机器,用同样的配置试一下?
  2. ss -alpn|grep frp 一下?

感谢帮忙 我在虚拟机中用同样的配置可以实现 第二个步骤我明天去公司看看

127.0.0.1不通是啥问题啊?服务器是Dell PowerEdge R230 安装的是ubuntu 16.04 server

问题原因可能是多方面的,当前无法判断,建议 tcpdump 抓个包看看。

<!-- gh-comment-id:808749771 --> @blizard863 commented on GitHub (Mar 27, 2021): > > 1. 换个机器,用同样的配置试一下? > > 2. ss -alpn|grep frp 一下? > > 感谢帮忙 我在虚拟机中用同样的配置可以实现 第二个步骤我明天去公司看看 > > 127.0.0.1不通是啥问题啊?服务器是Dell PowerEdge R230 安装的是ubuntu 16.04 server 问题原因可能是多方面的,当前无法判断,建议 tcpdump 抓个包看看。
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#1851
No description provided.