http://mabufs.i2p/blog/proxy-server-freebsd
To make all traffic go through Tor add a line or make it only through the Tor network, respectively: upstream socks5 127.0.0.1:9050 or upstream socks5 127.0.0.1:9050 ".onion" To work with I2P network we add the following, similarly to the example above: upstream http 127.0.0.1:4444 or upstream http 127.0.0.1:4444 ".i2p" In the settings of your application you specify http proxy 127.0.0.0:8888 in the traffic of which you want to let through the proxy server And add to /etc/rc.conf a line...