How lock access from the net to my system

After instlling Almalinux in VirtualBox i see that i can use browser for do manipulations with my Os< and can manage it even from other pc by the net. How disable and do my VM Private?

AFAIK, the default install does include two services: SSH server and Cockpit that do listen for connections from outside. Default firewall config allows connections to these services and something IPv6 DHCP -related.

The Cockpit is the HTTP(S) gateway to system administration with your browser.
The SSH is for command-line sessions (and is also used by some file transfer methods).

You can naturally stop those services and/or adjust the firewall to not let outside users to reach them. That obviously means that you cannot access the VM by those methods either.


You have AlmaLinux in a VM. The VirtualBox provides the “virtual” network via which the VM can access other machines and other machines can access it. Surely the VirtualBox can create “routed network, with NAT”, where VM(s) are hidden, just like your home devices are hidden by your home router?

Found , I just need to sudo systemctl disable cockpit

2 Likes