frps能否强制只监听ipv4端口

Created on 4 Sep 2017  ·  8Comments  ·  Source: fatedier/frp

Issue is only used for submiting bug report and documents typo. If there are same issues or answers can be found in documents, we will close it directly.
(为了节约时间,提高处理问题的效率,不按照格式填写的 issue 将会直接关闭。)

Use the commands below to provide key information from your environment:
You do NOT have to include this information if this is a FEATURE REQUEST

What version of frp are you using (./frpc -v or ./frps -v)?
./frps

What operating system and processor architecture are you using (go env)?
centos 7.3 x64

Configures you used:
frps_full.ini 默认配置

Steps to reproduce the issue:

  1. 启动 ./frps -c ./frps_full.ini
  2. 无法访问 http://[server_ip]:7500
  3. netstat -nap|grep frps 发现监听的是ipv6:
    tcp6 0 0 :::7500 :::* LISTEN 2311/./frps
    tcp6 0 0 :::8080 :::* LISTEN 2311/./frps
    tcp6 0 0 :::7000 :::* LISTEN 2311/./frps
    tcp6 0 0 :::443 :::* LISTEN 2311/./frps
    udp6 0 0 :::7000 :::* 2311/./frps
  4. 配置aliyun主机的ipv6支持也无效。所以,能否强制只监听ipv4端口

Describe the results you received:
无法访问dashboard

Describe the results you expected:

Additional information you deem important (e.g. issue happens only occasionally):

Can you point out what caused this issue (optional)

All 8 comments

首先你要确定是否是由于这个原因造成的,还是说是因为其他原因。你要提供推理和分析的结果。

我也碰到类似的问题,在ubuntu本地是有ipv6的网络,但是在客户端连接后,在Ubuntu中使用
netstat -an|grep : 发现显示的都是tcp6 udp6,呈现出客户端的连接
frps.ini的设置
[common]
local_ip = 0.0.0.0
bind_port = 7000
客户端配置大致是下图
image
但是显示
image

额,虽然显示是这样,但是后续测试中发现,居然可以正常访问。。。ipv4的

遇到同样问题 ,阿里云主机突然监听ipv6 无法访问

阿里云的安全组只有IPV4,没有IPV6,所以监听IPV6的:::地址无法开放出外网。测试通过局域网是可以访问,但是安全组没办法通过。

所以,这个问题怎么解决??

腾讯云监听了ipv6,但是我设置放在同一个安全组下的,其他大部分是ipv4 只有mysql是ipv6, 然后本地客户端访问不了,connected refused

如何解决?我本地运行也是这样,设置了
[common]
bind_addr = 0.0.0.0 也是不行

Was this page helpful?
0 / 5 - 0 ratings

Related issues

zhangyongcun picture zhangyongcun  ·  3Comments

guodong1994 picture guodong1994  ·  4Comments

wztx picture wztx  ·  3Comments

jwangkun picture jwangkun  ·  3Comments

mbj2014 picture mbj2014  ·  3Comments