Archives for posts tagged ‘iptables’

Transparent proxy for your LAN

I was in the situation that I had to provide internet access to a stupid Settop Box with no way to configure a proxy. This is what I did…

I have a router connected to the “STB LAN” on one side and to the network with the proxy on the other side (“PROXY LAN”). The following [...]

Blocking SSH brute force with iptables

Recently it came to my attention that my /var/log/auth log files became quite big in the last few weeks. As it turns out I am the target of some bruteforce SSH attacker. The log was filled with hundreds of these, one every 5-10 seconds:
Sep 4 06:33:42 castor sshd[14554]: Invalid user nazawa from 58.221.227.51
Sep [...]