Author Topic: IP Access restriction  (Read 9471 times)

0 Members and 1 Guest are viewing this topic.

Offline
***
IP Access restriction
« 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.?

Offline
*****
Re: IP Access restriction
« Reply #1 on: June 18, 2019, 09:11:14 AM »
Sure, you can use /etc/csf/csf.allow and set a subnet
« Last Edit: June 20, 2019, 04:06:26 PM by Igor S. »
You can ask me to solve any problem with your server for some money in pm  ;)
Services Monitoring & RBL Monitoring
http://centos-webpanel.com/services-monitor
Join our Development Team and get paid !
http://centos-webpanel.com/develope-modules-for-cwp

Installation Instructions
http://centos-webpanel.com/installation-instructions
Get Fast Support Here
http://centos-webpanel.com/support-services

Offline
***
Re: IP Access restriction
« Reply #2 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

Offline
***
Re: IP Access restriction
« Reply #3 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.

Offline
***
Re: IP Access restriction
« Reply #4 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

Offline
***
Re: IP Access restriction
« Reply #5 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
« Last Edit: July 02, 2019, 04:20:33 PM by adamjedgar »

Offline
***
Re: IP Access restriction
« Reply #6 on: July 02, 2019, 07:48:14 PM »
Ha.  thats a great idea.

Offline
***
Re: IP Access restriction
« Reply #7 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.