How to close the port in linux
Introduction
In the linux operating system, you can close the specified port through firewall-cmd
This tutorial will teach you How to close the port in linux
Command Line
close port 8080
firewall-cmd --permanent --remove-port=8080/tcp
Parameter Description
parameter | Introduction |
---|---|
--permanent | Set an option permanently Usable for options. |
--remove-port | Remove the port . |
operation result
success
Notice
If you have any questions in use, you can leave a message below, or submit issuse on github ♥