On 2019/08/03 13:21, Tobias Heider wrote: > As mlarkin@ noted the man page description of the protected-subnet option is > not > very helpful. This diff tries to make things a little clearer. > > Ok? > > Index: iked.conf.5 > =================================================================== > RCS file: /cvs/src/sbin/iked/iked.conf.5,v > retrieving revision 1.55 > diff -u -p -u -r1.55 iked.conf.5 > --- iked.conf.5 11 May 2019 16:30:23 -0000 1.55 > +++ iked.conf.5 3 Aug 2019 11:21:10 -0000 > @@ -578,7 +578,11 @@ This option is provided for compatibilit > .It Ic dhcp-server Ar address > The address of an internal DHCP server for further configuration. > .It Ic protected-subnet Ar address/prefix > -The address of the protected subnet within the internal network. > +The address of an additional hidden IPv4 or IPv6 subnet reachable over the > +gateway. This option is used to notify the peer of a private subnet
I agree it needs explaining better (the current description seems wrong to me) but I'm not sure this entirely helps. (Just looking at iked doesn't help understand this because iked has no client-side address-config support in the first place, so it's only something that would be useful when connection non-iked clients). Even after reading the RFC (https://tools.ietf.org/html/rfc7296#section-3.15.2) I don't feel like I entirely grok it, but I think this is something that would be set on the gateway to tell the client that it should negotiate an additional SA other than the one implied by the address + subnet from address configuration. "hidden", "private", etc, well it can be a standard public IP range, it's just an additional network that wants protecting by IPsec, so probably better to avoid words like that. > +behind the gateway. Networks specified in the "from" or > +"to" options are known to the peer and do not necessarily need to be included > +here. > .It Ic access-server Ar address > The address of an internal remote access server. > .El > (Also manpage nit: new sentence -> new line.)
