mirror of
https://github.com/fatedier/frp.git
synced 2026-05-15 08:05:49 -06:00
[GH-ISSUE #3372] 没有IPv6的情况下怎么使用frp #2699
Labels
No labels
In Progress
WIP
WaitingForInfo
bug
doc
duplicate
easy
enhancement
future
help wanted
invalid
lifecycle/stale
need-issue-template
need-usage-help
no plan
proposal
pull-request
question
todo
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference: github-starred/frp#2699
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Originally created by @pengbohua on GitHub (Mar 28, 2023).
Original GitHub issue: https://github.com/fatedier/frp/issues/3372
Bug Description
frpc Version
0.48.0
frps Version
0.48.0
System Architecture
linux/amd64
Configurations
frpc.ini
[common]
server_addr = x.x.x.x
server_port = 7000
tls_enable = true
[ssh]
type = tcp
local_ip = 127.0.0.1
local_port = 22
remote_port = 6000
Logs
connection
检查后发现根本没有IPv6地址怎么办?
Steps to reproduce
...
Affected area
@superzjg commented on GitHub (Mar 28, 2023):
虽然frp本身支持ipv6,但大部分人使用ipv4进行内网穿透,为了兼容不同的网络环境。
使用ipv6时,服务端地址开启ipv6,然后客户端server_addr参数设为ipv6地址即可。如果像你图上那样没有ipv6,自然不能用。
@pengbohua commented on GitHub (Mar 28, 2023):
那这种情况下怎么只用ipv4做内网穿透呢?我按教程配置frps, 7000默认是ipv6的端口。我进一步尝试打开udp 8008,但是看不到端口。请问该怎么做?谢谢
./frps -c frps.ini
2023/03/28 10:41:33 [I] [root.go:206] frps uses config file: frps.ini
2023/03/28 10:41:33 [I] [service.go:200] frps tcp listen on 0.0.0.0:7000
2023/03/28 10:41:33 [I] [service.go:302] nat hole udp service listen on 0.0.0.0:8008
2023/03/28 10:41:33 [I] [root.go:215] frps started successfully
公网服务器端口信息如下:
netstat -nltp
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:22 0.0.0.0:* LISTEN -
tcp 0 0 127.0.0.53:53 0.0.0.0:* LISTEN -
tcp6 0 0 :::7000 :::* LISTEN 11664/./frps
@superzjg commented on GitHub (Mar 29, 2023):
不用管,可能是因为go语言,netstat 不准,实际上已经在监听ipv4
@github-actions[bot] commented on GitHub (Apr 29, 2023):
Issues go stale after 30d of inactivity. Stale issues rot after an additional 7d of inactivity and eventually close.