CptDondo wrote:
> I am running OpenVPN. I've started experiencing a 'dictionary attack' -
> someone is determined to get in. This is more of a nuisance than
> anything, but I would like to figure out a way to block UDP attacks,
> similar to the SSH blocks.
>
> They've been hitting me twice a second for days now. I'm getting annoyed.
>
> UDP is stateless though - any way to figure out how to block these
> attacks at the firewall?
>
> --Yan
A very practical way to hinder dictionary attacks is to put limits on
the connection rate for the incoming non-related packets. I can't
remember the iptables syntax for this (I use shorewall on my firewall,
which makes it a bit easier to get all the rules right), but I'm sure
google will help (
http://www.debian-administration.org/articles/187 for
example). Limiting incoming traffic to, say, 3 new connections per
minute with a burst of 3 will make most dictionary attackers give up
quickly - the attack would just take too long to succeed.
It's a little odd that you are getting this sort of attack on openvpn
ports, however - openvpn normally uses certificates and is therefore
immune to dictionary attacks. It's more common on ssh ports and other
password-based authentication.