How to close a Port? - eviltoast

Hi guys, I’m new to Networking, I used Windows Defender to create a new rule to block Port 139, Then when i used Zenmap, i still see the port open and i also used cmd command netstat -aon | findstr 139 and i see services still listening to the port, Someone please explain how do i close a port? I cant seem to find any tutorial to show that, I also used a python script to scan ports in my machine and the port 139 is still open even when i blocked it in windows defender

I want to close port 139 to avoid NetBios ssn vulnerability

  • flacusbigotis@alien.topB
    link
    fedilink
    English
    arrow-up
    1
    ·
    1 year ago

    You’ve blocked the port, but that does not prevent a process/program from binding to it.

    So, you have a program listening on the port, but it will never get any traffic because you have blocked that traffic from ever reaching it.