2

I want to add rule for a range of IP addresses from 64.240.160.0 to 64.240.191.255.

4
  • For what purpose? What port/protocol, what are they trying to access. What are you trying to do that isn't covered in the shorewall docs?
    – Zoredache
    Mar 27, 2012 at 22:25
  • @Zoredache lets make it simple, say you own a site, you installed shorewall, but you want to give ssh access to the ip of your friend, you can do that but what you do if he has many ips, how to accept 64.240.xxx.x to 64.240.xxx.x you can't add them manually, coz there are too many, i hope you understand the question better now
    – Lynob
    Mar 27, 2012 at 22:44
  • @Zoredache it's basically how to accept ssh access from certain ips if they are too many, can u specify an interval?
    – Lynob
    Mar 27, 2012 at 22:46
  • Ah, you are just asking how to use ranges.
    – Zoredache
    Mar 27, 2012 at 23:54

1 Answer 1

3

Use the shorewall show capabilities and see if your kernel was compiled with the iprange support.

If it doesn't have that kind of support, then just enter your rules as a CIDR style network definition. So 64.240.160.0/23 == 64.240.160.0 to 64.240.191.255.

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .