Safe with FreeBSD + Tor + Polipo + xxxterm

Staying absolutely safe on the Internet is nearly impossible. However, there are certain tools and software to help achieve at least a comfortable amount of anonymity and privacy. Here I will explain how to setup a safe environment using PC-BSD (FreeBSD), TorPolipo and xxxterm.

xxxterm – a minimalist secured browser

xxxterm is a minimalist web browser with sophisticated security features built-in rather than through an add-on. In addition to providing a familiar mouse-based interface like other web browsers, it offers a set of vi-like keyboard commands for users who prefer to keep their hands on the home row of their keyboard. The default settings provide a secure environment. With simple keyboard commands, the user can “whitelist” specific sites, allowing cookies and scripts from those sites. It is ISC licensed.

Tor – The Onion router

Tor is free software and an open network that helps you defend against a form of network surveillance that threatens personal freedom and privacy, confidential business activities and relationships, and state security known as traffic analysis.

Polipo – a caching web proxy

Polipo is a small and fast caching web proxy (a web cache, an HTTP proxy, a proxy server). While Polipo was designed to be used by one person or a small group of people, there is nothing that prevents it from being used by a larger group.

PC-BSD – a FreeBSD based Operating System

PC-BSD is a user friendly desktop Operating System based on FreeBSD. Known widely for its stability and security in server environments, FreeBSD provides an excellent base on which to build a desktop operating system. PC-BSD uses a host of popular open source window managers and uses a custom-tailored application installer that puts popular applications in easy reach of users.

[banner network=”altervista” size=”125X125″ align=”alignright”]

How to install and use them?

This is very easy, like drinking a cup of coffee (a home made good one please!)

Software installation(user is root)

portmaster www/xxxterm www/polipo security/tor

Configure tor

cp /usr/local/etc/tor/torrc.sample /usr/local/etc/tor/torrc
  • Add/Modify the following lines in /usr/local/etc/tor/torrc
RunAsDaemon 1

Configure polipo

cp /usr/local/etc/polipo/config.sample /usr/local/etc/polipo/config
  • Add/Modify the following lines in /usr/local/etc/polipo/config
socksParentProxy = "localhost:9050"

diskCacheRoot = ""

daemonise = true

logSyslog = true

Start tor and polipo daemons

tor_enable="YES"
polipo_enable="YES"

Configure xxxterm (with your regular user)

echo “http_proxy = http://127.0.0.1:8123/” >> ~/.xxxterm.conf

Start browsing the internet safe.

xxxterm

Careful internet is watching you!!!

Using the software discussed here cannot protect you against bad behavior. For instance, it is not very wise to login using your user name and passwords (especially if you use the same password everywhere) on to websites like GMail or Facebook. Using this software will not protect you from malicious Internet sites that collect your personal information or sites that phish you. Also, software is not perfect. It may contain bugs and security holes. Do not rely completely on this software. Be careful. As pointed out by one reader, this configuration, without hiding clients DNS requests, can be dangerous in the case someone wants to find you. Therefore it’s absolutely important to run xxxterm with a socks proxy, this way the DNS query will be executed inside the tor network, giving you much more protection. To do this you can install torsock and execute xxxterm through usewithtor

portmaster net/torsocks
usewithtor xxxterm

Don’t forget to comment the proxy in the xxxterm.conf

Acknowledgements

Thanks a lot to 10wattmindtrip for the help.

Pubblicato da antenore

I'm a free software addicted and an IT senior consultant, married, father and a funny friend

11 Risposte a “Safe with FreeBSD + Tor + Polipo + xxxterm”

    1. Yes, by default OpenBSD is more secure, I worte this article for who have FreeBSD like me.
      I like and use xxxterm togethere with firefox 9.0.1 for different purposes and setup.

      Horrible (I answer to your 2nd comment) is just a personal feeling, for me both are great browsers for the functionalities they offer.

      Thanks for the comment anyway, next article I’ll be more precise.

  1. This configuration shown is not safe at all because you also need to redirect DNS requests through tor. So, setting a http proxy is not sufficient. You absolutely need to set SOCKS proxy too.

  2. Hello bro , Thanks you very much for this helpful tutorial .
    i have some question , should i install polipo and torsocks ??? or just torsocks do the job ??
    and also how can i run the whole system under torsocks ?

    Thanks in advance

  3. Hello Ali,

    Thanks for you comment.

    Polipo is just a web proxy, so you can use it just with applications that support http or https proxy.

    The problem with polipo is that DNS requests are handled locally by the operating system, making you visible by the host provider.

    To avoid this problem, if you have applications that support socks proxies, you can use torsocks that will send the whole traffic (also DNS requests) through tor.

    You can for example execute “torsock firefox” or “torsocks pidgin”, etc.

    Using tor for all the application is not that easy, at a kernel level you can cannot proxyfy all the connections.

    What you can do is to use VPN and tor together to become almost invisible, but careful, that doesn’t mean that you are 100% safe!!

    Moreover relying on tor for everything you can give to an attacker (or defender) more details about you.

    If you just want more privacy polipo and torsocks do the job.

Lascia un commento

Il tuo indirizzo email non sarà pubblicato. I campi obbligatori sono contrassegnati *

Questo sito usa Akismet per ridurre lo spam. Scopri come i tuoi dati vengono elaborati.