Current location - Quotes Website - Collection of slogans - How to close port 445 in linux system
How to close port 445 in linux system
Use the kill command to close.

View the process occupying port 445 and its pid.

Then kill -9 $pid (here changed to the process pid number occupying port 445)

You can also disable port 445 using your own iptables.

Iptables-ainput-ptcp-dport445-jdrop discards all packets in the incoming direction of port 445.

Iptables-a output-p TCP-dport 445-j drop discards all packets in the outgoing direction on port 445.