Making all network traffic for a Linux user use a specific network interface

I’ve recently been testing out a VPN service, and normally while running the VPN, all internet traffic goes over the VPN interface. This isn’t really ideal, as I only want traffic from specific applications to use the VPN. IPTables doesn’t seem to have the option to filter specific processes, but it can filter based on a specific user account.

Continue reading

Posted in Linux | Tagged , , , | Leave a comment

Adding a hostname to Logrotate email subjects

I have logrotate running on my virtual servers ( both local and Amazon EC2 based ) and configured to send myself all log files by email daily. They are all running virtually the same configuration, and this makes it difficult to work out which log file is tied to which machine. The simplest way to fix this, is to ensure all logrotate emails append the hostname of the machine it is sending from within the subject of the email.

Continue reading

Posted in Gentoo, Linux, Ubuntu | Tagged , , | 1 Comment

The HP LaserJet P1102w Printer on Ubuntu 11.04

After publishing my previous post on Setting up a HP LaserJet P1102w Printer on Gentoo , I’ve noticed that I seem to be getting a lot of visitors searching for how to setup the same printer under Ubuntu, so decided to write a guide specific to Ubuntu.

Continue reading

Posted in Linux, Ubuntu | Tagged , , , , , | 3 Comments

Using Apache to intercept HTTPS traffic

Due to the increase in processing power available, the use of SSL has become more widespread. This is obviously a good thing, especially with UK ISPs spying on ( and annoyingly, replaying ) web traffic recently, however this can be a showstopper when trying to debug a misbehaving application.

To get around this, and allow us to see what exactly an application, or even a web browser is doing, we can use Apache ( with mod_proxy and mod_dumpio ) to perform a man-in-the-middle attack , and view the traffic.
Continue reading

Posted in Gentoo, Linux, Web Development | Tagged , , , | Leave a comment

Hosting a Gentoo Layman repository on Amazon S3

I’ve recently had to create a lot of custom Gentoo ebuilds, and distribute them out to separate machines. Luckily Gentoo has the layman system for adding experimental overlays, so we can use this to add our own custom one, hosted on Amazon S3.

Continue reading

Posted in Gentoo, Linux | Tagged , , | Leave a comment