I bought a small VPS system earlier today to handle my website database, and went away for a couple of hours, but when I came back and logged in again, I found that an IP address in China had been attempting to login 162 times:
I immediately blocked the IP range using sudo /sbin/iptables -A INPUT -s 61.174.51.0/24 -j DROP
, but I want to increase the security of my system further and only allow a connection from a specific domain.
The VPS system will only be accessed from %.wavetelecom.com
and %.northhosts.co.uk
, so I cannot see any issues occuring such as being locked out of the VPS.
This question is similar, but I want to lock out the whole system from everyone except two domains.
Is it possible to only allow connections from a specific domain on Linux (Fedora 19)?