]> git.ipfire.org Git - thirdparty/openvpn.git/commitdiff
Depreciation warning for --topology net30 on servers with IPv4 pools.
authorGert Doering <gert@greenie.muc.de>
Sat, 20 Jun 2020 18:05:32 +0000 (20:05 +0200)
committerGert Doering <gert@greenie.muc.de>
Sat, 20 Jun 2020 20:56:19 +0000 (22:56 +0200)
IPv4 pool handling needs lots of extra code to deal with "topology net30",
so we want to remove that combination in a future release.

Warn people about this in 2.5 so nobody is hit by this as a surprise.

Client- and ifconfig-support for net30 will stay, as "just net30" is not
what brings maintenance effort here (totally removing all options except
"topology subnet" would be beneficial but is a bit too radical today)

Trac: #1288

Signed-off-by: Gert Doering <gert@greenie.muc.de>
Acked-by: Arne Schwabe <arne@rfc2549.org>
Message-Id: <20200620180532.15738-1-gert@greenie.muc.de>
URL: https://www.mail-archive.com/openvpn-devel@lists.sourceforge.net/msg20041.html
Signed-off-by: Gert Doering <gert@greenie.muc.de>
src/openvpn/helper.c

index fbfc287f13aa41bc6f93932bbff6f06b04df48c9..2cc579e773b1b205c6053478a9abce1444b35a9d 100644 (file)
@@ -359,6 +359,14 @@ helper_client_server(struct options *o)
             }
 
             push_option(o, print_opt_topology(topology, &o->gc), M_USAGE);
+
+            if (topology == TOP_NET30 && !(o->server_flags & SF_NOPOOL))
+            {
+                msg(M_WARN, "WARNING: --topology net30 support for server "
+                    "configs with IPv4 pools will be removed in a future "
+                    "release. Please migrate to --topology subnet as soon "
+                    "as possible.");
+            }
         }
         else if (dev == DEV_TYPE_TAP)
         {