Archive for the ‘iptables’ Category

Easy way to a transparent squid proxy

Posted: 13th April 2010 by BritishSongWriter in iptables, squid

The story goes like this: a friend of mine is staying at my place. He asked me if I could share my internet connection with him. I didn't really wanted to do this because I have a slow line when we talk about downloading stuff, but luckily for him, this isn't the only one. So, [...]

Forward a port using iptables

Posted: 7th April 2010 by Valkyrka in iptables

If you have a machine behind a router using a private IP ( i.e. 192.168.10.3 ) and the machine has some services you would like to make public ( like Apache ), you would need to write a firewall rule in order to forward the request to the machine :

Modify TTL of incoming packets

Posted: 3rd April 2010 by Valkyrka in iptables

If your ISP is sending packets with TTL 1, you would actually be unable to share your Internet connection due to this fact. However, you are able to change the TTL of incoming packets by adding a rule in the mangle table. Here is the response I am seeing before adding the rule in the [...]