LinuxQuestions.org
Latest LQ Deal: Latest LQ Deals
Home Forums Tutorials Articles Register
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 07-13-2006, 12:46 AM   #1
dylan912
LQ Newbie
 
Registered: Dec 2004
Distribution: Redhat
Posts: 18

Rep: Reputation: 0
tcp wrappers with ip range


Dear All,

How do we assign ip range on tcp wrappers - /etc/hosts.deny file? example:
range 192.168.128.0 - 192.168.200.0

It'll work with:
ALL:ALL EXCEPT 192.168.128.0/24 192.168.129.0/24 ..... 192.168.200.0/24

But it gives you huge list. I need to achieve something like:
ALL:ALL EXCEPT 192.168.128.0 - 192.168.200.0

Is this possible with tcp wrappers.

Please advice
- Hirantha
 
Old 07-13-2006, 10:33 PM   #2
Capt_Caveman
Senior Member
 
Registered: Mar 2003
Distribution: Fedora
Posts: 3,658

Rep: Reputation: 69
If it doesn't accept a range syntax, then you could use 2 CIDR addresses to span that block of IPs:

192.168.128.0/18 (192.168.128.0-192.168.191.255)
192.168.192.0/21 (192.168.192.0-192.168.199.255)
 
  


Reply



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
TCP Wrappers on LE2005 iggep Mandriva 1 10-31-2005 09:25 AM
NFS with TCP Wrappers! stakhous Linux - Software 1 02-17-2005 09:25 PM
TCP Wrappers ? juanb Linux - Newbie 1 01-31-2004 01:35 PM
tcp wrappers --with-tcp-wrappers ForumKid Linux - Security 2 01-04-2002 04:01 PM
TCP Wrappers ltrain Linux - Security 6 05-31-2001 10:40 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Security

All times are GMT -5. The time now is 10:00 PM.

Main Menu
Advertisement
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
Open Source Consulting | Domain Registration