Server Fault is a question and answer site for system and network administrators. It's 100% free, no registration required.

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

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

share|improve this question
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 '12 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 to you can't add them manually, coz there are too many, i hope you understand the question better now – Lynob Mar 27 '12 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 '12 at 22:46
Ah, you are just asking how to use ranges. – Zoredache Mar 27 '12 at 23:54
up vote 3 down vote accepted

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 == to

share|improve this answer

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.