PDA

View Full Version : how to close ports in kali?



careyjames
2021-08-09, 19:14
how to close ports in kali?

careyjames
2021-08-09, 19:24
─ ss -tulnp | grep LISTEN ─╯
tcp LISTEN 0 128 0.0.0.0:25672 0.0.0.0:* users:(("beam.smp",pid=1824,fd=59))
tcp LISTEN 0 128 0.0.0.0:4369 0.0.0.0:* users:(("epmd",pid=1719,fd=3))
tcp LISTEN 0 5 127.0.0.1:4822 0.0.0.0:* users:(("guacd",pid=1215,fd=4))
tcp LISTEN 0 128 0.0.0.0:22 0.0.0.0:* users:(("sshd",pid=684,fd=3))
tcp LISTEN 0 1024 0.0.0.0:15672 0.0.0.0:* users:(("beam.smp",pid=1824,fd=74))
tcp LISTEN 0 100 0.0.0.0:888 0.0.0.0:* users:(("python",pid=1526,fd=21))
tcp LISTEN 0 224 0.0.0.0:5432 0.0.0.0:* users:(("postgres",pid=1534,fd=3))
tcp LISTEN 0 128 *:5672 *:* users:(("beam.smp",pid=1824,fd=70))
tcp LISTEN 0 128 [::]:4369 [::]:* users:(("epmd",pid=1719,fd=4))
tcp LISTEN 0 128 [::]:22 [::]:* users:(("sshd",pid=684,fd=4))
tcp LISTEN 0 224 [::]:5432 [::]:* users:(("postgres",pid=1534,fd=4))

careyjames
2021-08-09, 19:25
─ ufw deny 5432 ─╯
zsh: command not found: ufw