Skip to content

Secure your LA infrastructure

vjrj edited this page May 6, 2019 · 26 revisions

Draft

Basic mesures

Firewall

Allow basic input traffic 22/80/443 (tcp) from the outside. Restrict external access to solr web interface.

If you want to restring the internal traffic is more complex. Initially you can open all ports between your VMs and internal IP address as a start while you discover which ports use each services and adapt it to your infrastructure.

ufw

If you don't need a complicated firewall configuration you can use this ansible ufw role to fast configure the iptables in your machines.

Other recommendations

Use fail2ban for prevent brute force in those services (http/s and ssh authentication). If you use wordpress in your node, also there is a good fail2ban wordpress plugin that integrates well with fail2ban.

Other resources

Clone this wiki locally