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
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
use linux firewalls , ip tables ip chain
ASKER
Romi, thank you but that doesn't help me.
Looking for someone to post the commands.
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
#iptables -A INPUT -p udp --dport 80 -j DROP
#iptables -A INPUT -p tcp --dport 80 -j DROP
ASKER
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
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
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?
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
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.