ExitPolicy torrc dual-stack (unify accept/accept6 and reject/reject6)
Mentioned in #21524 (closed) I suggested that there is not much use to distinguish accept/accept6 and reject/reject6 in the torrc.
In most cases, it is unambiguous what we want, e.g.:
-
1.2.3.4we obviously want IPv4; -
[2000::]/8we obviously want IPv6; -
*andprivatewe are probably fine with dualstack; - and if we don't want dualstack, we have
0.0.0.0/0for IPv4 wildcard and[::]/0for IPv6. Specific to #21524 (closed) we could haveprivate4andprivate6in addition to dualstackprivate.
In all the above cases, we don't really need distinguishable accept4 and accept6 keywords, we can deduce the address family straight from the rules themselves. So, this proposal would modify the accept and reject keywords to be dual-stack.
This of course is a big proposal and will mess up current torrcs everywhere, so we need to figure out:
- Are we interested in such a change?
- If so, how do we wean off people from
accept6andreject6? - Also, how do we handle users' expectations that
accept *:*is IPv4-only currently? Are we okay to suddenly make that dual-stack?
Edited by c