LinuxQuestions.org
Latest LQ Deal: Latest LQ Deals
Home Forums Tutorials Articles Register
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 04-23-2019, 04:14 AM   #1
ultrakiasu
LQ Newbie
 
Registered: May 2018
Posts: 5

Rep: Reputation: Disabled
what is the valid delimiters for hosts.allow?


i need to allow ALL services to not just a range of ip but from different network segments.

10.1.x.x
20.2.x.x
30.3.x.x

how could i add them in hosts.allow?

ALL : 10.1. 20.2. 30.3.

Is the above valid? or should i use commas as delimiter?

Saw some threads having a @ sign before the IP, what is the function?

Last edited by ultrakiasu; 04-23-2019 at 04:26 AM.
 
Old 04-23-2019, 05:54 AM   #2
Turbocapitalist
LQ Guru
 
Registered: Apr 2005
Distribution: Linux Mint, Devuan, OpenBSD
Posts: 7,309
Blog Entries: 3

Rep: Reputation: 3721Reputation: 3721Reputation: 3721Reputation: 3721Reputation: 3721Reputation: 3721Reputation: 3721Reputation: 3721Reputation: 3721Reputation: 3721Reputation: 3721
hosts.allow aka tcpwrappers aka tcpd has been deprecated for a long time and many services no longer even recognize it. So odds are you need to find a different way. So I have two clarifying questions:

Which service would this be for? And which distro, including version, is this on?
 
Old 04-23-2019, 08:52 PM   #3
ultrakiasu
LQ Newbie
 
Registered: May 2018
Posts: 5

Original Poster
Rep: Reputation: Disabled
redhat 7.x (64bit)

Trying to fix nessus scan non-compliance to CIS security template.
 
Old 04-23-2019, 11:30 PM   #4
scasey
LQ Veteran
 
Registered: Feb 2013
Location: Tucson, AZ, USA
Distribution: CentOS 7.9.2009
Posts: 5,727

Rep: Reputation: 2211Reputation: 2211Reputation: 2211Reputation: 2211Reputation: 2211Reputation: 2211Reputation: 2211Reputation: 2211Reputation: 2211Reputation: 2211Reputation: 2211
Have you read man hosts.allow? After that, do you still have questions?
Think one entry per line...

Last edited by scasey; 04-23-2019 at 11:32 PM.
 
Old 05-04-2019, 04:58 AM   #5
unSpawn
Moderator
 
Registered: May 2001
Posts: 29,415
Blog Entries: 55

Rep: Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600
Quote:
Originally Posted by ultrakiasu View Post
redhat 7.x (64bit)
Trying to fix nessus scan non-compliance to CIS security template.
Doesn't mean you should use tcp_wrappers. As TC said it's deprecated. So use the firewall.
 
  


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
/etc/hosts.deny/hosts.allow have no effect on sshd access bganesh Linux - Security 4 05-04-2006 08:06 PM
hosts.allow & hosts.deny question... jonc Linux - Security 9 03-05-2005 09:41 PM
Adding shell commands to hosts.deny and hosts.allow ridertech Linux - Security 3 12-29-2003 03:52 PM
hosts.deny and hosts.allow defaults? gui10 Linux - Security 5 12-20-2001 01:57 AM
hosts.allow / hosts.deny fistz Linux - Newbie 1 04-19-2001 07:00 PM

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

All times are GMT -5. The time now is 07:46 PM.

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