My Oracle Support Banner

OL6: How To Setup an IPv4 and IPv6 VSFTP Server in The Same Host? (Doc ID 2691597.1)

Last updated on OCTOBER 07, 2022

Applies to:

Linux OS - Version Oracle Linux 6.0 and later
Generic Linux


 VSFTP configuration file /etc/vsftpd/vsftpd.conf details that it cannot be listening to IPv4 and IPv6 at the same time:

# When "listen" directive is enabled, vsftpd runs in standalone mode and
# listens on IPv4 sockets. This directive cannot be used in conjunction
# with the listen_ipv6 directive.
# 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 !!

The statement points out that it is not necessary to listen on both IPv4 and IPv6 sockets. This comment is for the usage of IPv4 FTP clients that are able to work and connect to IPv6 servers directly. It does not imply any type of redirection from IPv4 to IPv6. If required to make FTP connections using an IPv4 address or an IPv6 address to the same server, how to achieve that goal and make both running in the same host server.


To view full details, sign in with your My Oracle Support account.

Don't have a My Oracle Support account? Click to get started!

In this Document

My Oracle Support provides customers with access to over a million knowledge articles and a vibrant support community of peers and Oracle experts.