Jump to content

Recommended Posts

Posted

I'm trying to write a CGI script that would telnet to an external host (a chess server), and retrieve a list of users to display on a webpage (updated every hour or so).

 

But I can't connect to the host (using Perl's Net/Telnet.pm module).

When I try to ping the host from the TCH server, I get:

ping: icmp open socket: Operation not permitted

 

does this mean you're blocking socket connections?

Does anyone know another way I can do this?

Posted

wouldn't that require shell access to run ? if so I dont believe that TCH allows that on shared servers.

I just finished reading something about that a minute ago which is why I am replying

 

if I am incorrect please excuse my ignorance

Posted

No, it would not require shell access to run, just a regular cgi script. You can see that the user is actually running the commands without shell access, the problem is the error that it is returning.

 

About the error:

Actually, the ping error can be fixed by editing a config file (usually the vserver .conf file) Search CAP_NET_RAW for your own personal satisfaction and entertainment if you want.

 

However, access to raw ICMP sockets is disabled for security reasons on many shared servers. I am sure that is the reason here.

 

Anyway, what error are you getting when you actually try to connect (not the ping error).

Posted

We do block some outgoing non-standard connections. If there is a particular one you need, submit a support ticket with the information about what you need access to.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Unfortunately, your content contains terms that we do not allow. Please edit your content to remove the highlighted words below.
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...