Skip to content

Allow IPv6-only tunnels

Antonio Quartulli openvpn-devel 1 version NAK

Status from this message: NAK, as discussed on IRC, because this breaks (surprisingly) persistent

Get series with b4
b4 am [email protected]...

Versions newest first

  1. v4 Latest7 patches 10 repliesNAK

Patches in v4

#Subject and filesSizeRepliesApplied
1/7pool: prevent IPv6 pools to be larger than 2^16 addressessrc/openvpn/pool.c+1 -11 reply
2/7pool: allow to configure an IPv6-only ifconfig-poolsrc/openvpn/multi.c src/openvpn/pool.c src/openvpn/pool.h+146 -534 replies
3/7allow usage of --server-ipv6 even when no --server is specifiedsrc/openvpn/helper.c+6 -21 reply
4/7pool: add support for ifconfig-pool-persist with IPv6 onlysrc/openvpn/options.c src/openvpn/pool.c+114 -333 replies
5/7route: warn on IPv4 routes installation when no IPv4 is configuredsrc/openvpn/route.c+12 -41 reply
6/7options: enable IPv4 redirection logic only if really requiredsrc/openvpn/options.c+8 -14 replies
7/7ipv6-pool: get rid of size constraintsrc/openvpn/helper.c src/openvpn/options.c src/openvpn/pool.c+24 -85 replies

Reviews trailers per patch

All 7 patches have a Reviewed-by or Acked-by of their own; the series has one for all of them.

PatchGert DoeringAntonio Quartulli
SeriesA-b
1/7A-b
2/7A-b
3/7A-b
4/7A-b
5/7A-b
6/7A-b
7/7A-b

Trailers given in replies are filled; those carried in the patches from earlier versions are outlined with dashes.

Read the v4 thread

Cover letter [Openvpn-devel] [PATCH v4 0/7] Allow IPv6-only tunnels

This patchset allows servers to work with a tunnel configured with IPv6 only (client code has already been merged).

This new v4 is the result of some more reviews, including an hardcore reviewing session that me and Gert had yesterday afternoon.

We found some interesting bugs and agreed on some
previously-not-well-defined behaviours.

The patchset is now ready for broader testing and potential final vetting.

In a nutshell, after applying this patchset, it will be possible to configure a server with just --server-ipv6 and no IPv4 at all (in the tunnel).

Happy hacking!

(Note: this code is also available at [1] in the ipv6-only branch)

Cheers,

Trac: #208
[1] https://gitlab.com/ordex986/openvpn

Antonio Quartulli (7):
pool: prevent IPv6 pools to be larger than 2^16 addresses
pool: allow to configure an IPv6-only ifconfig-pool allow usage of --server-ipv6 even when no --server is specified
pool: add support for ifconfig-pool-persist with IPv6 only
route: warn on IPv4 routes installation when no IPv4 is configured
options: enable IPv4 redirection logic only if really required
ipv6-pool: get rid of size constraint

 src/openvpn/helper.c  |  15 +-
 src/openvpn/multi.c   |  10 +-
 src/openvpn/options.c |  29 +++-
 src/openvpn/pool.c    | 317 ++++++++++++++++++++++++++++++++----------
 src/openvpn/pool.h    |   8 +-
 src/openvpn/route.c   |  16 ++-
 6 files changed, 302 insertions(+), 93 deletions(-)
Signature · 1 line
2.26.2