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”

Skriv et svar

Din e-mailadresse vil ikke blive publiceret. Krævede felter er markeret med *