Blame SOURCES/0015-Listen-on-IPv6-by-default.patch

ab00cd
From c5daaedf1efe23b397a5950f5503f5cbfac871c8 Mon Sep 17 00:00:00 2001
ab00cd
From: Martin Sehnoutka <msehnout@redhat.com>
ab00cd
Date: Wed, 7 Sep 2016 14:25:28 +0200
ab00cd
Subject: [PATCH 15/59] Listen on IPv6 by default.
ab00cd
ab00cd
---
ab00cd
 vsftpd.conf   | 14 +++++++++-----
ab00cd
 vsftpd.conf.5 |  5 +++--
ab00cd
 2 files changed, 12 insertions(+), 7 deletions(-)
ab00cd
ab00cd
diff --git a/vsftpd.conf b/vsftpd.conf
ab00cd
index db44170..ae6c6c9 100644
ab00cd
--- a/vsftpd.conf
ab00cd
+++ b/vsftpd.conf
ab00cd
@@ -111,12 +111,16 @@ xferlog_std_format=YES
ab00cd
 # When "listen" directive is enabled, vsftpd runs in standalone mode and
ab00cd
 # listens on IPv4 sockets. This directive cannot be used in conjunction
ab00cd
 # with the listen_ipv6 directive.
ab00cd
-listen=YES
ab00cd
-#
ab00cd
-# This directive enables listening on IPv6 sockets. To listen on IPv4 and IPv6
ab00cd
-# sockets, you must run two copies of vsftpd with two configuration files.
ab00cd
+listen=NO
ab00cd
+#
ab00cd
+# This directive enables listening on IPv6 sockets. By default, listening
ab00cd
+# on the IPv6 "any" address (::) will accept connections from both IPv6
ab00cd
+# and IPv4 clients. It is not necessary to listen on *both* IPv4 and IPv6
ab00cd
+# sockets. If you want that (perhaps because you want to listen on specific
ab00cd
+# addresses) then you must run two copies of vsftpd with two configuration
ab00cd
+# files.
ab00cd
 # Make sure, that one of the listen options is commented !!
ab00cd
-#listen_ipv6=YES
ab00cd
+listen_ipv6=YES
ab00cd
 
ab00cd
 pam_service_name=vsftpd
ab00cd
 userlist_enable=YES
ab00cd
diff --git a/vsftpd.conf.5 b/vsftpd.conf.5
ab00cd
index 0744f85..72bb86f 100644
ab00cd
--- a/vsftpd.conf.5
ab00cd
+++ b/vsftpd.conf.5
ab00cd
@@ -297,8 +297,9 @@ Default: NO
ab00cd
 .TP
ab00cd
 .B listen_ipv6
ab00cd
 Like the listen parameter, except vsftpd will listen on an IPv6 socket instead
ab00cd
-of an IPv4 one. This parameter and the listen parameter are mutually
ab00cd
-exclusive.
ab00cd
+of an IPv4 one. Note that a socket listening on the IPv6 "any" address (::)
ab00cd
+will accept both IPv6 and IPv4 connections by default. This parameter and the
ab00cd
+listen parameter are mutually exclusive.
ab00cd
 
ab00cd
 Default: NO
ab00cd
 .TP
ab00cd
-- 
ab00cd
2.14.4
ab00cd