Category Archives: VPN

Build strongswan v5.5.0 debian package — with debug symbols

Usually I am using the packages from the official repositories. However, sometimes it’s necessary to use a newer version, I recently had to do this with strongswan and I’m sharing the procedure for other people to try. Get the build dependencies [codesyntax lang=”bash”] apt-get update apt-get install devscripts fakeroot apt-get build-dep strongswan [/codesyntax] Obtain and build … Continue reading Build strongswan v5.5.0 debian package — with debug symbols

How to disable dnsmasq on ubuntu based distribution

dnsmasq is a lightweight DNS, TFTP, PXE, router advertisement and DHCP server. It is intended to provide coupled DNS and DHCP service to a LAN. From time to time dnsmasq decided to resolve some hosts over a VPN tunnel to their external IP address instead the internal one. This was quite annoying… After digging a … Continue reading How to disable dnsmasq on ubuntu based distribution

How to install a OpenVPN System Based On User/Password Authentication with mysql & Day Control (libpam-mysql)

This document describes how to install a OpenVPN server with User/Password authentication with mysql and day control using libpam-mysql. This will be a brief, but a very practical document. Install mysql server [codesyntax lang=”bash”] apt-get install mysql-server [/codesyntax] Create a mysql user and a database to be used later [codesyntax lang=”bash”] mysql -u root -p … Continue reading How to install a OpenVPN System Based On User/Password Authentication with mysql & Day Control (libpam-mysql)

Force Chrome to tunnel DNS requests through a SSH socks proxy

Setup a socks proxy (check this page for more details) on port 8888 (the port is not that important). Start chrome with the following parameters: [codesyntax lang=”bash”] chrome –proxy-server=”socks5://localhost:8888″ [/codesyntax] Also we can check if this works and run the following command on the SSH server. The tcpdump will show show dns traffic for any activity … Continue reading Force Chrome to tunnel DNS requests through a SSH socks proxy

Encrypt your traffic from your Android device using a ssh tunnel

As I said with a previous ocasion in China the goverment is filtering the internet traffic (including mobile trafic, dohh) so you can’t access different websites and/or services and this thing is very annoying. Well, what do you have to do if you want to navigate to youtube.com for instance? Hmmm… you will have to … Continue reading Encrypt your traffic from your Android device using a ssh tunnel

Encrypt your web browsing session in one command

Recently I accepted a job proposition in Shenzhen/China. So, China here I come. Things are great here, western propaganda has nothing to do with what’s going on here, except one thing: internet filtering. Google results are censured, so only “accepted” results are displayed, sites like facebook.com, twiter.com, youtube.com, thepiratebay.org, openvpn.net and so many more… What … Continue reading Encrypt your web browsing session in one command

Setting up a L2TP over IPSec VPN on Debian on 10 steps

This document describes the required steps to make a fully functional L2TP/IPSEC PSK VPN PSK (with pre-shared keys) on debian squeeze. L2TP/IPSec is an advanced protocol formally standardized in IETF RFC 3193 and now the recommended replacement for PPTP where secure data encryption is required. The L2TP payload is encrypted using the standardized IPSec protocol. … Continue reading Setting up a L2TP over IPSec VPN on Debian on 10 steps