Skip to main content

i need to open a port linux linux whm server

Comments

15 comments

  • triantech
    Shufil, does your WHM server has csf enabled ?
    0
  • 24x7server
    Which service is running on your 8080 port ? And what is the output of following command ? netstat -apn | grep 8080 iptables -nL | grep 8080
    0
  • shufil
    Hello triantech, CSF is not installed, only running iptable . Regards, Shufil [COLOR="silver">- - - Updated - - - Hello, netstat -apn | grep 8080 not give any reply, iptables -nL | grep 8080 ACCEPT tcp -- 0.0.0.0/0 remoteip state NEW tcp dpt:8080 ACCEPT tcp -- 0.0.0.0/0 rempteip tcp spt:8080 dpt:8080 Regards, Shufil
    0
  • shufil
    [quote="shufil, post: 1684982">Hello triantech, CSF is not installed, only running iptable . Regards, Shufil [COLOR="silver">- - - Updated - - - Hello, netstat -apn | grep 8080 not give any reply, iptables -nL | grep 8080 ACCEPT tcp -- 0.0.0.0/0 remoteip state NEW tcp dpt:8080 ACCEPT tcp -- 0.0.0.0/0 rempteip tcp spt:8080 dpt:8080 Regards, Shufil
    also i added without -d iptables -A INPUT ( output both udp and tcp ) -m state --state NEW -m udp -p udp --dport 8080 -j ACCEPT so result is iptables -nL | grep 8080 ACCEPT tcp -- 0.0.0.0/0 0.0.0.0/0 state NEW tcp dpt:8080 ACCEPT udp -- 0.0.0.0/0 0.0.0.0/0 state NEW udp dpt:8080 ACCEPT tcp -- 0.0.0.0/0 0.0.0.0/0 state NEW tcp dpt:8080 ACCEPT udp -- 0.0.0.0/0 0.0.0.0/0 state NEW udp dpt:8080 Regards, Shufil
    0
  • triantech
    Shufil, what exactly is running on that port? iS the service running? If not telnet would be showing connection refused, as there is nothing running to connect :D
    0
  • shufil
    [quote="triantech, post: 1685282">Shufil, what exactly is running on that port? iS the service running? If not telnet would be showing connection refused, as there is nothing running to connect :D
    Hi triantech , Thanks for reply , You mean is this enough for port open, and how can we check a port open or not ? netstat -apn | grep 8080, not getting any reply .
    0
  • 24x7server
    Hi, You have added correct rule in firewall to open a port 8080 but currently you are not running any services on port 8080 and due to that netstat command is not showing any output.
    0
  • cPanelMichael
    Hello :) You will need to ensure a service is listening for connections on port 8080 before it will respond to connection requests. Are you attempting to have a service such as Apache run on port 8080? Thank you.
    0
  • shufil
    [quote="24x7server, post: 1685711">Hi, You have added correct rule in firewall to open a port 8080 but currently you are not running any services on port 8080 and due to that netstat command is not showing any output.
    Hello, But i try to pass a url with port number 8080 using curl program, but still i getting error that is coult not connect host . So i believe still that port is close . [COLOR="silver">- - - Updated - - - [quote="cPanelMichael, post: 1685961">Hello :) You will need to ensure a service is listening for connections on port 8080 before it will respond to connection requests. Are you attempting to have a service such as Apache run on port 8080? Thank you.
    Hello, Yes i need to add service http with port number, currently port 80 443 running with http .
    0
  • triantech
    shufil , You can configure the ports associated with the service Apache from WHM as follows : Home "Server Configuration "Tweak Settings >> under the section "System"
    0
  • shufil
    HI Triantech , There seems port 80 and 443 in default, if we need to add other port we need to drop 80 or 443 ? Regards, Shufil
    0
  • triantech
    Hello, If you want to make Apache non-SSL connections, drop 80 and add 8080, or the other way around for the SSL connections.
    0
  • shufil
    [quote="triantech, post: 1691382">Hello, If you want to make Apache non-SSL connections, drop 80 and add 8080, or the other way around for the SSL connections.
    Hello , Both are need, becouse non and ssl site are running in server . Regards, Shufil
    0
  • cPanelMichael
    You can add multiple "Listen" entries in the Apache configuration file. Here is an example of the existing default entries: # grep Listen /usr/local/apache/conf/httpd.conf Listen 0.0.0.0:80 Listen [::]:80 Listen 0.0.0.0:443 Listen [::]:443
    Documentation on making modifications to the Apache configuration file is available here: Custom Directives Outside of a VirtualHost Tag Thank you.
    0
  • shufil
    [quote="cPanelMichael, post: 1693462">You can add multiple "Listen" entries in the Apache configuration file. Here is an example of the existing default entries: # grep Listen /usr/local/apache/conf/httpd.conf Listen 0.0.0.0:80 Listen [::]:80 Listen 0.0.0.0:443 Listen [::]:443
    Documentation on making modifications to the Apache configuration file is available here: Custom Directives Outside of a VirtualHost Tag Thank you.
    Hello, Thanks, nice . Regards, Shufil
    0

Please sign in to leave a comment.