Take the 2-minute tour ×
Server Fault is a question and answer site for professional system and network administrators. It's 100% free, no registration required.

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

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 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 –  Someone Like You 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? –  Someone Like You Mar 27 '12 at 22:46
    
Ah, you are just asking how to use ranges. –  Zoredache Mar 27 '12 at 23:54
add comment

1 Answer

up vote 2 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 64.240.160.0/23 == 64.240.160.0 to 64.240.191.255.

share|improve this answer
add comment

Your Answer

 
discard

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.