guardianproject / orbot

The Github home of Orbot: Tor on Android (Also available on gitlab!)
https://gitlab.com/guardianproject/orbot
Other
2.16k stars 335 forks source link

Implement DNS proxying in new go-tun2socks code #594

Closed n8fr8 closed 2 years ago

n8fr8 commented 2 years ago

We are moving Orbot to go-tun2socks (and perhaps eventually firestack), but are having trouble with proxying the DNS to the Tor localhost:5400 service.

Work is happening here: https://github.com/guardianproject/orbot/tree/dev_gotun2socks

and integration with go-tun2socks is here (due to the fact we can only have one golib in the app): https://github.com/n8fr8/IPtProxy/commits/master

Any tips, insights, help would be appreciated, and we do also have funding to support paid assistance. Contact me @n8fr8 on irc, matrix, twitter, etc, or nathan@guardianproject.info email.

n8fr8 commented 2 years ago

Currently thinking we need to integrate this code: https://github.com/celzero/firestack/blob/rdns/intra/dnsproxy/upstream.go

into the current UDP handler: n8fr8/IPtProxy@76d5ece