rootuser

Well-Known Member
Jan 31, 2005
124
0
166
***INDIA***
I WANT TO OPEN A NEW PORT IN MY CPANEL SERVER, (1 of MY client ask to me open a particular port to his needs) APF+IPTABLES are enabled there.HOW CAN I OPEN IT. :) :) :)
 

JP-HOST

Well-Known Member
Sep 23, 2004
59
0
156
Roscoe, IL, USA
rootuser said:
I WANT TO OPEN A NEW PORT IN MY CPANEL SERVER, (1 of MY client ask to me open a particular port to his needs) APF+IPTABLES are enabled there.HOW CAN I OPEN IT. :) :) :)

pico /etc/apf/conf.apf

Add the port in the section of Ingress and Egress port listings. You will need to know if it is Inbound (Ingress) and/or Outbound (Egress) and whether it is TCP or UDP.
 

rootuser

Well-Known Member
Jan 31, 2005
124
0
166
***INDIA***
IT is an ingress tcp port,but it is not lisiting when i try to scan the opened ports :) :)
 
Last edited:

chirpy

Well-Known Member
Verifed Vendor
Jun 15, 2002
13,437
31
473
Go on, have a guess
The server itself does not open ports itself - you have to have an application daemon running that opens a port and then listens for connections (e.g. httpd, pop3, dns, etc).

Which port and for what application is this for?
 

JP-HOST

Well-Known Member
Sep 23, 2004
59
0
156
Roscoe, IL, USA
Did you /etc/apf/apf -r after editing the conf.apf file?

Also as Chirpy stated the server isn't going to be listening on that port unless something is runing to accept connections. What application and reason did your client ask for the port to be opened? Are they running a program that will listen on it? Are you sure it wasn't an egress port? I have a couple of clients that have apps that query GameServers and Teamspeak servers. I have not had to open a ingress port yet other than the default ones.
 

steve.deobald

Member
May 10, 2004
11
0
151
Should apf be installed with cpanel? It would appear it isn't on my server. (I'd like to open ports the "cpanel recommended" way, if possible.)
 

steve.deobald

Member
May 10, 2004
11
0
151
Thanks Chirpy!

I've set up APF and modified the config to open port 3000 (I'm just playing with Ruby on Rails on my server). It still doesn't seem to be accepting connections, though. Is there anything I need to do outside of /etc/apf/conf.apf as well?
 

steve.deobald

Member
May 10, 2004
11
0
151
I wasn't sure. And now that I know what was wrong, I know it wasn't listening. ;)

I was experimenting with Ruby on Rails. For anyone who's curious, you'll need to specify `-b 0.0.0.0' at the command line for WEBrick to accept outside connections.

Thanks for the help guys!