Hello, I just can open and close a port that a service running on that port? I have not any service on port 8080 and did: # firewall-cmd --add-port=8080/tcp success # firewall-cmd --reload success # firewall-cmd --list-ports 80/tcp 443/tcp
Why I can't see port 8080 in the list?
On Wed, Mar 17, 2021 at 04:11:05PM -0000, Jason Long wrote:
Hello, I just can open and close a port that a service running on that port? I have not any service on port 8080 and did: # firewall-cmd --add-port=8080/tcp success
You're manipulating the runtime configuration.
# firewall-cmd --reload success
Then reloading firewalld which means dropping the runtime and loading the permanent configuration.
# firewall-cmd --list-ports 80/tcp 443/tcp
Why I can't see port 8080 in the list?
Because you reloaded. Your first command should use the --permanent flag.
Thanks. Thus, I must use: # firewall-cmd --permanent --add-port=8080/tcp ?
firewalld-users@lists.fedorahosted.org