Tor + DD-WRT + amateur = Request for intellectual welfare

Post new topic   Reply to topic    DD-WRT Forum Index -> Advanced Networking
Goto page Previous  1, 2
Author Message
Harrumph
DD-WRT Novice


Joined: 26 Aug 2011
Posts: 14

PostPosted: Mon Aug 29, 2011 21:17    Post subject: Reply with quote
Okay I'm dumb. I just can't get iptables to route everything for me, either I don't get access through the router or it appears to work but my external IP is still my own.

There are a few threads on various forums about doing this, but none have been enough to help me make the jump from thinking I understand it to actually implementing it.

I tried tinkering with both Privoxy and Polipo too. Any advice would be greatly appreciated, I am pulling out what little hair I have left.
Sponsor
wunderkind
DD-WRT User


Joined: 02 Jan 2009
Posts: 61
Location: Asheville NC, USA

PostPosted: Wed Sep 07, 2011 12:28    Post subject: Reply with quote
The first step should be trying to get Tor working. Telnet into the router and configure tor by modifying the torrc file. Its fairly self explanatory but their is also tons of documentation at the onion router project. Run Tor manually, make sure it connects to the network then set it to run automatically by creating a script to run on start up, plenty of stuff in the wiki and forum to help with that one. Make sure you can set your browser or some other program to use Tor as a proxy and that it works.

The next step would be the iptable rules. I got this example

# iptables -A PREROUTING -t nat -i eth0 -p tcp --dport 80 -j DNAT --to 192.168.1.2:8080
# iptables -A FORWARD -p tcp -d 192.168.1.2 --dport 8080 -j ACCEPT

from http://fclose.com/b/linux/816/port-forwarding-using-iptables/

I have started trying to get Tor working on my router and realize it wont complete the circuit and I am trying to resolve that problem before proceeding.

Edited to add: Confirmed Tor will connect run from a windows or linux PC, it just can't connect to the onion network from the router.

_________________
Vi Veri Veniversum Vivus Vici-
"By the power of truth, I, while living, have conquered the universe"

Buffalo WHR-HP-G54
SVN revision 17084M NEWD Eko STD-NoKaid

Asus RT-N16
SVN revision 16994 K26 Eko Mega Enhanced with OTWR

How to get dd-wrt help
wunderkind
DD-WRT User


Joined: 02 Jan 2009
Posts: 61
Location: Asheville NC, USA

PostPosted: Wed Sep 07, 2011 13:05    Post subject: Reply with quote
Discovered that no matter the timezone settings DD-WRT sets the local time to same as UTC. This is a problem because Tor Sees the local time and timezone settings and then calculates UTC which gives an incorrect time when trying to connect. For now I have set my router to use an incorrect timezone (UTC).
_________________
Vi Veri Veniversum Vivus Vici-
"By the power of truth, I, while living, have conquered the universe"

Buffalo WHR-HP-G54
SVN revision 17084M NEWD Eko STD-NoKaid

Asus RT-N16
SVN revision 16994 K26 Eko Mega Enhanced with OTWR

How to get dd-wrt help
Harrumph
DD-WRT Novice


Joined: 26 Aug 2011
Posts: 14

PostPosted: Tue Sep 13, 2011 11:24    Post subject: Reply with quote
Interesting. I haven't had any trouble at all getting Tor working, I just couldn't get things to route properly through Tor exclusively the way I want it to.
wunderkind
DD-WRT User


Joined: 02 Jan 2009
Posts: 61
Location: Asheville NC, USA

PostPosted: Tue Sep 13, 2011 22:08    Post subject: Reply with quote
it depends on your timezone settings and if you use the native ntp. You wont notice a problem if you are on GMT or close enough but any other timezone and if it is setup right you should get the error I got form tor saying it cant get a consensus because the clock is wrong. When I get some time I plan to install/setup the optware ntpclient. I found an article on it for similar issues with atheros based devices and want to try if I can get it working on broadcom.
_________________
Vi Veri Veniversum Vivus Vici-
"By the power of truth, I, while living, have conquered the universe"

Buffalo WHR-HP-G54
SVN revision 17084M NEWD Eko STD-NoKaid

Asus RT-N16
SVN revision 16994 K26 Eko Mega Enhanced with OTWR

How to get dd-wrt help
Harrumph
DD-WRT Novice


Joined: 26 Aug 2011
Posts: 14

PostPosted: Mon Dec 26, 2011 23:06    Post subject: Reply with quote
This just recently became a project again, guess it made it's way around the ToDo wheel.

Is there a simple way to force all outgoing traffic through the Tor network, maybe using Torsocks?

This should be obvious to the people reading this, but torrent has nothing to do with tor or Torsocks (and IMHO it never ever should, but that's another argument).
Harrumph
DD-WRT Novice


Joined: 26 Aug 2011
Posts: 14

PostPosted: Mon Apr 02, 2012 15:41    Post subject: Reply with quote
Any fresh ideas for a torrified AP?
wunderkind
DD-WRT User


Joined: 02 Jan 2009
Posts: 61
Location: Asheville NC, USA

PostPosted: Thu Jul 12, 2012 12:39    Post subject: Reply with quote
I kinda put this on the backburner and went back to using Tor on my home server.
_________________
Vi Veri Veniversum Vivus Vici-
"By the power of truth, I, while living, have conquered the universe"

Buffalo WHR-HP-G54
SVN revision 17084M NEWD Eko STD-NoKaid

Asus RT-N16
SVN revision 16994 K26 Eko Mega Enhanced with OTWR

How to get dd-wrt help
TD33
DD-WRT Novice


Joined: 15 Apr 2016
Posts: 8

PostPosted: Fri Apr 15, 2016 8:21    Post subject: Reply with quote
Harrumph wrote:
Is there a simple way to force all outgoing traffic through the Tor network, maybe using Torsocks?


Yes, Tor transparent proxy with GUI is now in DD-WRT beta builds
LookingForMyMojo
DD-WRT Guru


Joined: 29 Aug 2014
Posts: 693

PostPosted: Sun Oct 09, 2016 21:11    Post subject: Reply with quote
TD33 wrote:
Harrumph wrote:
Is there a simple way to force all outgoing traffic through the Tor network, maybe using Torsocks?


Yes, Tor transparent proxy with GUI is now in DD-WRT beta builds


Any idea on how to access the router after engaging transparent "tor" proxy? Web gui doesn't connect after.
Goto page Previous  1, 2 Display posts from previous:    Page 2 of 2
Post new topic   Reply to topic    DD-WRT Forum Index -> Advanced Networking All times are GMT

Navigation

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
You cannot attach files in this forum
You cannot download files in this forum