Limit accessing 2031 control panel port by IP address

Started by MMatyas, July 30, 2021, 01:57:44 PM

Previous topic - Next topic

MMatyas

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

studio4host

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.

Painkiller88

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.

whitedd

Is it posible to allow IP range?
example: 22.33.0.0/16