Author Archives: franciscodavid

Secure port forwarding with SSH

Sometimes, it’s desirable to connect to a remote machine running a specific service without enabling it for the whole Internet. This can be done with port forwarding. Port forwarding allows you to bind a local IP socket to a remote … Continue reading

Posted in Code | Tagged , | Comments Off

How to configure pwsafe properly in Ubuntu Maverick Meerkat

pwsafe is a command line application that stores safely your passwords on an encrypted database located at your $HOMEDIR/.pwsafe.dat file. It also suggests random passwords for you to use, and it’s perfect to store all your passwords at home and … Continue reading

Posted in Code | Tagged , , , , , , , | Comments Off

Reaching services over HTTP with HTTPtunnel

Having some ports closed is very common in public wireless networks. For example, when I’m at University I’m able to use only a small set of ports like 80 (HTTP) and 443 (HTTPS). Sometimes you need to connect to web … Continue reading

Posted in Code | Tagged , , , , | Comments Off

Using SCP Port Knocking Remote Hosts

The scripts I posted to open SSH connections through port knocking are very useful to me. But when it comes to transferring files with SCP, port knocking is a nightmare. So I’ve done a similar bash function that automatically deals … Continue reading

Posted in Code | Tagged , | Comments Off

Port Knocking The Easy Way

I had implemented port knocking before with linux daemons and knocking clients but this requires installing software that is always running and consuming memory and processor resources. If you are using a Virtual Private Server –as I am–, you can’t … Continue reading

Posted in Code | Tagged , , | 1 Comment