grugq / PORTALofPi

PORTAL of Pi - RaspberyPi based PORTAL device. Certified UNIX Network Technicians only!
331 stars 54 forks source link

try fixing .onion transparent proxying #16

Closed grugq closed 8 years ago

grugq commented 10 years ago
VirtualAddrNetwork 10.192.0.0/10             
AutomapHostsOnResolve 1                                              
TransPort 9040                                                          
TransListenAddress 172.16.0.1

replace with:

VirtualAddrNetworkIPv4 172.17.0.0/16  
securedmh commented 10 years ago

Easy fix for this based on Tor docs 1.

Add to /etc/resolv.conf nameserver 127.0.0.1

Update iptables iptables -t nat -A OUTPUT -p tcp -d 10.192.0.0/10 -j REDIRECT --to-ports 9040

ad90df8e708e8fa8153e56a059 commented 8 years ago

I am able to resolve .onions without any changes to the current code. Was this an old upstream bug with tor? Unless you are talking about transparently resolving .onions for the Pi's own, non-forwarded traffic, then I think you can mark this resolved.

grugq commented 8 years ago

to be honest, I am not sure what the issue was that this describes.

Since there seems to be no problem with actually access .onion domains, I'm just going to close this ticket.