Solved

Webserver access problem

Posted on 2016-09-19
5
75 Views
Last Modified: 2016-09-20
I have a Linux server that suddenly developed an access problem. I normally connect to the cPanel via https://ip:2087. Suddenly I cannot, as well as not being able to access my webpage or email server. I can telnet into the server with no problem, everything seems to be running ok. I manage to setup a SSH tunnel to the server and via that can access cPanel via https://ip:2087

What am I missing?
0
Comment
Question by:AdamBarnard
  • 2
  • 2
5 Comments
 
LVL 50

Expert Comment

by:Steve Bink
ID: 41806497
What happens when you try to browse to your cPanel?
0
 
LVL 20

Accepted Solution

by:
Daniel McAllister earned 500 total points
ID: 41806552
My first guess (assuming you've confirmed the https service is running) is that you've accidentally started or reset your firewall.

What you're using as a firewall is dependent upon what distro you're using (although you can override that, and force any of them).

But a very common firewall in Linux is iptables.... and to see if you have a rule allowing HTTP access in your iptables, you would issue the command:
  iptables -L

The output should show a line that contains:
   ACCEPT tcp -- 0.0.0.0/0 0.0.0.0/0 tcp dpt:80

Most Linux systems come with the firewall configured to block all but SSH (or, in  a few, telnet)...

I realize you're probably not comfortable using the shell (probably do most, if not all, of your configuring with the cPanel), in which case I recommend you call your hosting company and ask them to unblock your cPanel access, at which point you can use cPanel to check/maintain your firewall settings.

I hope that's it! If so, its an easy fix to a common issue.

Best Regards

Dan
IT4SOHO
0
 

Author Comment

by:AdamBarnard
ID: 41807447
Thanks Steve, I could not access CPanel unless I connected via a SSH tunnel. Thanks Daniel, I actually solved the problem earlier today, just didn't have the time to note it here. I checked the firewall by listing the iptables, everything looked to be ok, until I stopped the firewall and everything started working. I then flushed the rules with Iptables -F, and rebuild them all. That solved my problem.

Thank you guys for your input!

Adam
0
 
LVL 20

Expert Comment

by:Daniel McAllister
ID: 41807519
Adam:

Glad you found the issue -- one last thing tho: close the question and distribute the points to the people who's answers most helped resolve the issue.

Dan
IT4SOHO
0
 
LVL 50

Expert Comment

by:Steve Bink
ID: 41807600
Good to hear you solved it.  Every time I hit this issue, I forget to check this, until I suddenly remember.  cPanel has an abuse detection mechanism in it which can be pretty brutal.  It often picks up valid, authorized connections as false positives.  If you check (IIRC) cphulk configuration and temporary blacklists, you'll see your IP listed.  You can resolve the issue from there every single time without having to flush the entire set of rules.

I tend to permanently whitelist my IP because of this issue, though that will not work if you can't guarantee your IP to be the same every time.  

Good luck!
0

Featured Post

Master Your Team's Linux and Cloud Stack

Come see why top tech companies like Mailchimp and Media Temple use Linux Academy to build their employee training programs.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

Title # Comments Views Activity
Centos 7 User to Start Apache, MariaDB, LDAP 5 48
wipe a usb using python 5 64
VMware Tools Install On Linux Problem 3 83
CLI command keep running after close 7 36
I. Introduction There's an interesting discussion going on now in an Experts Exchange Group — Attachments with no extension (http://www.experts-exchange.com/discussions/210281/Attachments-with-no-extension.html). This reminded me of questions tha…
Google Drive is extremely cheap offsite storage, and it's even possible to get extra storage for free for two years.  You can use the free account 15GB, and if you have an Android device..when you install Google Drive for the first time it will give…
Learn how to navigate the file tree with the shell. Use pwd to print the current working directory: Use ls to list a directory's contents: Use cd to change to a new directory: Use wildcards instead of typing out long directory names: Use ../ to move…
Get a first impression of how PRTG looks and learn how it works.   This video is a short introduction to PRTG, as an initial overview or as a quick start for new PRTG users.

856 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question