Install Tor bridge on FreeBSD

If you want to run tor on FreeBSD 8.0 you first have to update your port tree. If you not used with port please see the FreeBSD documentation.

This should fetch and install the newsest port tree:

portsnap fetch
portsnap extract

Now we need to install openssl from port and activate it.

cd /usr/ports/security/openssl
make install clean

 

edit the /etc/make.conf file and add this line:

WITH_OPENSSL_PORT=yes

now build and install tor:

cd /usr/ports/security/tor
make install clean

copy sample configuration:

cp /usr/local/etc/tor/torrc.sampl /usr/local/tor/torrc

add following lines:

SocksPort 0
ORPort 8443
BridgeRelay 1
Exitpolicy reject *:*

I use port 8443 change it to what you want and open it for your server.

start torbridge:

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

check log:

tail -f /var/log/tor

if you want to start your bridge on boot add this line to /etc/rc.conf

tor_enable="YES"

you should have ntpd running to have correct time

ntpd_enable="YES"

Leave a Reply

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