madrid | dark and slow

My first, somehow, short film :)

Also at vimeo: .

Thanks to Juan Fernández who helped with ideas and equipment.

Latest Post
Saturday, February 27, 2010

Photos : 27/02/2010

Photos : 27/02/2010
Sunday, February 21, 2010

Photos : 2010/02/21

Photos : 2010/02/21

No photo has been cropped with magic-tools and so on, backgrounds are as they came out of the camera.

Bluer cave
Bluer cave by cdiaz on Zooomr

Blue cave
Blue cave by cdiaz on Zooomr

Grey cave
Grey cave by cdiaz on Zooomr

Black cave
Black cave by cdiaz on Zooomr

Orange corners
Orange corners by cdiaz on Zooomr

Detail by cdiaz on Zooomr

Fly, Swallow, fly !
Fly, Swallow, fly ! by cdiaz on Zooomr

Light and shadow
Light and shadow by cdiaz on Zooomr

And those are the set-ups. :)

Set-up by cdiaz on Zooomr

Set-up 2
Set-up 2 by cdiaz on Zooomr

Wednesday, February 17, 2010

HOWTO: SSH tunnelling and securing traffic for networks with closed ports

HOWTO: SSH tunnelling and securing traffic for networks with closed ports

On this howto I am going to show how to connect to any service at any port behind a router that restricts port access with a particular example: music streaming.


We are behind a router that restricts some services (or any services) and we want, for instance, to access a service on port 3000 but the network does not allow us to do it (typical work/university situation).

Connection to service on port 3000 is restricted

We will need:
  • A server with full Internet access that we control (say our Desktop PC at home)
  • A running Linux distro on the server
  • The will/nedd to connect to restricted services in another network.
The result:

Access to any service (port) we want on the Internet throught an encrypted connection on any OS (Linux, Windows...).
Now the firewall does not know what on this connection on port 80 :) -click to see a bigger version-

Home machine:

So let's start on our machine at home. We have first to install the SSH server, the package is usually called openssh. Once installed we can open the config file of the ssh daemon: "/etc/ssh/ssh_config" (the path may be different on your distro), it should look like this:

Host *
# ForwardAgent no
ForwardX11 yes
# RhostsRSAAuthentication no
# RSAAuthentication yes
# PasswordAuthentication yes
# HostbasedAuthentication no
# GSSAPIAuthentication no
# GSSAPIDelegateCredentials no
# BatchMode no
# CheckHostIP yes
# AddressFamily any
# ConnectTimeout 0
# StrictHostKeyChecking ask
# IdentityFile ~/.ssh/identity
# IdentityFile ~/.ssh/id_rsa
# IdentityFile ~/.ssh/id_dsa
# Port 22

Now, we suppose our evil-corporation network only allows connections to port 80 to surf the web so we are going to put the ssh server on port 80 to be sure we can connect to it, edit the file (as root) and change the line:

# Port 22


Port 80

Now the ssh server is ready to be run, you can leave the rest of the file as it is, we are not interested on the other features of ssh on this howto. So, open a terminal and, as root, run the sshd daemon:
root@mont-blanc ~ # sshd
sshd re-exec requires execution with an absolute path

OOPS, no worries there, we are going to find the path:

root@mont-blanc ~ # which sshd
root@mont-blanc ~ # /usr/sbin/sshd

Done ! Now our server is up and running on port 80.
All of our configuration at home is done, now put on a paper/e-mail, your public IP address and open (redirect) the port 80 on your router/firewall. You can retrieve your public IP on lot's of sites like this one, or this one.

Office/university/whatever machine:

Life is better on Linux, everybody knows that :), we are first going to see how to do it all under Linux.
First of all we are going to connect to our server at home, say for instance your home's IP is

ssh -N -D 2929 -P 80 user@

Type your password and you are done. Now a SOCKS proxy server is running on your local (office...) machine on port 2929.
-N will prevent a shell to be opened
-D stands for dynamic, which is dynamic port forwarding, every connection to the SOCKS proxy on this port will forward the port (3000 for instance) to our home server on this same port but, through the ssh link on 80.
-P the port of our ssh server
user is your username at home

Now we can configure our applications to use the SOCKS sever, for instance firefox can be set to use a SOCKS server in the preferences->advanced menu. There you must specify the localhost ip address and on this case the port 2929.
Surf the web now, and access you will see that your IP is the one you have at home.

Ok, but what about applications that have no options or preferences for a SOCKS host ?

proxychains comes to your rescue, download and install it (if you can't find a package for your distro, download the code and just run the usual ./configure , make and make install (as root).

Proxychains will allow us to run any application as if it was connected to the proxy we choose. How ? Proxychains connects to the proxy and when the application wants to connect to a host proxychains redirects the connection.
To configure it open "/etc/proxyhains.conf" and at the end of the file, remove any entry like:

socks4 9050

and substitute it by:
socks5 2929

Save and close. Now lets try it:

$ proxychains rhythmbox
|DNS-response| is

On this example we opened rhythmbox with proxychains and requested to listen a radio on port 8000, peace of cake :) now the firewall doesn't know what the traffic going through the port 80 is, but allows it and we can connect to a streaming server on port 8000 which otherwise we wouldn't have been able to.

On Windows machines instead of ssh you can use putty like this:

putty -ssh -N -D 2929 -P 80 user@

and sockscap instead of proxychains.

I hope you enjoyed this article, any comments, suggestions... please comment.

Thursday, February 11, 2010

Johnny Cash - I Won't Back Down

Johnny Cash - I Won't Back Down

Well I won't back down, no I won't back down
You can stand me up at the gates of hell
But I won't back down

Gonna stand my ground, won't be turned around
And I'll keep this world from draggin' me down
Gonna stand my ground and I won't back down

Hey baby, there ain't no easy way out
Hey I will stand my ground and I won't back down

Well I know what's right, I got just one life
In a world that keeps on pushin' me around
But I stand my ground and I won't back down

Hey baby, there ain't no easy way out
Hey I will stand my ground and I won't back down
No I won't back down. 

from Tom Petty's album Fool Moon Fever -1989-

Monday, February 08, 2010

Traurig (sad)
Traurig (sad) by cdiaz on Zooomr
- gilles servat

Sunday, February 07, 2010

Ryanair airports

Ryanair airports

[Versión en Castellano aquí]

Ever since Ryanair has become so popular lots of people are taking planes everywhere around Europe but not knowing exactly how far the destination airports are from the cities they want to visit.
Here is a handy guide to some of those airports Ryanair flights to. Those are the ones that have routes from Madrid.
The prices, taken from different sources (specified) are the cost of getting from the airport to the city with is as far as specified on the table. Links to wikipedia pages of the airport and its gMap are specified too.
I hope it is useful.

AirportCity / PlaceIATA codeWebMapDistancePrice €
Madrid BarajasMadrid (Spain)MAD17 km2-3 € SW
AlgheroAlghero (Sardinia)AHO 11 km 1€ Bus
15€ Taxi
AlicanteAlicante (Spain)ALC 12 km 2,60 €
AlmeríaAlmería (Spain)LEI 12 km ~1 €
CagliariCagliari (Sardinia)CAG 9 km ~1 €
FezFez (Morocco)FEZ ~10 km ? Bus
14€ Taxi
Frankfurt-HahnFrankfurt HHN 124 km 12€ Bus more
GironaGirona (Spain)GRO 16km(Girona)
2,3€ Girona
12€ Barcel.
Gran CanariaCanary Islands LPA 25 km
(Las Palmas)
1,2 € Bus
GranadaGranadaGRX 18 km 3 € Bus
JerezJerezXRY 13km(Jerez)
49 km(Cádiz)
0,85€ Jerez
2,60€ Cádiz
LanzaroteCanary IslandsACE 7 km (Arrecife) 1 €
MarrakechMarrakech (Morocco)RAK 3 km ~1,8 €
Milano(Bergamo)Milano (Italy)BGY 56 km 1,65 €
NadorNador (Morocco)NDR 15 km ? €
Taxi only
PortoPorto (Portugal)OPO 20 km Subway
Palma de MallorcaBalearic IslandsPMI 10 km 2 € Bus
SantanderSantander (Spain)SDR 7 km 2 € Bus
Santiago de CompostelaSantiago (Spain)SCQ 15 km 1,55 €
TangierTangier (Morocco)TNG 10 km ? € Bus
10 € Taxi
Tenerife SouthCanary IslandsTFS 64 km 9 € Bus
TrapaniSicily TPS 20 km 8 € Bus
Torino-CaselleTorino (Italy)TRN 18 km 5,5 € Bus
ValenciaValencia (Spain)VLC 10 km 1,7 € Subway
Brussels CharleroiBrussels (Belgium)CRL 58 km 2,5 € Bus
FaroFaro (Portugal)FAO 8 km < 5 €
Paris BeauvaisParis (France, not Texas)BVA 81 km ~15€ Bus
Roma CiampinoRome (Italy)CIA 16 km 4 € Bus
BolognaBologna (Italy)BLQ 13 km 5 € Bus
? € Siena
DublinDublin (Ireland)DUB 15 km 2 €
EindhovenEindhoven (Netherlands)EIN 9 km 1,8 € Bus
Marseille MP2Marseille (France)AHO 25 km 7 € Bus
Oslo RyggeOslo (Norway)RYG 70 km 15 €
FuerteventuraCanary IslandsFUE 7 km
Pto del Rosario
1-8 €
London GatwickLondon (UK)LGW 55 km 2+ €
London StanstedLondon (UK)STN 62 km 9 €
MaltaMalta MLA 10 km
8 €
Pisa (Galileo Galilei)Pisa (Italy)PSA 4 km 1 €

Blogger templates

A cœur vaillant rien d'impossible.
Powered by Blogger.