LinuxQuestions.org
Help answer threads with 0 replies.
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-19-2006, 10:22 AM   #1
Bodyweb
LQ Newbie
 
Registered: Feb 2005
Distribution: Suse 10.1
Posts: 20

Rep: Reputation: 0
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:
Code:
ALL: ALL
/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.
 
Old 07-19-2006, 11:04 AM   #2
bathory
LQ Guru
 
Registered: Jun 2004
Location: Piraeus
Distribution: Slackware
Posts: 13,215
Blog Entries: 1

Rep: Reputation: 2067Reputation: 2067Reputation: 2067Reputation: 2067Reputation: 2067Reputation: 2067Reputation: 2067Reputation: 2067Reputation: 2067Reputation: 2067Reputation: 2067
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
 
Old 07-20-2006, 10:57 AM   #3
Bodyweb
LQ Newbie
 
Registered: Feb 2005
Distribution: Suse 10.1
Posts: 20

Original Poster
Rep: Reputation: 0
Did it and it works very good, thank U
 
Old 07-20-2006, 11:26 AM   #4
unSpawn
Moderator
 
Registered: May 2001
Posts: 29,415
Blog Entries: 55

Rep: Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600
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.
 
Old 07-20-2006, 11:32 AM   #5
Bodyweb
LQ Newbie
 
Registered: Feb 2005
Distribution: Suse 10.1
Posts: 20

Original Poster
Rep: Reputation: 0
So, you mean that if you kill or crash the xinetd service U can contact the daemons behind it or not ?
 
Old 07-20-2006, 12:40 PM   #6
unSpawn
Moderator
 
Registered: May 2001
Posts: 29,415
Blog Entries: 55

Rep: Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600
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.
 
Old 07-20-2006, 01:06 PM   #7
Bodyweb
LQ Newbie
 
Registered: Feb 2005
Distribution: Suse 10.1
Posts: 20

Original Poster
Rep: Reputation: 0
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
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

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
Can't SSH to remote machine: Connection closed by remote host Avatar Linux - Networking 35 10-23-2017 01:21 AM
Can't access files on remote server thru browser kornerr Linux - General 3 01-29-2006 01:29 PM
Mount remote host mrbabis Linux - Newbie 1 10-24-2005 06:10 PM
MRTG -> remote host Soulstealer Linux - Networking 3 06-27-2005 07:11 PM
Resolving <www.some remote host>.... failed: Host not found. koodoo Linux - Newbie 2 06-27-2005 09:48 AM

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

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