Link to home
Start Free TrialLog in
Avatar of trojan81
trojan81

asked on

kali linux running on debian - disable listening on port 80

Experts,

On my kali Linux running on debian, I need to free up port 80 to use for another service.  
How would I either remove ipv6 because I don't need it, or make it stop listening on port 80


root@kali:~# netstat -an | egrep '80'
tcp6       0      0 :::80                   :::*                    LISTEN
Avatar of Romi Nur Ismanto
Romi Nur Ismanto
Flag of Indonesia image

use linux firewalls , ip tables ip chain
Avatar of trojan81
trojan81

ASKER

Romi, thank you but that doesn't help me.

Looking for someone to post the commands.
# Default policy is set to DROP so we don't need these
#iptables -A INPUT -p udp --dport 80 -j DROP
#iptables -A INPUT -p tcp --dport 80 -j DROP
Where do I find this config file to edit

I can't just disable port 80. I need to start up another service on it.  I just need to disable the current service that is listening on ipv6 port 80.  Maybe a better question is, how do I disable ipv6
Avatar of arnold
Run lsof i:80 to identify the service that is bound to port 80
ps -ef | grep -i httpd

Httpd is the likely service, but you seem to only point to ipv6

Iptables is a firewall rule that the expert misinterpreted your request.

You could use iptables to divert incoming port 80 requests to a different service bound to a different port.


What service are you looking to deploy that needs port 80?
ASKER CERTIFIED SOLUTION
Avatar of serialband
serialband
Flag of Ukraine image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial