Control Web Panel

WebPanel => Information => Topic started by: pixelpadre on June 17, 2019, 11:50:06 PM

Title: IP Access restriction
Post by: pixelpadre on June 17, 2019, 11:50:06 PM
My house ip changes whenever we lose power.  I know there is a file to restrict logins to one or more ip addresses. 

Is it possible to restrict to a range since my house ip doesnt change by much.?
Title: Re: IP Access restriction
Post by: Igor S. on June 18, 2019, 09:11:14 AM
Sure, you can use /etc/csf/csf.allow and set a subnet
Title: Re: IP Access restriction
Post by: pixelpadre on June 18, 2019, 10:49:20 AM
Im referring to the panel exclusive IP access file not csf.  Its in wiki.



/usr/local/cwp/.conf/.access_root
Title: Re: IP Access restriction
Post by: adamjedgar on June 20, 2019, 09:12:58 PM
Just buy/rent a static IP address for your home/office internet connection from your internet service provider.

Here in my country it costs me $10/month for one.

Solves the problem.
Title: Re: IP Access restriction
Post by: pixelpadre on July 01, 2019, 12:41:05 PM
CenturyLink does not offer static IP's as I found out through google.

The only way to get a static IP is to upgrade to a business plan which costs much more money, and you get less bandwidth.

CenturyLink is the worst
Title: Re: IP Access restriction
Post by: adamjedgar on July 02, 2019, 04:16:53 PM
Perhaps register a cheap vps somewhere, Use that as a VPN gateway, with only ssh key access, to your main server and access it through VPN static IP.

You can get cheap VPS for $5-10/ mth depending on how much ram. Checkout Vultr.com
Title: Re: IP Access restriction
Post by: pixelpadre on July 02, 2019, 07:48:14 PM
Ha.  thats a great idea.
Title: Re: IP Access restriction
Post by: pixelpadre on July 07, 2019, 12:22:50 PM
OK, I got a vpn set up on Linode for $5/month.  I used openvpn  and installed it using RoadWarrior easy install script.  I made it more difficult by spending hours reading about vpn's.  I used debian because Linode had a tut on it and recommended Debian.  So now I have a static ip and no longer care what happens to my house ip address.

I will say this though.  Loading cwp using the vpn seemed to be very slow.  Not sure if that was a consequence of the vpn or not.

You can toggle ip address in system tray on windows.  I generally use it only for CWP business.  If you know any other reason to use it, post it here.