+ Reply to Thread
Page 1 of 4
1 2 3 ... LastLast
Results 1 to 15 of 56

Thread: Accessing cPanel/WebMail behind a strict firewall

  1. #1
    Managing Director Adam's Avatar
    Join Date
    Jun 2003
    Location
    United Kingdom
    Posts
    2,380

    Accessing cPanel/WebMail behind a strict firewall

    We had an e-mail from a client last week who was having problems accessing his control panel from work (who wants to work when you can play around with Fantastico?) because the firewall blocked ports 2082 (cPanel) and 2095 (WebMail).

    We played around with PHP and .htaccess and successfully ported cPanel and WebMail over to port 80. Because it was such a success we have decided to offer this functionality on all servers; click the corresponding links below to test it out.

    Phoebe
    cPanel: http://cpanel.hu-servers.com
    WebMail: http://webmail.hu-servers.com

    Titan
    cPanel: http://cpanel.hu-hosting.com
    WebMail: http://webmail.hu-hosting.com

    Hyperion
    cPanel: http://cpanel.hu-hyperion.com
    WebMail: http://webmail.hu-hyperion.com

    Atlas
    cPanel: http://cpanel.hu-atlas.com
    WebMail: http://webmail.hu-atlas.com

    Mimas
    cPanel: http://cpanel.hu-mimas.com
    WebMail: http://webmail.hu-mimas.com

    Pan
    cPanel: http://cpanel.hu-pan.com
    WebMail: http://webmail.hu-pan.com

    Tethys
    cPanel: http://cpanel.hu-tethys.com
    WebMail: http://webmail.hu-tethys.com

    Miranda
    cPanel: http://cpanel.hu-miranda.com
    WebMail: http://webmail.hu-miranda.com

    Access is slightly slower than the traditional login with ports 2082 and 2095 as the server has to grab the information and relay it back to your browser twice but all in all it works extremely well.

    Enjoy

    Kevin
    Adam Heavens

  2. #2
    Wireless bandwidth abuse! despammed's Avatar
    Join Date
    Aug 2003
    Location
    Down the lane and round the corner to the right, Through the glass doors and up the express elevator to the 43rd floor, enter the penthouse to the south and I'm in the corner office.
    Posts
    638
    Thank you! Thank you! Thank you! Thank you! I asked for this ages ago too.

    It'll cache better too being on port 80 so that slow speed will be leveled out with less hits.

  3. #3
    Wireless bandwidth abuse! despammed's Avatar
    Join Date
    Aug 2003
    Location
    Down the lane and round the corner to the right, Through the glass doors and up the express elevator to the 43rd floor, enter the penthouse to the south and I'm in the corner office.
    Posts
    638
    In fact thanks to squid it's much faster than before!

    Cheers Kevin.

  4. #4
    Managing Director Adam's Avatar
    Join Date
    Jun 2003
    Location
    United Kingdom
    Posts
    2,380
    Are you pleased about this by any chance?

    Glad it's working for you.

    Kevin
    Adam Heavens

  5. #5
    Wireless bandwidth abuse! despammed's Avatar
    Join Date
    Aug 2003
    Location
    Down the lane and round the corner to the right, Through the glass doors and up the express elevator to the 43rd floor, enter the penthouse to the south and I'm in the corner office.
    Posts
    638
    Quote Originally Posted by Kevin
    Are you pleased about this by any chance?

    Glad it's working for you.

    Kevin
    Yep. Cheers.

    So whow did you do it? Some sort of php port redirection script and a mod_rewrite rule?

  6. #6
    Wireless bandwidth abuse! despammed's Avatar
    Join Date
    Aug 2003
    Location
    Down the lane and round the corner to the right, Through the glass doors and up the express elevator to the 43rd floor, enter the penthouse to the south and I'm in the corner office.
    Posts
    638
    FYI: There appears to be a bug when downloading a full backup. (don't shoot the messenger)

  7. #7
    Managing Director Adam's Avatar
    Join Date
    Jun 2003
    Location
    United Kingdom
    Posts
    2,380
    Some sort of php port redirection script and a mod_rewrite rule?
    Bang on.

    What errors are you getting from the backup process?

    Kevin
    Adam Heavens

  8. #8
    Wireless bandwidth abuse! despammed's Avatar
    Join Date
    Aug 2003
    Location
    Down the lane and round the corner to the right, Through the glass doors and up the express elevator to the 43rd floor, enter the penthouse to the south and I'm in the corner office.
    Posts
    638
    There is a url with http://localhost/ in it which obviously ain't gonna work.

  9. #9
    Registered User
    Join Date
    Nov 2003
    Posts
    16
    Oh Yes ! Absolutely outstanding. I can now shut down my other (accessible) email accounts.

  10. #10
    Wireless bandwidth abuse! despammed's Avatar
    Join Date
    Aug 2003
    Location
    Down the lane and round the corner to the right, Through the glass doors and up the express elevator to the 43rd floor, enter the penthouse to the south and I'm in the corner office.
    Posts
    638
    Kevin,
    Any cance you could post/e-mail me a copy of the rewrite config and redirector?

    Chris.

  11. #11
    Managing Director Adam's Avatar
    Join Date
    Jun 2003
    Location
    United Kingdom
    Posts
    2,380
    Yup

    In .htaccess you'll need this:
    PHP Code:
    RewriteEngine on
    RewriteCond 
    %{REQUEST_URI} !^/proxy.php
    RewriteRule 
    .* /proxy.php [last
    The PHP file is attached.

    Kevin
    Attached Files
    Adam Heavens

  12. #12
    Registered User recurring's Avatar
    Join Date
    Mar 2004
    Location
    Kent
    Posts
    19

    I think I'm doing something wrong. I'm behind a firewall too. I've tried my control panel access username and password on all three links and none of them work (Access Denied as opposed to a timeout).

    If I wanted to give my webmail users a nice and easy webmail URL that will work from behind firewalls (as some of them are), what would I give them, one of the three webmail links in the first post? Are there alternatives that are more related to my domain that will work?
    I'm suffering from amnesia and deja vu at the same time. I think I've forgotten this before.

  13. #13
    Moderator Robert's Avatar
    Join Date
    Sep 2003
    Location
    Australia
    Posts
    620
    Complete guess here. Are you on telesto?

    Telesto
    cPanel: http://cpanel.hu-telesto.com
    WebMail: http://webmail.hu-telesto.com
    .:.

  14. #14
    Registered User recurring's Avatar
    Join Date
    Mar 2004
    Location
    Kent
    Posts
    19
    Indeed I am, the CP link above work great, thanks. The webmail only goes to HP's front page though.

    Now it's just my webmail question - is there some way I could have my clients use webmail via a standard port but using my domain URL?
    I'm suffering from amnesia and deja vu at the same time. I think I've forgotten this before.

  15. #15
    Registered User pete_the_sweep's Avatar
    Join Date
    Oct 2003
    Location
    Wetherby, West Yorks
    Posts
    454
    Quote Originally Posted by recurring
    Indeed I am, the CP link above work great, thanks. The webmail only goes to HP's front page though.

    Now it's just my webmail question - is there some way I could have my clients use webmail via a standard port but using my domain URL?
    Yes, you would have to do what Kevin did a few posts above

    Peter
    peter.rowden [at] gmail.com

+ Reply to Thread

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

     

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts