S
S
Sergey Pugovkin2016-08-10 13:07:35
Debian
Sergey Pugovkin, 2016-08-10 13:07:35

I only need ssh and nginx. How to stop/close everything else?

Debian 8
netstat -ntulp
10845746.png
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

3 answer(s)
Y
Yuri Chudnovsky, 2016-08-10
@Driver86

If the network service is not needed, then it should not be disabled / blocked, but removed.

N
Nick, 2016-08-10
@anemuk

Add to the list of iptables rules:
...
:INPUT DROP [0:0]
...
-A INPUT -i ethN -p tcp -m multiport --dports 146,80 -j ACCEPT
...

D
Dmitry, 2016-08-10
@plin2s

Your question is very easy to google for "debian 8 stop %name%"
For example, to disable rpc.statd and rpcbind it should be enough to stop/stop the rpcbind service.
Most likely, "systemctl stop rpcbind.service" will work.
But the question arises - why?

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question