Page 1 of 1
how to allow/block custom (small) range of ip address
Posted: 13 Jan 2017, 18:27
by dindin
I'd like to allow 149.154.167.197-233 on port 443, but haven't been able to figure out how to do this in csf.allow
For one ip address I have:
tcp|in|d=443|s=149.154.167.197
But how do i get the whole range without having to specify each ip address on a single line?
Re: how to allow/block custom (small) range of ip address
Posted: 13 Jan 2017, 19:31
by sawbuck
CIDR notation would still require multiple entries but would shrink the total to single digits from dozens.
http://ipaddressguide.com/cidr#range
Re: how to allow/block custom (small) range of ip address
Posted: 13 Jan 2017, 21:02
by dindin
Great, that will work!
I assume I can use this type of notation in csf.ignore (LFD) as well, correct?
Re: how to allow/block custom (small) range of ip address
Posted: 13 Jan 2017, 21:47
by sawbuck
Yes it will.
Re: how to allow/block custom (small) range of ip address
Posted: 13 Jan 2017, 23:05
by dindin
Thank you for help!
Re: how to allow/block custom (small) range of ip address
Posted: 13 Jan 2017, 23:44
by sawbuck
You're welcome.
Re: how to allow/block custom (small) range of ip address
Posted: 16 Dec 2019, 16:27
by melkwin
dindin wrote: ↑13 Jan 2017, 18:27
I'd like to allow 149.154.167.197-233 on port 443, but haven't been able to figure out how to do this in csf.allow
For one ip address I have:
tcp|in|d=443|s=149.154.167.197
But how do i get
MyColes the whole range without having to specify each ip address on a single line?
SAME THING TO ME