TransWikia.com

how to close a port on CentOS 7 server?

Unix & Linux Asked by user3486308 on November 23, 2021

I have opened the 3000 port of my CentOS 7 server with the following commands:

firewall-cmd --zone=public --add-port=3000/tcp --permanent
firewall-cmd --reload

But now I want to closing them, how can I do that?

One Answer

firewall-cmd --zone=public --remove-port=3000/tcp --permanent

should do the trick.

man firewall-cmd is always at your disposal.

Answered by Artem S. Tashkinov on November 23, 2021

Add your own answers!

Ask a Question

Get help from others!

© 2024 TransWikia.com. All rights reserved. Sites we Love: PCI Database, UKBizDB, Menu Kuliner, Sharing RPP