[tor-bugs] #2478 [Tor Client]: Gather simulator parameters for test lab

Tor Bug Tracker & Wiki torproject-admin at torproject.org
Tue Feb 8 00:40:57 UTC 2011


#2478: Gather simulator parameters for test lab
------------------------+---------------------------------------------------
 Reporter:  mikeperry   |       Owner:  ioerror
     Type:  task        |      Status:  new    
 Priority:  normal      |   Milestone:         
Component:  Tor Client  |     Version:         
 Keywords:              |      Points:         
   Parent:  #2492       |  
------------------------+---------------------------------------------------

Comment(by ioerror):

 I'm using the following to transparently Torify connections:

 {{{
 #!/bin/bash -x
 # This is a small script to ensure that a user always uses Tor to access
 the internet
 ANONUSER=username
 TORTRANSPORT=9040
 DNSPORT=53

 # The following rules will transparently Torify everything
 iptables -t nat -A OUTPUT -p tcp -m owner --uid-owner $ANONUSER -m tcp -j
 REDIRECT --to-ports $TORTRANSPORT
 iptables -t nat -A OUTPUT -p udp -m owner --uid-owner $ANONUSER -m udp
 --dport $DNSPORT -j REDIRECT --to-ports $DNSPORT
 iptables -t filter -A OUTPUT -p tcp -m owner --uid-owner $ANONUSER -m tcp
 --dport $TORTRANSPORT -j ACCEPT
 iptables -t filter -A OUTPUT -p udp -m owner --uid-owner $ANONUSER -m udp
 --dport $DNSPORT -j ACCEPT
 iptables -t filter -A OUTPUT -m owner --uid-owner $ANONUSER -j DROP
 }}}

 I'm using the following additions to my torrc:
 {{{
 DNSListenAddress 127.0.0.1
 DNSPort 53
 TransListenAddress 127.0.0.1
 TransPort 9040
 AutomapHostsOnResolve 1
 }}}

-- 
Ticket URL: <https://trac.torproject.org/projects/tor/ticket/2478#comment:5>
Tor Bug Tracker & Wiki <https://trac.torproject.org/>
The Tor Project: anonymity online


More information about the tor-bugs mailing list