Portal Home > Knowledgebase > Articles Database > curl
curl
Posted by kandyjet, 04-03-2013, 03:47 PM |
Hello,
we have by default enabled curl in our hosting.
but, one of the customer is asking the following
"do you support curl post to any port. http://example.com:7010/tets/".
What should i tell him? how can i check this
|
Posted by SocketMain, 04-03-2013, 03:56 PM |
It sounds like your customer is just asking if there would be anything blocking outgoing connections to a specific port. Many hosts restrict which incoming/outgoing ports are open for security reasons. If you use CSF you can check the /etc/csf/csf.conf for the TCP_IN, TCP_OUT, UDP_IN, UDP_OUT variables and see what's listed which will tell you the ports that are allowed to be used. If you use a different firewall, you will have to determine how to check the incoming / outgoing ports on your own or manually check the iptables rules output.
I would suggest you tell your customer that you can open any port that they have a legitimate need to be open, and just add the port to your firewall.
|
Posted by kandyjet, 04-03-2013, 04:13 PM |
Hai SocketMain,
Yes i found csf.conf and below are the contents.
Then ill tell him this
Thank you.
|
Posted by MNCHOST - Chris, 04-03-2013, 04:57 PM |
Ask them legitimate reason first and then open the firewall port for them .
Good Luck !
|
Posted by kandyjet, 04-04-2013, 02:18 AM |
yes ill
|
Posted by MNCHOST - Chris, 04-04-2013, 02:19 AM |
Great. It's ill or will ?
|
Posted by kandyjet, 04-04-2013, 02:21 AM |
btw, for example if a visitor to the site take a live chat and asks for the list of ports that we have currently open, is it ok to provide him the csf.cof port list below?
|
Posted by MNCHOST - Chris, 04-04-2013, 02:24 AM |
No .
It means you are going to expose all security holes of your server to the visitor or might be exploiter .Never do these type of mistakes.
Good Luck Mate!
|
Posted by kandyjet, 04-04-2013, 02:33 AM |
Oh, undestood
|
Posted by MNCHOST - Chris, 04-04-2013, 02:38 AM |
Thanks !
In addition ,change ssh port of your server to new non-standard port to avoid attacker enter into your system through ssh .
vi /etc/ssh/sshd_config
|
Posted by kandyjet, 04-04-2013, 02:45 AM |
btw, last one more question. is it posible to enable ports account wise?
we are using csf firewall.
|
Posted by MNCHOST - Chris, 04-04-2013, 02:49 AM |
Your query mate seems wrong . How you can enable ports over cpanel account ? Port is open for the visitors of the websites hosted in server not for cpanel account . Rethink your question and post again
|
Posted by kandyjet, 04-04-2013, 02:53 AM |
Got it
|
Posted by kandyjet, 04-04-2013, 02:55 AM |
agree:
|
Add to Favourites Print this Article
Also Read
For Resellers (Views: 523)