C
C
csergey2014-08-27 17:47:45
linux
csergey, 2014-08-27 17:47:45

How to open a port on Debian?

Opened easily on ubuntu
iptables -A INPUT -p tcp --dport 3306 -j ACCEPT
On debian 7 I prescribe and the port is closed
netstat shows LISTEN status
but nmap from another node shows closed status.
And also explain why netstat shows that the port is open and what utilities are better to see open ports?

Answer the question

In order to leave comments, you need to log in

3 answer(s)
I
Igor, 2014-08-27
@csergey

Show the output of the commands:

netstat -ntpua | grep 3306
iptables-save

A
Andrey Burov, 2014-08-27
@BuriK666

iptables -I INPUT 1 -p tcp --dport 3306 -j ACCEPT

A
Amurchikus, 2014-08-28
@Amurchikus

In general, there is no special sacristy between Ubuntu and Debian. Ubutu is based on Debian. How many network interfaces do you have?

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question