Author Topic: Can't login to CWP  (Read 5872 times)

0 Members and 1 Guest are viewing this topic.

Offline
*
Can't login to CWP
« on: February 18, 2020, 07:28:16 AM »
It seems something is messed up, ports 2030, 2031, 2078, 2076 are closed and I don't know hot to open them.
I think all firewalls are closed.

SFTP works over 2278 and I can download public_html.
I need the databases, but I don't know users or passwords on MariaDB.

This is a salvage operation, the server will be rebuilt, so no need to worry about the safety.

Offline
****
Re: Can't login to CWP
« Reply #1 on: February 18, 2020, 08:54:13 AM »
/etc/csf/csf.conf

Find tcp_in and tcp_out and add the ports for both ipv4 and ipv6
csf -r   <<when your done
Mariadb root pass is stored on /root/.my.cnf
« Last Edit: February 18, 2020, 08:58:24 AM by rcschaff »
Google Hangouts:  rcschaff82@gmail.com

Offline
*
Re: Can't login to CWP
« Reply #2 on: February 18, 2020, 05:45:58 PM »
Those ports were already present in /etc/csf/csf.conf :

Code: [Select]

# Allow incoming TCP ports
TCP_IN = "20,21,2278,25,53,80,110,143,443,465,587,993,995,2030,2031,2082,2083,2086,2087,2095,2096"

# Allow outgoing TCP ports
TCP_OUT = "20,21,25,53,80,110,113,443,2030,2031,2082,2083,2086,2087,2095,2096,587,993,995"


# Allow incoming IPv6 TCP ports
TCP6_IN = "20,21,22,25,53,80,110,143,443,465,587,993,995,2030,2031,2082,2083,2086,2087,2095,2096"

# Allow outgoing IPv6 TCP ports
TCP6_OUT = "20,21,22,25,53,80,110,113,443,2030,2031,2082,2083,2086,2087,2095,2096,587,993,995"

Can't do csf -r, it gives me a bunch of nonsense, ending with:
Country Code Lookups setting MM_LICENSE_KEY must be set in /etc/csf/csf.conf to continue using the MaxMind databases

Opened an account at MaxMind, and generated licenseKey, but can't do much with it. Can't find instructions to upgrade. They just say to download some permalinks (which I did) and to copy them in the modal window (for which I have no idea what it is). Current version is 2.5.0
https://dev.maxmind.com/geoip/geoipupdate/

Code: [Select]
geoipupdate -v
geoipupdate -V

Ok, at least I've found the password on /root/.my.cnf



« Last Edit: February 18, 2020, 05:55:09 PM by cronnin »

Offline
****
Re: Can't login to CWP
« Reply #3 on: February 18, 2020, 06:45:44 PM »
Find CC_SRC = "1" and change it to 2
Google Hangouts:  rcschaff82@gmail.com

Offline
*
Re: Can't login to CWP
« Reply #4 on: February 19, 2020, 01:40:57 AM »
I managed to mysqldump the database.

As for the last suggestion, it didn't help.
Just for fun tried removing CSF, reinstalling firewalld, opening ports manually (although cmd propmts back with 'success' message, they still stay closed), reverting back to CSF. I'm deleting this server.

Thanks for the help, rcschaff.

Offline
****
Re: Can't login to CWP
« Reply #5 on: February 19, 2020, 03:01:59 AM »
Are you sure your host doesn't have a firewall in front of your server.  Some do.
Google Hangouts:  rcschaff82@gmail.com

Offline
*
Re: Can't login to CWP
« Reply #6 on: February 19, 2020, 05:01:09 AM »
Sure. No firewall. There was a problem with a new Cloudflare SSL certificate. It was uploaded on the server, but wasn't seen for days and main website reported back error 526. I wanted to try to troubleshoot it and I probably did something very wrong late at night.

I had a backup from three days ago, so not much would have been lost. Maybe 3h of work. I lost 3x more time trying to find out what went wrong :)