Category Archives: Networking

Come crearsi il proprio Cloud cifrato con Tomb e SSHFS

Questo HowTo va letto con la consapevolezza che il concetto di cloud (avere i propri file sparsi per la rete) va nella direzione opposta alla sicurezza. Nonostante questo HowTo renda i tentativi di “farsi gli affari nostri” molto difficili, evitare di spargere in giro i nostri dati è sicuramente la soluzione migliore.

Da un po di tempo ero alla ricerca di una soluzione che mi permettesse di avere a disposizione alcuni dei miei file tra diversi PC senza però dovermi affidare all’uso di servizi commmerciali come DropBox o UbuntuONE.

Innanzitutto per una limitazione tecnica di queste soluzioni:
entrambi i servizi si basano sulla sincronizzazione di una cartella locale del PC su un server remoto (senza gestione dei delta) e questo se si parla di un file “contenitore” cifrato si traduce in una sua completa ri-sincronizzazione ad ogni seppur minima modifica degli elementi contenuti al suo interno (potete immaginare quanto sia scomoda una soluzione del genere se il file “contenitore” cifrato è grande qualche GigaByte).
Di conseguenza utilizzare in maniera sicura questi servizi diventa molto scomdo e non resta quindi che scartare l’ipotesi di una cifratura controllata da noi ed affidarsi all’onestà dei gestori.
Come si dice: fidarsi è bene ma non fidarsi è molto meglio, soprattutto se ad essere in ballo sono i nostri dati personali, la nostra privacy o la nostra sicurezza.

A supporto di una soluzione cloud sicura “fatta in casa” (di cui abbiamo il completo controllo) possiamo utilizzare programmi completamente open-sources e free.
Oltre ad un server remoto da utilizzare come storage dei nostri dati, avremmo quindi bisogno di:

  1. Tomb
  2. openssh
  3. sshfs

Tomb permette di creare dei file contenitori cifrati con AES-256, inoltre contiene interessanti feature per la gestione della chiave segreta come:

  • la possibilità di salvarla in una pendrive usb,
  • la possibilità di proteggerla attraverso la tecnica della steganografia all’interno di un’immagine]

A queto punto, dopo aver installato sul nostro PC tomb e sshfs, passiamo alla creazione della tomba sul nostro PC.
NB: anche se “scomodo” (soprattuto per file di grandi dimensioni) è importate creare la tomba sul nostro PC e successivamente spostarla sul server (soprattutto se il server che pensiamo di utilizzare è condiviso e non ha la partizione swap cifrata).

Il comando per la creazione della tomba è il seguente:

$ tomb-open
Invalid number of options.
[*] Tomb – simple commandline tool for encrypted storage
. version 1.2 (Nov/2011) by Jaromil @ dyne.org

[*] Guided creation of a new Tomb

A Tomb is a special folder that keeps files safe using a password:
it makes use of strong encryption and helps you keep the keys on a
separate USB storage for safer transports.

Inside a Tomb you can store private informations without fear that
other people possessing it will discover your secrets, unless they
have your USB key and your password.

If you choose to proceed now, we’ll guide you through the creation
of a new Tomb.

If you will, I’ll be your Crypto Undertaker.

Do you want to proceed, Master? (y/n) y

[*] Please type in the name for your new tomb file:
> test

[*] How big you want the Tomb to be?
. Type a size number in Megabytes:
> 500

A questo punto inserire la propria password e successivamente scegliere la passphrase della tomba.
Terminata la creazione della tomba, la carichiamo sul server utilizzando scp in questo modo:

scp -P PORT /home/user/test.tomb user@IP.IP.IP.IP:/home/user/cloud

Al termine dell’operazione, montiamo la cartella remota attraverso sshfs in questo modo:

sshfs -o allow_root user@IP.IP.IP.IP:/home/user/cloud /home/user/cloud

Se non dovesse funzionare controllare che all’interno del file di confurazione /etc/fuse.conf sia decommentata la seguente entry:

# Allow non-root users to specify the ‘allow_other’ or ‘allow_root’
# mount options.
#
user_allow_other

L’utilizzo di sshfs ci garantisce il transito dei dati tra il nostro server e noi avvenga in maniera cifrata.

A questo punto apriamo la tomba in questo modo:

$ tomb –ignore-swap open /home/user/cloud/test.tomb -k /home/user/test.tomb.key

La tomba si monta automaticamente dentro /mount/test.tomb/.
Tenete presente che la tomba inizia a sincronizzare gli elementi al suo interno al momento della chiusura, ovvero quando si lancia il seguente comando:

$ tomb close

Considerate che l’esecuzione del comando non sarà immediata e dipenderà dalla dimensione dei file caricati e dalla velocità in upload della vostra connessione. Mettetevi comodi ed aspettate.

Twitter It!

Tor2Web 2.0

Avevo già parlato tempo fa di Tor2Web (qui) e di come questo servizio permetta di raggiungere i siti pubblicati all’interno della rete anonima del progetto Tor (hidden services), con dominio .onion, senza aver installato e configurato Tor.

Con questo progetto si mantiene anonima la locazione del server e se ne aumenta la visibilità permettendo a tutti gli utenti collegati ad internet di accedervi. Al tempo stesso però non garantisce in alcun modo l’anonimato di chi visita il sito.

Va fatta molta attenzione su questo punto ed è bene ricordarsi sempre che se si vuole “rimanere anonimi” è necessario installare e configurare tor.

Ieri è stata rilasciata la nuova versione di Tor2Web (wiki) che introduce alcune novità:

  • A clear disclaimer warning the user that the content is not being served directly from the server, but it comes from the Tor network
  • Contact forms for abuse complaints and to report broken websites
  • Transparent rewriting of URLs into the tor2web form (i.e. so4rmjdiwmqjosxz.onion become so4rmjdiwmqjosxz.tor2web.org)

Inoltre questa versione introduce delle blocklist utili per inibire l’accesso a determinati hidden services ritenuti “fuori policy” dai manteiner dei nodi tor2web. Questa ne è un esempio: http://wiki.tor2web.org/index.php/BlockList_for_tor2web.infosecurity.ch

Per il codice, questa è la pagina GitHub dedicata al progetto: https://github.com/globaleaks/tor2web-2.0

Twitter It!

EFF Campaign Increases the Number of Tor Relays by 13.4%

Articolo originale pubblicato sul sito della EFF
Watching the revolutions unfolding in the Arab world this springtime – and learning details first-hand from our friends on the ground – we at EFF struggled to find meaningful ways to support democratic activists and promote online freedom of expression. But we didn’t just want to lend a helping hand –we wanted to create a pathway so that anyone, anywhere in the world, could contribute to making the Internet more private and more resistant to censorship. From these discussions came our idea of launching the Tor Challenge.

We started the Tor Challenge with a simple goal: to launch 100 new Tor relays. Tor is software that individuals –including online activists in authoritarian regimes– can use to mask their IP addresses and proxy out to uncensored networks, helping them dodge network surveillance and elude online censorship. But Tor isn’t merely software – it’s also a network of volunteer computers, each donating bandwidth and acting as a router so that people can bounce their requests through the network, thereby obscuring their digital tracks.

We launched our campaign on May 31, 2011 –and within days surpassed our goal of 100 new relays. Today, we are closing the challenge after adding 549 new relays to the network. This includes:

Exit relays: 123
Middle relays: 299
Bridges: 127
Current bandwidth: 326,084 kb/s
Percentage of Tor network bandwidth: 5.77%

While some of the new relays were later taken offline, the majority of them stayed operational. The total number of public relays in the Tor network has increased by 13.4% during the course of our campaign.

There is an acute need for circumvention technologies in authoritarian regimes – and even activists in many would-be progressive societies may feel safer if they can avoid the electronic gaze of authorities. Jacob Appelbaum, a security researcher and advocate for the Tor Project, recently wrote:

The Tor Challenge is a phenomenal show of support for the Tor network and the network graphs show the results. The efforts expended by EFF supporters around the world have helped to continue the Tor network’s growth in a positive direction. Additionally, the educational efforts made by the EFF have similarly impacted the world; people everywhere understand the need for anonymity as well as how to use Tor to meet their needs in a practical manner.

While EFF’s Tor Challenge may have ended, individuals and organizations that want to create a more private Internet can still run Tor relays. And those who want to support Tor but aren’t tech-savvy can find an ally in TorServers.net, an organization based in Germany that provides technical assistance and support in running Tor relays.

Our gratitude goes out to the hundreds of individuals who set up relays and donated bandwidth to help strengthen the network. They are true defenders of online freedoms.

Twitter It!

Torbutton 1.4.0 Released

La nuova versione di Tor Button è stata rilasciata

Torbutton 1.4.0 has been released at: https://www.torproject.org/torbutton/

The addon has been disabled on addons.mozilla.org. Our URL is now canonical.

This release features support for Firefox 5.0, and has been tested against the vanilla release for basic functionality. However, it has not been audited for Network Isolation, State Separation, Tor Undiscoverability or Interoperability issues due to toggling under Firefox 5.

If you desire Torbutton functionality with Firefox 4/5, we recommend you download the Tor Browser Bundle 2.2.x alphas from: https://www.torproject.org/dist/torbrowser/ or run Torbutton in its own separate Firefox profile.

The reasons for this shift are explained here: https://blog.torproject.org/blog/toggle-or-not-toggle-end-torbutton

If you find bugs specific to Firefox 5, toggling, and/or extension conflicts, file them under the component “Torbutton”: https://trac.torproject.org/projects/tor/report/14

Twitter It!

iPhone Tracker

This open-source application maps the information that your iPhone is recording about your movements. It doesn’t record anything itself, it only displays files that are already hidden on your computer.

Washington DC to New York from Alasdair Allan on Vimeo.

“Alasdair Allan e Pete Warden sono due esperti informatici e hanno da poco scoperto una funzione di iOS 4, la versione più recente del sistema operativo degli iPhone e degli iPad, che potrebbe creare qualche problema ad Apple sul delicato fronte della privacy.
Utilizzando una funzionalità nascosta di iOS 4, i dispositivi Apple che si collegano alla rete cellulare registrano continuamente in un file la posizione geografica dei loro proprietari. Non è ancora chiaro perché Apple faccia raccogliere ai proprio dispositivi queste informazioni, ma il file deve essere particolarmente importante perché viene salvato nei backup ogni volta che si collega l’iPhone o l’iPad al computer e viene anche  trasferito quando si passa da un vecchio dispositivo a uno nuovo, spiegano i due esperti…”

More Info: http://petewarden.github.com/iPhoneTracker/

Twitter It!

GNS3 v0.7.3 on Ubuntu 10.10

Nei repository ufficiali di Ubuntu 10.10 è presente una versione di GNS3 poco aggiornata, la 0.7.1 .

Sul web sono disponibili numerose guide per installare da sorgenti l’ultima versione del simulatore GNS3 arrivato alla versione 0.7.3, forse però la strada più semplice e veloce da seguire è quella di aggiugnere il repository di Samuel Taylor che contiene la versione più recente già pacchettizzata.

La procedura è semplice, basta eseguire questo programma da terminale:

$ sudo add-apt-repository ppa:samuel-taylor/ppa
Avremmo un output simile a questo:
Executing: gpg –ignore-time-conflict –no-options –no-default-keyring –secret-keyring /etc/apt/secring.gpg –trustdb-name /etc/apt/trustdb.gpg –keyring /etc/apt/trusted.gpg –primary-keyring /etc/apt/trusted.gpg –keyserver keyserver.ubuntu.com –recv F67B8387486A56830C75E588264A906EEF2E084F
gpg: richiesta della chiave EF2E084F dal server hkp keyserver.ubuntu.com
gpg: chiave EF2E084F: chiave pubblica «Launchpad PPA for Samuel J. Taylor» importata
gpg: Numero totale esaminato: 1
gpg:               importate: 1  (RSA: 1)
A questo punto, dopo aver aggiornato i repository non resta che installare GNS3 0.7.3
$ sudo apt-get update
$ sudo apt-get install gns3
Il pacchetto scaricato dai nuovi repository però non continene qemuwrapper.py necessario per far funzionare qemu. Per risolvere ho scaricato i sorgenti di GNS3 reperibili qui e dopo aver estratto l’archivio ho copiato l’intera cartella qemuwrapper dentro $ ~/.gns3/
Nella configurazione di GNS3 bisogna impostare i vari path in questo modo:
Ora per poter utilizzare anche gli host nelle topologie di GNS3, dobbiamo scaricare il microcore linux disponibile qui e configuare in questo modo GNS3 per utilizzarlo
Ora possiamo configurare e studiare in maniera realistica una VPN utilizzando due host virtualizzati da qemu e due router virtualizzati da dynamips :)
Twitter It!

How To Circumvent an Internet Proxy

Twitter It!