HP Labs Firewall

The HP Labs firewall prevents ssh connections out-going to some external IP address. The solution to this is to use a SOCKS proxy.

If you can't access tycoon-dev.hpl.hp.com via ssh because you are behind a firewall, you may try to connect through a SOCKS server. One way to do that is to use the tsocks command. If it is not installed, and you are running Fedora 3, you can get it by running the following commands as root

# wget http://dag.wieers.com/packages/tsocks/tsocks-1.8-6.beta5.1.fc3.rf.i386.rpm
# rpm -Uvh tsocks-1.8-6.beta5.1.fc3.rf.i386.rpm

Configure tsocks to tunnel all tcp connections except the ones to your local net through your SOCKS server.

# sed -ie 's:^server.*:server = socks.hpl.hp.com:' /etc/tsocks.conf
# sed -ie 's:^local.*:local = 15.0.0.0/255.0.0.0:' /etc/tsocks.conf 

Above, we used the server socks.hpl.hp.com and the local network 15.0.0.0/255.0.0.0. You need of course to choose appropriate values for your network.

To use a SOCKS tunnel, simply put tsocks in front of the command to have its tcp connections tunneled through the SOCKS server.

$ tsocks hg clone ...

Hint: If you don't want to type tsocks in front of every command, typing tsocks without arguments will put you in a shell which tsocks everything automatically.