[GH-ISSUE #2130] frp不按照frpc.ini 设定的端口进行穿透 #1695

Closed
opened 2026-05-05 13:05:08 -06:00 by gitea-mirror · 0 comments
Owner

Originally created by @kalonezero87 on GitHub (Dec 4, 2020).
Original GitHub issue: https://github.com/fatedier/frp/issues/2130

[REQUIRED] hat version of frp are you using

Version:0.34.3

[REQUIRED] What operating system and processor architecture are you using
OS:Debain 10.2
CPU architecture: AMD64

[REQUIRED] description of errors
没错,又是我,神奇的事情天天有。哈哈。在frp正常运行后,我尝试远程SSH访问内网的群晖。我22端口对应remote_port: 8222。神奇的事情发生了,frp监听的是我曾经的6006端口,配置重已经删了的,我将配置不变的情况下[SSH]改为[SSH2] 这时frp自动设置为8003.我增加其他服务时,frp一定会设置一个8003,哪怕让其他配置没有端口.....

confile

frpc.ini
[common]

server_addr = XXX.XXX.XXX.XXX

server_port = 7000

token = XXXXX

[DSM]

type = tcp

local_ip = 127.0.0.1

local_port = 5000

remote_port = 6001

[Jellyfin]

type = tcp

local_ip = 127.0.0.1

local_port = 8096

remote_port = 7001

[Tinymediamanger]

type = tcp

local_ip = 127.0.0.1

local_port = 5800

remote_port = 8001

[Qbittorrent]

type = tcp

local_ip = 127.0.0.1

local_port = 8989

remote_port = 9010

[NextCloud]

type = tcp

local_ip = 127.0.0.1

local_port = 8888

remote_port = 9888

[Onlyoffice]

type = tcp

local_ip = 127.0.0.1

local_port = 8002

remote_port = 8002

[SSH3]

type = tcp

local_ip = 127.0.0.1

local_port = 22

remote_port = 8222

[route]

type = tcp

local_ip = 192.168.2.1

local_port = 80

remote_port = 8021

[N1]

type = tcp

local_ip = 192.168.2.100

local_port = 80

remote_port = 8100

dashboard 显示的:
image
诡异的8003端口 直接在vps查看端口情况。
image

log file

Steps to reproduce the issue
1.
2.
3.

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 @kalonezero87 on GitHub (Dec 4, 2020). Original GitHub issue: https://github.com/fatedier/frp/issues/2130 <!-- 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.34.3 **[REQUIRED] What operating system and processor architecture are you using** OS:Debain 10.2 CPU architecture: AMD64 **[REQUIRED] description of errors** 没错,又是我,神奇的事情天天有。哈哈。在frp正常运行后,我尝试远程SSH访问内网的群晖。我22端口对应remote_port: 8222。神奇的事情发生了,frp监听的是我曾经的6006端口,配置重已经删了的,我将配置不变的情况下[SSH]改为[SSH2] 这时frp自动设置为8003.我增加其他服务时,frp一定会设置一个8003,哪怕让其他配置没有端口..... **confile** <!-- Please pay attention to hiding the token, server_addr and other privacy information --> frpc.ini [common] server_addr = XXX.XXX.XXX.XXX server_port = 7000 token = XXXXX [DSM] type = tcp local_ip = 127.0.0.1 local_port = 5000 remote_port = 6001 [Jellyfin] type = tcp local_ip = 127.0.0.1 local_port = 8096 remote_port = 7001 [Tinymediamanger] type = tcp local_ip = 127.0.0.1 local_port = 5800 remote_port = 8001 [Qbittorrent] type = tcp local_ip = 127.0.0.1 local_port = 8989 remote_port = 9010 [NextCloud] type = tcp local_ip = 127.0.0.1 local_port = 8888 remote_port = 9888 [Onlyoffice] type = tcp local_ip = 127.0.0.1 local_port = 8002 remote_port = 8002 [SSH3] type = tcp local_ip = 127.0.0.1 local_port = 22 remote_port = 8222 [route] type = tcp local_ip = 192.168.2.1 local_port = 80 remote_port = 8021 [N1] type = tcp local_ip = 192.168.2.100 local_port = 80 remote_port = 8100 dashboard 显示的: ![image](https://user-images.githubusercontent.com/75162522/101165484-b3c26d00-3671-11eb-8112-f49759bfa374.png) 诡异的8003端口 直接在vps查看端口情况。 ![image](https://user-images.githubusercontent.com/75162522/101165564-d48ac280-3671-11eb-8179-392e984b4c50.png) **log file** <!-- If the file is too large, use Pastebin, for example https://pastebin.ubuntu.com/ --> **Steps to reproduce the issue** 1. 2. 3. **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)
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#1695
No description provided.