Linux - Security This forum is for all security related questions.
Questions, tips, system compromises, firewalls, etc. are all included here. |
| Notices |
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
Are you new to LinuxQuestions.org? Visit the following links:
Site Howto |
Site FAQ |
Sitemap |
Register Now
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
 |
GNU/Linux Basic Guide
This 255-page guide will provide you with the keys to understand the philosophy of free software, teach you how to use and handle it, and give you the tools required to move easily in the world of GNU/Linux. Many users and administrators will be taking their first steps with this GNU/Linux Basic guide and it will show you how to approach and solve the problems you encounter.
Click Here to receive this Complete Guide absolutely free. |
|
 |
08-14-2003, 10:44 AM
|
#1
|
|
LQ Newbie
Registered: Aug 2003
Location: Hayling Island UK
Distribution: RedHat
Posts: 2
Rep:
|
xinetd, tcpd and libwrap on RH9 and 7.2
Hi,
In need to understand this in detail as I'm writing code to analyse wrapper config vulnerabilities on various *N*Xes.
As I understand it if you want to use /etc/hosts.allow(deny) on (say) Solaris, you use tcpd as a 'wrapper' to launch services in /etc/inetd.conf. Or you could link libwrap into your binary.
On RH I can't see tcpd used anywhere, but adding ALL:ALL to hosts.deny prevents access to rlogin (launched by xinetd) and sshd (launched from the init.d scripts).
As far as I can see it works the same on RH7 and RH9. On RH9 'ldd' shows libwrap linked into xinetd and sshd so I guess that makes sense. However, on RH7 ldd doesn't show libwarp as being liked into xinetd or sshd.
So here are my questions:
- How is tcpwrappers implimented on RH7?
- Can I use tcpd to launch any network service (say from the shell prompt) or just those in inetd.conf?
- Why doesn't adding to hosts.deny 'xinetd:ALL' prevent access to everything launched by xinetd? (try it..)
Thanks
Chris
|
|
|
|
08-14-2003, 03:44 PM
|
#2
|
|
Member
Registered: Aug 2003
Posts: 134
Rep:
|
doesn't hosts.deny get read before hosts.allow, so if you deny all, then can't you go to allow and allow just what you want and only those should get through? i am totally not sure. i thought that was the case. sorry if i am misleading you.
|
|
|
|
08-14-2003, 04:13 PM
|
#3
|
|
LQ Newbie
Registered: Aug 2003
Location: Hayling Island UK
Distribution: RedHat
Posts: 2
Original Poster
Rep:
|
Tyler,
Thanks for trying, but you should have a look at 'man hosts.allow'....... allow is accessed first. 1st match wins.
My hosts.allow is empty. Anyway, I'm happy with the way allow/deny works (except for the xinetd:ALL entry being ignored). It's just I can't see _why_ wrappers works at all on RH7....
|
|
|
|
08-14-2003, 04:42 PM
|
#4
|
|
Member
Registered: Aug 2003
Posts: 134
Rep:
|
sorry about that. not in front of a linux box now. away from home. i apologize.
|
|
|
|
| Thread Tools |
Search this Thread |
|
|
|
Posting Rules
|
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts
HTML code is Off
|
|
|
All times are GMT -5. The time now is 05:55 AM.
|
|
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.
|
Latest Threads
LQ News
|
|