I can not disable services or close ports on ubuntu

0

I have scanned my network with nmap.

Host is up (0.000047s latency).
Not shown: 1995 closed ports
PORT     STATE         SERVICE
25/tcp   open          smtp
68/udp   open|filtered dhcpc
631/udp  open|filtered ipp
5353/udp open|filtered zeroconf
5355/udp open|filtered llmnr

with sudo /etc/init.d/zeroconf disable I get nothing.

with the gufw I created the rules to close ports 5353 and 5355 but they are still open.

What can I do?

    
asked by Rafael Hernández 08.11.2017 в 22:26
source

1 answer

1

I would recommend using the following firewall.

UFW (Uncomplicated Firewall)

It is the one that I use and it has worked correctly, and easy to use.

Installation:

root@linux:~# apt-get install ufw

Activate event logging

root@linux:~# ufw logging on

Enable access via SSH

root@linux:~# ufw allow ssh/tcp

Activate the Firewall

root@linux:~# ufw enable

Check the status of the Firewall

root@linux:~# ufw status verbose

Block ports 5353 and 5355

root@linux:~# ufw deny 5353
root@linux:~# ufw deny 5355

I leave a link so you can verify a little more about its use. Tutorial UFW

    
answered by 09.11.2017 / 00:29
source