Author Topic: Limit accessing 2031 control panel port by IP address  (Read 4095 times)

0 Members and 1 Guest are viewing this topic.

Offline
*
Limit accessing 2031 control panel port by IP address
« on: July 30, 2021, 01:57:44 PM »
Hi all
I want to disable login screen to control panel except specific IP addresses on my server
Assume my cwp login address is site.com:2031/login/index.php
I want only allowed IP addresses can see this screen
Can I manage this by creating a csf rule granting access for specified IP addresses,
 1.1.1.1 is allowed for 2031 or 2087 port

Offline
*
Re: Limit accessing 2031 control panel port by IP address
« Reply #1 on: July 30, 2021, 04:52:18 PM »
simply lock the port and whitelist your IP or enable IP limit in CWP as mentioned on the cwp wiki
VPS & Dedicated server provider with included FREE Managed support for CWP.
http://www.studio4host.com/

*** Don't allow that your server or website is down, choose hosting provider with included expert managed support for your CWP.

Offline
**
Re: Limit accessing 2031 control panel port by IP address
« Reply #2 on: July 30, 2021, 07:20:14 PM »
Yes there is an official way to do this.

1. Create the file /usr/local/cwp/.conf/.access_root
2. Enter the IPs you wanna allow, one IP per line.

If you wish to remove an IP just delete the line with this IP or delete the file to allow all IPs again.

Offline
*
Re: Limit accessing 2031 control panel port by IP address
« Reply #3 on: February 12, 2024, 02:58:37 AM »
Is it posible to allow IP range?
example: 22.33.0.0/16