netstat - what means ":::port" ?, difference with "0.0.0.0:port" ?, what is the correct config?, why color RED?

000

Well-Known Member
Jun 3, 2008
446
20
68
I have 2 servers with DIFFERENT output:

1631108200843.png
vs

1631108218387.png

who is the correct?
some is dangerous here?
please: what means "LISTEN" (in red) ??

with which command we can convert (maybe fixed)
":::*" to "0.0.0.0:port"

with which command we can convert (maybe fixed)
"0.0.0.0:port" to ":::*"


many thanks



some server is insecure ?
 

Attachments

quietFinn

Well-Known Member
Feb 4, 2006
1,394
181
193
Finland
cPanel Access Level
Root Administrator
The other one is IPv6 address, so they are the same.

> please: what means "LISTEN" (in red) ??
grep shows in red what you are searching for.
 
  • Like
Reactions: cPRex

000

Well-Known Member
Jun 3, 2008
446
20
68
ah!, many thanks :)

then:

in SERVER A port 10000 is open to connect over IP6
in SERVER B port 10000 is open to connect over IP4

please:
which is the command to open xPORT to IP4 ?
which is the command to open xPORT to IP6 ?

we know that is possible from


but how do from putty ?
 

000

Well-Known Member
Jun 3, 2008
446
20
68
master cPRex we open /etc/csf/csf.conf in both servers and none have the string "10000", both servers/files only have this line:

1631115558068.png

then I not find how:
Code:
convert
":::*" to "0.0.0.0:port"

convert
"0.0.0.0:port" to ":::*"
please help to interchange
 

quietFinn

Well-Known Member
Feb 4, 2006
1,394
181
193
Finland
cPanel Access Level
Root Administrator
"0.0.0.0:port" means that it's listening in port "port" in all IPv4 addresses in the server,
":::port" means that it's listening in port "port" in all IPv6 addresses in the server.
 

000

Well-Known Member
Jun 3, 2008
446
20
68
"0.0.0.0:port" means that it's listening in port "port" in all IPv4 addresses in the server,
":::port" means that it's listening in port "port" in all IPv6 addresses in the server.
thanks master

when we open /etc/csf/csf.conf (in both: serverA and serverB) not exist string "10000"
then logically the config of this port not is doit from /etc/csf/csf.conf

please: how we can
Code:
convert
":::*" to "0.0.0.0:port"

convert
"0.0.0.0:port" to ":::*"
???
 

quietFinn

Well-Known Member
Feb 4, 2006
1,394
181
193
Finland
cPanel Access Level
Root Administrator
thanks master

when we open /etc/csf/csf.conf (in both: serverA and serverB) not exist string "10000"
then logically the config of this port not is doit from /etc/csf/csf.conf
You must open the port in TCP_IN & TCP6_IN.

please: how we can
Code:
convert
":::*" to "0.0.0.0:port"

convert
"0.0.0.0:port" to ":::*"
???
That is configured in that service's configuration. Usually a service is listening in both IPv4 and IPv6 addresses (if IPv6 in enabled in the server).
 

000

Well-Known Member
Jun 3, 2008
446
20
68
You must open the port in TCP_IN & TCP6_IN.


That is configured in that service's configuration. Usually a service is listening in both IPv4 and IPv6 addresses (if IPv6 in enabled in the server).
thanks.

can please sayme:

how ADD "hear over IP4" in server B
and
how ADD "hear over IP6" in server A



you can see, both servers not have string 10000 into file: /etc/csf/csf.conf

1631118630009.png

however server A load port 10000 in IP6 and server B load port 10000 in IP4

regards
 

000

Well-Known Member
Jun 3, 2008
446
20
68
both files/servers have IDENTIC content:

1631119017785.png

not "range FROM... UNTIL..."
however:

port 10000 in SERVER A listen over IP4
port 10000 in SERVER B listen over IP6

how open over one or other IP?
how interchange?
how closed?

also both files/servers have:

1631119293597.png

thanks