ANN: cPanel Proxy - for people behind strict firewalls

myplacedk

Member
Oct 16, 2003
21
0
151
I have seen many questions about how to access cPanel (including webmail and WHM) on port 80, if you are behind a strict firewall that doesn't allow access to the ports used by cPanel.

cPanel Proxy is a PHP-script that works by listening on port 80, and forward traffic to cPanel.

So far I've only found two problems: HTTPS is not supported, and file upload isn't supported yet.

You can download the script from here: http://myplace.dk/php/cpanelproxy/
 

mickeymouse

Well-Known Member
Sep 16, 2003
388
0
166
Dear myplacedk,

This seems to be a useful suggestion. Many will definitely find this useful.

Regards,
 

myplacedk

Member
Oct 16, 2003
21
0
151
New release, file upload is now supported.

Next issue is performance. I have several places in the script made suggestions for performance improvements.
I (or somebody else *hint*) just need study it a little.
 

Solokron

Well-Known Member
Aug 8, 2003
852
2
168
Seattle
cPanel Access Level
DataCenter Provider
Very useful. I will give it a shot!
 

anand

Well-Known Member
Nov 11, 2002
1,432
1
168
India
cPanel Access Level
DataCenter Provider
Originally posted by myplacedk
I have seen many questions about how to access cPanel (including webmail and WHM) on port 80, if you are behind a strict firewall that doesn't allow access to the ports used by cPanel.

cPanel Proxy is a PHP-script that works by listening on port 80, and forward traffic to cPanel.

So far I've only found two problems: HTTPS is not supported, and file upload isn't supported yet.

You can download the script from here: http://myplace.dk/php/cpanelproxy/
real nice work dude.
 

chican0

Well-Known Member
Mar 26, 2003
59
0
156
Los Angeles
I have been trying to get this to work as the instructions say but for some reason it just doenst want to work for me. It keeps prompting me for the username and password until it errors out.

Is there a certain format to input the username and password or is my system just broken. :)
 

myplacedk

Member
Oct 16, 2003
21
0
151
The format is exactly the same, as if you logged on directly to cPanel.

If you trust me enough, you can send me your username, password and hostname for your cPanel, then I cna probably find the problem for you.

I wouldn't trust a stranger that much. If you do, please remember to send me the info in private. ;-)
 

Devil Inside

Well-Known Member
Apr 4, 2003
276
0
166
Anyone get this to work with horde?

When I try loggin into horde it just keeps showing the login screen.
 

Solokron

Well-Known Member
Aug 8, 2003
852
2
168
Seattle
cPanel Access Level
DataCenter Provider
Anyone get this working with phpsuexec?
 

elleryjh

Well-Known Member
Apr 12, 2003
475
0
166
It works great for me - cpanel, horde, phpmyemail, everything! (I am using phpsuexec. That shouldn't make a difference) I'm using it as my main interface for all cutomers and have modified it so that it uses a friendly and good-looking login interface, cookies, plus a top frame branded with my company logo and a logout button. And a great feature - remembers peoples' favorite webmail program!
 

Solokron

Well-Known Member
Aug 8, 2003
852
2
168
Seattle
cPanel Access Level
DataCenter Provider
It works great on non-phpsuexec servers of ours. It is unable to pass the information on the phpsuexec ones though.

Originally posted by elleryjh
It works great for me - cpanel, horde, phpmyemail, everything! (I am using phpsuexec. That shouldn't make a difference) I'm using it as my main interface for all cutomers and have modified it so that it uses a friendly and good-looking login interface, cookies, plus a top frame branded with my company logo and a logout button. And a great feature - remembers peoples' favorite webmail program!
 

Solokron

Well-Known Member
Aug 8, 2003
852
2
168
Seattle
cPanel Access Level
DataCenter Provider
Is there a way to create a form to pass the information instead of the pop-up?
 

chican0

Well-Known Member
Mar 26, 2003
59
0
156
Los Angeles
Awsome! The autoinstaller worked like a charm. Great work.

Only thing I noticed which might or might not be a bug is the "Try it now" link on the autoinstaller page. The URLs which it linked to were, http://webmail.domain.com/webmail/ which did not work. It would instead try to redirect to http://webmail.domain.com:2095/. If I manually changed it to http://webmail.domain.com/, it was all fine. This applies to webmail, cpanel, and whm.

Again, Thank you very much for the bug fixes. I was paying for a proxy service at proxifier.com.

I still have to enable phpsuexec and see how that works. I will report back on that later on.
 

myplacedk

Member
Oct 16, 2003
21
0
151

jamesbond

Well-Known Member
Oct 9, 2002
737
1
168
I installed the newest version and it works very well :)

One question about https, will this ever be supported? Or is it somehow impossible/difficult to implement?
 

myplacedk

Member
Oct 16, 2003
21
0
151
Originally posted by jamesbond
One question about https, will this ever be supported? Or is it somehow impossible/difficult to implement?
I haven't tried, but maybe it works as it is now. But you will need to install cPanel Proxy so it can be reached by https, and most users can't do that.

If you (or anyone else) have tried, you are welcome to contact me (niels (a) myplace dot dk). If it didn't work for you, I may be able to make it work.
 

jamesbond

Well-Known Member
Oct 9, 2002
737
1
168
I could set up a SSL cert on a seperate IP to try it, but I would like to use the server SSL cert.

What about installing the proxy in /usr/local/apache/htdocs ?

For example for webmail I could create a subdirectory /mail

So if I upload the files to /usr/local/apache/htdocs/mail and access https://www.anydomainonserver.com/mail it should access the proxy located in /usr/local/apache/htdocs/mail

Does this make any sense? :)

I'm not sure what modifications are needed in the script though to make this work.

I'll take a look at it tomorrow.