Logging Made Easy in the cloud
This page answers some common FAQ about deploying LME in the cloud.
Does LME run in the cloud?
Yes, LME is a client-server model and accommodates both on-premises and cloud deployments, allowing organizations to host LME on local or cloud service provider (CSP) infrastructure.
Deploying LME in the cloud for on prem systems:
For LME agents to talk to LME in the cloud, you’ll need to ensure the clients you want to monitor can communicate through: 1) the cloud firewall and 2) LME’ own server firewall.
The easiest way is to make sure you can access these LME server ports from the on premise client:
- Wazuh Agent (Agent Enrollment Requirements Documentation): 1514,1515
- Elastic Agent (Agent Install Documentation): 8220 (fleet commands), 9200 (input to elasticsearch)
You’ll need to make sure your Cloud firewall is setup to allow the ports above. On Azure, network security groups (NSG) run a firewall on your virtual machine;s network interfaces. You’ll need to update your LME virtual machine’s rules to allow inbound connections on the agent ports. Azure has a detailed guide for how to add security rules here.
We highly suggest you do not open ANY PORT globally and restrict it based on your clients IP address or your client’s subnets.*
On LME, you’ll want to make sure you have the firewall disabled (if you’re using the cloud firewall as the main firewall):
or that you have the firewall rules enabled:
You can add the above ports to ufw via the following command:
If you want to use the Wazuh API, you’ll also need to setup port 55000 to be allowed in:
In addition, you’ll need to setup rules to forward traffic to the container network and allow traffic to run on the container network:
Theres a helpful stackoverflow article on Configuring UFW for podman on port 443
Your podman1
interface name may be different. Check the output of your network interfaces by running the following command to check if your interface is also called podman1:
Your rules can be dumped and shown like so:
Deploying LME for cloud infrastructure:
Every cloud setup is different. As long as the LME server is on the same network and able to talk to the machines you want to monitor, your deployment should run smoothly.
Other firewall rules
You may also want to access kibana from outside the cloud as well. You’ll want to make sure you either allow port 5601
or port 443
inbound from the cloud firewall AND virtual machine firewall.
Don’t lock yourself out AND enable the firewall
You also don’t want to lock yourself out of ssh, so make sure to enable port 22!
Enable ufw: