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

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