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, [...]
Archive for the ‘iptables’ Category
Easy way to a transparent squid proxy
Posted: 13th April 2010 by BritishSongWriter in iptables, squid0
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 :
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 [...]