Hi
I just installed samba to begin learning him. But I realized that I don't need 
it in my personal system. My Debian systems are installed in pendrives and boot 
them in any computer, so I can study them when I want. If I decide leaving 445 
IP port opened, so I prefer uninstalling Samba when not needed.
Thank y'all.
 

    Em Quinta-feira, 21 de Julho de 2016 3:55, Reco <recovery...@gmail.com> 
escreveu:
 

     Hi.

On Thu, 21 Jul 2016 01:09:36 +0000 (UTC)
Thiago Zoroastro <thiago.zoroas...@yahoo.com.br> wrote:

> Hi there, I would like you sorry me if I wrote the English wrong in some 
> place.
> 
> I realized that my Debian systems are with 445's IP ports opened. How I could 
> to block permanently this and any other IP port when I wish?
> I've blocked with an Iptables command but I would like a way to block 
> forever. I wish to keep 445 IP port closed since when my Debian system is 
> started.
> 
> Could I to know what the package that's installed and opening this IP port 
> opened?

"ss -lnp | grep 445" as root should show you whatever process is
listening on 445 and whatever protocol is used. Chances are, it's smbd
and tcp.

"dpkg -S <procname>" should show you what package offending binary
belongs to. Chances are, it's samba.

To block it (but why would you want to do so? Just remove the offending
package) you'll need to:

iptables -I INPUT ! -i lo -p tcp --dport 445 -j DROP
ip6tables -I INPUT ! -i lo -p tcp --dport 445 -j DROP

Reco



  

Reply via email to