LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Mandriva
User Name
Password
Mandriva This Forum is for the discussion of Mandriva (Mandrake) Linux.

Notices


Reply
  Search this Thread
Old 10-31-2005, 12:47 AM   #1
iggep
Member
 
Registered: Sep 2005
Location: Virginia Beach, VA
Posts: 48

Rep: Reputation: 15
TCP Wrappers on LE2005


I really hate to post this because it sounds like such a newbish question, but I'm really tired right now and obviously can't figure this out in my current state.

I'm running LE 2005 as a LAMP server. I thought with TCP wrappers, and finally got around to setting up hosts.allow and hosts.deny tonight. Problem is hosts.deny simply doesn't work. Regardless of what I try to lock out, I can still get to it. I have shorewall locking out services that I really don't want accessed, but I want TCP Wrappers behind it holding the door just in case.

hosts.allow
sshd: 192.168.1.0/255.255.255.0
httpd: 192.168.1.0/255.255.255.0

hosts.deny
ALL: ALL except localhost

Coupled with Shorewall should ensure that no one outside my network should be able to access those two services (this is an intranet server). I played around with denying myself from my workstation and I can still access both sshd and httpd. Which tells me that I obviously do not have tcp wrappers working.

I look in xinetd.d and the only file I find there is sshd-xinetd, which actually has access to ssh disabled. Not the case since I'm on SSH with my server right now.

So I'm scratching my head here and the search function on the forum is a bit broad. Getting all kinds of hits on posts that don't have much to do with my problem. Can someone point me in the right direction here?
 
Old 10-31-2005, 09:25 AM   #2
Hobbletoe
Member
 
Registered: Sep 2004
Location: Dayton, Oh
Distribution: Linux Mint 17
Posts: 150

Rep: Reputation: 18
Chances are, SSH is being run from outside of xinetd. Same more than likely goes for your HTTPD server. These are normally run from outside of xinetd because xinetd is used primarily for services that are run infrequently. If you FTP to your box once in a blue moon, then this is a good choice for a service to run under xinet. Services that continually run on a server (such as HTTPD) generally do not run under xinet as each time a connection is attempted, the service would have to be started (possibly, depending on how it is set up for xinet), which takes time and extra CPU cycles and all.

I know that when I installed OpenSSH on our Solaris boxes, all I had to do to get them to check the hosts.allow file was to throw a switch when I was compiling it. When we used to run telnet, we had to specify TCP Wrappers in our inet settings for telnet to check hosts.allow.

I'm not really sure how to set up TCP Wrappers for SSH or HTTPD, but hopefully you can see why things aren't working as you'd thought. Should give you something to look at at least.
 
  


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
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
Firewall vs. TCP-Wrappers Crashed_Again Linux - Security 8 01-31-2003 06:35 AM
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 - Distributions > Mandriva

All times are GMT -5. The time now is 04:43 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