I’ve got a question regarding the bundeled software package that comes with Fedora Server called Cockpit.
It has been very usefull to me, but I want to lock down access to it to only the local network. Right now the server is running on an internet facing server, and I don’t feel comfortable having port 9090 open for all to see.
How do I go about doing this?
Using an SSH tunnel
In alternative, you could find the way to bind cockpit only on localhost (to listen only on localhost), by following this guide https://cockpit-project.org/guide/133/listen.html, or by removing the allow rule in the firewall (as seen above): $ sudo firewall-cmd --permanent --zone=FedoraServer --remove-service=cockpit
Then, from your machine connect to the server using something like this: ssh -L 9090:localhost:9090 username@your.server