1
I've got a dev server to which I constantly sync my code using rsync. To secure the dev server a bit more I now activated UFW, which seems to work fine. The problem is that it works a bit too well, because I now often get an error while trying to sync, being:
rsync: connection unexpectedly closed (0 bytes received so far) [sender]
rsync error: unexplained error (code 255) at /SourceCache/rsync/rsync-45/rsync/io.c(453) [sender=2.6.9]
According to this blogpost the problem is that UFW sets a "rate limit" on SSH connections; if you make an SSH connection attempt more than X times in 30 seconds, it will shut you out for a while. This is of course awesome to block out unwanted people, but I want to
- either disable this for specific IP addresses,
- or disable it for successful connection attempts (i.e. only let this rate limit work for unsuccessful attempts).
The blogpost which I link to above doesn't come up with a solution for UFW, but simply replaced UFW with ip-tables. Since I need to spend my time getting some programming done, I don't really want to spend my time learning ip-tables. So I was wondering whether anybody here knows how to get this working with UFW? All tips are welcome!