How to enable geoblocking?
In order to improve security, you can allow access to your webserver only from specific countries or continents.
- Power On your server (if not already done)
- Connect from a PC in the same network to your server over SSH (if not already done; if you cannot connect because the SSH fingerprint changed, type in
ssh-keygen -R ip-address
so e.g.ssh-keygen -R 192.168.178.144
to remove the old fingerprint and try again to connect to your server over SSH.) - Run over CLI:
sudo bash /var/scripts/menu.sh
- Choose
Server Configuration
->GeoBlock
- Choose to install/reinstall Geoblock
- Select whatever countries/continents you would like to allow the access to your server. All other will be blocked, based on the ip-address. (At least your own country should get selected to make this work.)