Tor relay ipv6 through tunnel broker on OpenWrt

somebody tried to set up a tor relay ipv6 through a tunnel broker on router with openwrt??

It looks feasible:

Unfortunately, all the known instructions that I found on the Internet did not help.6in4 interface itself is configured.ping and tracing on router itself and clients go through.all test sites confirm ipv6 work but when i enter address [20a3::] in torrc config and start relay itself relay doesn’t confirm ipv6 work.
address in brackets is just an example.only works if I configure a separate interface on client machine. why it does not work through the router I can not understand.

Did you add default IPv6-route for outgoing connections?
It is essential to provide IPv6-connectivity for local system.
Test it from OpenWrt-router:

traceroute6 openwrt.org

root@OpenWrt:~# traceroute6 openwrt.org
traceroute to openwrt.org (2a03:b0c0:3:d0::1af1:1), 30 hops max, 72 byte packets
 1  2a03:e2c0:bc7::1 (2a03:e2c0:bc7::1)  3.259 ms  4.221 ms  3.280 ms
 2  2a04:5200::1 (2a04:5200::1)  2.813 ms  2.717 ms  2.300 ms
 3  ae29-363.RT.MR.MSK.RU.retn.net (2a02:2d8:0:82a:232a::)  2.749 ms  2.653 ms                              2.688 ms
 4  RT.EQX.FKT.DE.retn.net (2a02:2d8::57f5:e0a2)  37.178 ms  37.149 ms  36.808 m                            s
 5  fra2-edge1.digitalocean.com (2001:7f8::36ed:0:2)  41.835 ms  fra1-edge1.digi                            talocean.com (2001:7f8::36ed:0:1)  39.363 ms  39.315 ms
 6  2604:a880:ffff:5::222 (2604:a880:ffff:5::222)  38.887 ms  *  39.844 ms
 7  wiki-01.infra.openwrt.org (2a03:b0c0:3:d0::1af1:1)  39.825 ms  39.508 ms  39.419 ms
root@OpenWrt:~#

It looks like you have native IPv6-connectivity.
And default IPv6-route via your ISP-gateway has higher priority.
If you really want to route IPv6-traffic for local system via the tunnel broker:

uci -q delete network.henetgw
uci set network.henetgw="route6"
uci set network.henetgw.interface="henet"
uci set network.henetgw.target="::/0"
uci commit network
service network restart
1 Like

seems to have managed to make it work.
added route6 and gateway for ipv6
and in sysctl.conf added net.ipv6.conf.all.forwarding = 1
thanks for tips and help.

1 Like

This topic was automatically closed 10 days after the last reply. New replies are no longer allowed.