Tor relay

Tor relay on FreeBSD 7.2 and 8.0
Lars Sommer, lasg@lasg.dk, 2008
DISCLAIMER: This is a personal note made for personal usage. It might not be easy usable nor explaining.


Create a jail:

ezjail-admin create -f lasg -i -s 5G -c eli tor 192.168.1.53
passphrase: mysecretpw

/usr/local/etc/rc.d/ezjail.sh start tor


Port forward port 9001

if using IPF:
YOU SHOULD USE pf INSTEAD!!!

Edit /etc/ipnat.rules
Add this line:
rdr xl0 0.0.0.0/0 port 9001 -> 192.168.1.53 port 9001

/etc/rc.d/ipnat restart


Install TOR

portsnap fetch extract update
cd /usr/ports/security/tor
make install


Configure it

cd /usr/local/etc/tor/
cp torrc.sample torrc
vi torrc

Add:
Nickname ITPOL3
ContactInfo Lars Sommer, abuse@lasg.dk
BandwidthRate 2560 KB
BandwidthBurst 2570 KB
ORPort 9001
ExitPolicy reject *:*

Add to rc.conf:
tor_enable=”YES”

Leave a Reply

Your email address will not be published. Required fields are marked *

*

You may use these HTML tags and attributes: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <strike> <strong>