Security
What is on from the start#
- Firewall: only SSH, 80 and 443 are open to the outside.
- After 10 login attempts a minute the site starts refusing that address. If the address keeps going, it is blocked for an hour, and for repeats for a week.
- The same for SSH password guessing.
- Each site has its own database and its own password.
- Passwords are kept in files that only root can read.
Who is blocked#
luckybx protect
luckybx protect unban 203.0.113.5Restrict the admin area by address#
luckybx site admin-ip shop.example.com add 203.0.113.5
luckybx site admin-ip shop.example.com offThe second command opens the admin area to everyone again.
If your address changes, add the whole network, for example 203.0.113.0/24. Otherwise you will not get into the admin area yourself. It can be fixed over SSH.
Change passwords#
luckybx site admin-password shop.example.com
luckybx site db-password shop.example.comThe first command changes the Bitrix administrator password, the second changes the database password at once in the database and in the site settings.
Bitrix activity filter#
This filter is in the "Web analytics" module. By default it blocks an address after 15 requests in 10 seconds. An office where everyone goes online from one address can hit it by accident. Raise the threshold:
luckybx site activity shop.example.com 80Security scanner#
LuckyBX closes its part of the scanner's remarks itself. What remains are site settings: captcha, login by code, administrator group rights, the list of allowed domains, protection against being shown in a frame. LuckyBX does not change them, that is up to the site owner.