如何将 vsftpd 更改为 IPv4?

如何将 vsftpd 更改为 IPv4?

我正在设置两个在端口 21 和端口 990 上运行的 vsftp 服务。有人可以告诉我如何将其更改为 IPv4 而不是当前的 IPv6?我找不到将设置更改为 IPv4 的方法。下面是截图。

在此输入图像描述

答案1

来自 vsftpd.conf

# This directive enables listening on IPv6 sockets. By default, listening
# on the IPv6 "any" address (::) will accept connections from both IPv6
# and IPv4 clients. It is not necessary to listen on *both* IPv4 and IPv6
# sockets. If you want that (perhaps because you want to listen on specific
# addresses) then you must run two copies of vsftpd with two configuration
# files.
# Make sure, that one of the listen options is commented !!
listen_ipv6=YES

IOW 除非您想禁用 IPv6,否则无需更改任何内容。

相关内容