LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 11-21-2010, 05:25 AM   #1
charu
Member
 
Registered: Nov 2010
Posts: 35

Rep: Reputation: 0
Outbound http connections blocked


(centos 5.5 86*64 with cpanel)
I am trying to set up a php script from projecthoneypot.org

The script requires an outbound connection to project honeypot and when I go to the honeypot.php on my server I get an error asking if outbound connections are disabled.

They could be...I am not sure where to check, I have checked csf and outbound tcp is allowed on port 80, but I am not sure if I should be looking somewhere else.

Obviously I dont want to make the server insecure, so I am wondering how I can allow this outbound connection.
 
Old 11-21-2010, 11:03 AM   #2
smoker
Senior Member
 
Registered: Oct 2004
Distribution: Fedora Core 4, 12, 13, 14, 15, 17
Posts: 2,279

Rep: Reputation: 250Reputation: 250Reputation: 250
Check your setting for allow_url_fopen in php.ini
(I assume you have access to a phpinfo(); page )
The script might require it to be on, but it may be disabled by default.

http://stackoverflow.com/questions/1...l-fopen-in-php

Last edited by smoker; 11-21-2010 at 11:08 AM.
 
1 members found this post helpful.
Old 11-21-2010, 03:04 PM   #3
charu
Member
 
Registered: Nov 2010
Posts: 35

Original Poster
Rep: Reputation: 0
Yes allow_url_fopen was disabled. I have enabled it, but still have not got the script to work. the script I notice, the bits that are readable include fopen() and there is this include_path option in php.ini

Quote:
Specifies a list of directories where the require(), include(), fopen(), file(), readfile() and file_get_contents() functions look for files. The format is like the system's PATH environment variable: a list of directories separated with a colon in Unix or semicolon in Windows.
I also have disabled the following functions, but it is hard to see as some of the script is encrypted..

Code:
ini_set,exec,passthru,shell_exec,system,proc_open,popen,curl_exec,curl_multi_exec,parse_ini_file,show_source, phpinfo,popen, proc_open,allow_url_fopen,apache_get_modules,apache_get_version,apache_getenv,apache_note,apache_setenv,disk_free_space,diskfreespace,dl,highlight_file,ini_alter,ini_restore,openlog,proc_nice,symlink,fsockopen
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Iptables Control Outbound Connections - need help xoros Linux - Networking 5 04-29-2009 05:30 AM
mail misunderstandings /authentication/blocked outbound smtp kevinyeandel Linux - Newbie 0 01-30-2009 08:44 PM
Only allow outbound connections CrEsPo Linux - Security 4 01-01-2007 11:54 AM
programs making outbound connections six6 Debian 2 11-03-2004 11:04 PM
suspicious outbound connections di11rod Linux - Networking 13 01-23-2004 02:55 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 09:12 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration