how to allow/block custom (small) range of ip address

Post Reply
dindin
Junior Member
Posts: 5
Joined: 10 Aug 2011, 14:15

how to allow/block custom (small) range of ip address

Post 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?
sawbuck
Junior Member
Posts: 366
Joined: 10 Dec 2006, 16:20

Re: how to allow/block custom (small) range of ip address

Post by sawbuck »

CIDR notation would still require multiple entries but would shrink the total to single digits from dozens.

http://ipaddressguide.com/cidr#range
dindin
Junior Member
Posts: 5
Joined: 10 Aug 2011, 14:15

Re: how to allow/block custom (small) range of ip address

Post by dindin »

Great, that will work!

I assume I can use this type of notation in csf.ignore (LFD) as well, correct?
sawbuck
Junior Member
Posts: 366
Joined: 10 Dec 2006, 16:20

Re: how to allow/block custom (small) range of ip address

Post by sawbuck »

Yes it will.
dindin
Junior Member
Posts: 5
Joined: 10 Aug 2011, 14:15

Re: how to allow/block custom (small) range of ip address

Post by dindin »

Thank you for help!
sawbuck
Junior Member
Posts: 366
Joined: 10 Dec 2006, 16:20

Re: how to allow/block custom (small) range of ip address

Post by sawbuck »

You're welcome.
melkwin
Junior Member
Posts: 1
Joined: 16 Dec 2019, 16:26

Re: how to allow/block custom (small) range of ip address

Post 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
Post Reply