[Author Prev][Author Next][Thread Prev][Thread Next][Author Index][Thread Index]

Re: [tor-relays] Please enable IPv6 on your relay!



Aaron Hopkins:
> I tried configuring this a while ago, but got confused by what
> appeared to be conflicting documentation for IPv6 exit policies.  Is
> the ExitPolicy for IPv6 completely separate (only using
> accept6/reject6 lines) or does it also make use of lines like
> "ExitPolicy accept *:80" which mention a port but not an IPv4 IP?

Wildcard accept/reject policies seem to catch both IPv6 and v4 going
from the comment (and code) in src/or/routerparse.c[1]:

> /** Parse the addr policy in the string <b>s</b> and return it.  If
>  * assume_action is nonnegative, then insert its action (ADDR_POLICY_ACCEPT or
>  * ADDR_POLICY_REJECT) for items that specify no action.
>  *
>  * The addr_policy_t returned by this function can have its address set to
>  * AF_UNSPEC for '*'.  Use policy_expand_unspec() to turn this into a pair
>  * of AF_INET and AF_INET6 items.
>  */


[1]
https://gitweb.torproject.org/tor.git/tree/src/or/routerparse.c?id=tor-0.2.7.1-alpha#n3354
(Opening that link may hang tbb for a bit)
_______________________________________________
tor-relays mailing list
tor-relays@xxxxxxxxxxxxxxxxxxxx
https://lists.torproject.org/cgi-bin/mailman/listinfo/tor-relays