LinuxQuestions.org
Help answer threads with 0 replies.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Security
User Name
Password
Linux - Security This forum is for all security related questions.
Questions, tips, system compromises, firewalls, etc. are all included here.

Notices

Reply
 
Search this Thread
Old 11-08-2005, 02:24 PM   #1
nazs
Member
 
Registered: Apr 2005
Posts: 57

Rep: Reputation: 15
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
 
Old 11-08-2005, 04:55 PM   #2
tkedwards
Senior Member
 
Registered: Aug 2004
Location: Munich, Germany
Distribution: Opensuse 11.2
Posts: 1,549

Rep: Reputation: 51
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
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
shorewall config question with /etc/shorewall/rules peter72 Linux - Networking 3 01-01-2007 09:33 PM
Shorewall configuration ('run_iptables' - problem) Quintus14 Linux - Security 3 02-03-2005 08:16 AM
Shorewall Question reesee Linux - Newbie 0 04-24-2004 04:53 PM
Shorewall Question pitt30 Linux - Security 2 02-03-2004 04:33 AM
Shorewall 1.4.4 Question leeach Linux - Security 3 09-30-2003 04:29 PM


All times are GMT -5. The time now is 07:53 AM.

Main Menu
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration