Answer the question
In order to leave comments, you need to log in
I only need ssh and nginx. How to stop/close everything else?
Debian 8
netstat -ntulp
I only need ssh and nginx. How to stop/close everything else?
Answer the question
In order to leave comments, you need to log in
If the network service is not needed, then it should not be disabled / blocked, but removed.
Add to the list of iptables rules:
...
:INPUT DROP [0:0]
...
-A INPUT -i ethN -p tcp -m multiport --dports 146,80 -j ACCEPT
...
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question