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.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
|
|
07-19-2006, 10:22 AM
|
#1
|
LQ Newbie
Registered: Feb 2005
Distribution: Suse 10.1
Posts: 20
Rep:
|
Host files, remote access
Pardon me if I start quoting another thread, it's to have not to much OT.
Quote:
Originally Posted by unSpawn
/etc/hosts.deny:
/etc/hosts.allow:
Code:
sshd: 127.0.0.1, 10.1.1.
vncserver: 127.0.0.1, 10.1.1.
I'm not sure about the name of the "vncserver" entry: replace with the name of the running VNC daemon.
|
That's clear, but suppose I have a web server and email server in this machine, by inserting in the host.deny ALL:ALL it should be stopped also avery connection from the web and on the 25 and 110 port, isn't it ?
I should add those services to host.allow too.
|
|
|
07-19-2006, 11:04 AM
|
#2
|
LQ Guru
Registered: Jun 2004
Location: Piraeus
Distribution: Slackware
Posts: 13,215
|
The /etc/hosts.allow and /etc/hosts.deny are used to allow/deny access to services controlled by inetd (or xinetd) using tcp-wrappers. Usually webservers and smtp servers are not started through (x)inetd so there is no problem. Also pop server that is controlled from inetd is not using tcp-wrappers, so there is no problem too.
Tcp-wrappers are used for services such as telnet, ftp etc. Take a look here for more details.
Regards
|
|
|
07-20-2006, 10:57 AM
|
#3
|
LQ Newbie
Registered: Feb 2005
Distribution: Suse 10.1
Posts: 20
Original Poster
Rep:
|
Did it and it works very good, thank U
|
|
|
07-20-2006, 11:26 AM
|
#4
|
Moderator
Registered: May 2001
Posts: 29,415
|
To clarify:
The /etc/hosts.allow and /etc/hosts.deny are used to allow/deny access to services controlled by inetd (or xinetd) using tcp-wrappers.
/etc/hosts.allow and /etc/hosts.deny are used to allow/deny access to services whose daemon can use tcp_wrappers: this means compiled with -lwrap, for example OpenSSH (ldd /location/of/sshd | grep libwrap). Xinetd doesn't use tcp_wrapper config files but provides a way through it's own service config files.
|
|
|
07-20-2006, 11:32 AM
|
#5
|
LQ Newbie
Registered: Feb 2005
Distribution: Suse 10.1
Posts: 20
Original Poster
Rep:
|
So, you mean that if you kill or crash the xinetd service U can contact the daemons behind it or not ?
|
|
|
07-20-2006, 12:40 PM
|
#6
|
Moderator
Registered: May 2001
Posts: 29,415
|
if you kill or crash the xinetd service U can contact the daemons behind it or not ?
Xinetd provides access to services, it starts the related daemons to handle the request.
No Xinetd, no Xinetd services.
|
|
|
07-20-2006, 01:06 PM
|
#7
|
LQ Newbie
Registered: Feb 2005
Distribution: Suse 10.1
Posts: 20
Original Poster
Rep:
|
Quote:
Originally Posted by unSpawn
Xinetd provides access to services, it starts the related daemons to handle the request.
No Xinetd, no Xinetd services.
|
Just what I'd like to hear
|
|
|
All times are GMT -5. The time now is 11:26 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
|
|