LinuxQuestions.org
Latest LQ Deal: Latest LQ Deals
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Networking
User Name
Password
Linux - Networking This forum is for any issue related to networks or networking.
Routing, network cards, OSI, etc. Anything is fair game.

Notices


Reply
  Search this Thread
Old 02-18-2008, 05:45 PM   #1
cyberbushi
LQ Newbie
 
Registered: Feb 2008
Posts: 2

Rep: Reputation: 0
Question IP tables or TCP wrappers ???


Can someone please tell me in which situation would I use TCP wrappers over IP tables or vice versa because right now I don't see a reason to use it for my ssh server if I have ip tables implemented . I have read books and online resource stating that I should use TCP wrappers for ssh server just don't see why I would if I'm using IP tables it seems to me that IP tables do the same thing just control access on a more broader range of services and protocols.

PS. I read all the similar threads regarding TCP wrapper none help me.

linuxquestions.org/481572
linuxquestions.org/173568
linuxquestions.org/140740
linuxquestions.org/10678
linuxquestions.org/2905
 
Old 02-18-2008, 06:06 PM   #2
billymayday
LQ Guru
 
Registered: Mar 2006
Location: Sydney, Australia
Distribution: Fedora, CentOS, OpenSuse, Slack, Gentoo, Debian, Arch, PCBSD
Posts: 6,678

Rep: Reputation: 122Reputation: 122
Read something like http://www.redhat.com/docs/manuals/l...pwrappers.html

Why would you be using one OVER the other. They're complimentary.
 
Old 02-18-2008, 08:50 PM   #3
anomie
Senior Member
 
Registered: Nov 2004
Location: Texas
Distribution: RHEL, Scientific Linux, Debian, Fedora
Posts: 3,935
Blog Entries: 5

Rep: Reputation: Disabled
In some situations they could be mutually exclusive. Example:
  • Host is running sshd.
  • tcp wrappers support is compiled into sshd.
  • iptables/netfilter is also enabled.
  • There is a need to restrict access to sshd to the 192.168.5.0/24 subnet.

An iptables rule could be used to allow access to tcp 22 from that subnet. Or, if no packet filtering is done on tcp 22 at all, an appropriate tcp wrappers ruleset could allow only that subnet and block the rest.
 
Old 02-18-2008, 08:51 PM   #4
anomie
Senior Member
 
Registered: Nov 2004
Location: Texas
Distribution: RHEL, Scientific Linux, Debian, Fedora
Posts: 3,935
Blog Entries: 5

Rep: Reputation: Disabled
Quote:
Originally Posted by cyberbushi
I have read books and online resource stating that I should use TCP wrappers for ssh server just don't see why I would if I'm using IP tables...
You wouldn't.
 
Old 02-18-2008, 08:57 PM   #5
billymayday
LQ Guru
 
Registered: Mar 2006
Location: Sydney, Australia
Distribution: Fedora, CentOS, OpenSuse, Slack, Gentoo, Debian, Arch, PCBSD
Posts: 6,678

Rep: Reputation: 122Reputation: 122
Quote:
An iptables rule could be used to allow access to tcp 22 from that subnet. Or, if no packet filtering is done on tcp 22 at all, an appropriate tcp wrappers ruleset could allow only that subnet and block the rest.
But you would still be using iptables for other ports I'd assume
 
Old 02-20-2008, 12:02 PM   #6
cyberbushi
LQ Newbie
 
Registered: Feb 2008
Posts: 2

Original Poster
Rep: Reputation: 0
Thanks alot guys :)

You've been lots of help
 
  


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 sysconfig Linux - Security 4 09-08-2006 08:20 AM
netatalk and TCP wrappers greenhornet Linux - Networking 0 04-22-2004 11:47 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 - Networking

All times are GMT -5. The time now is 10:31 AM.

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