LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Security (https://www.linuxquestions.org/questions/linux-security-4/)
-   -   Shorewall configuration question (https://www.linuxquestions.org/questions/linux-security-4/shorewall-configuration-question-381193/)

nazs 11-08-2005 02:24 PM

Shorewall configuration question
 
Hello All,
I am trying to configure Shorewall. How do I set the range of internal IP's to have access. They are static so i think there is a range of 100 possible ip's. I don't want to have to enter 100 lines for each ip maually. So lets say I want 192.168.1.1 - 192.168.1.40 to have access then 192.168.1.60 - 192.168.1.99 also to have access. 192.168.1.41 - 192.168.1.59 are not allowed in. What would be the command?

Thanks ,
Nazs

tkedwards 11-08-2005 04:55 PM

Try
Code:

ACCEPT          192.168.1.1 - 192.168.1.40 fw
ACCEPT        192.168.1.60 - 192.168.1.99 fw

in /etc/shorewall/rules

and make sure there is NOT
Code:

loc fw ACCEPT
in /etc/shorewall/policy


All times are GMT -5. The time now is 04:20 AM.