LinuxQuestions.org
Review your favorite Linux distribution.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Networking
User Name
Password
Linux - Networking This forum is for any issue related to networks or networking.
Routing, network cards, OSI, etc. Anything is fair game.

Notices


Reply
  Search this Thread
Old 12-08-2014, 02:43 PM   #1
Miranden
Member
 
Registered: May 2012
Distribution: Slackware 64 14.2
Posts: 213

Rep: Reputation: 20
Is this host.allow syntax okay?


Hi,

I was hoping someone could look at this and tell me if it is alright. I read the man page, but even though it has references to "daemon_list" and "client_list," it does not give examples of how to refer to more than one client or service per line, and I don't know if I got it right. I am not sure about the spaces, etc. Maybe I should make a separate rule for each service? Or is this okay? Help appreciated.

Code:
# hosts.allow   This file contains access rules which are used to
#               allow or deny connections to network services that
#               either use the tcp_wrappers library or that have been
#               started through a tcp_wrappers-enabled xinetd.
#
#
telnetd:        192.178.125.1
vsftpd, sshd, slapd, rcpbind, snmpd:    192.178.125.0/255.255.255.0, localhost

Last edited by Miranden; 12-08-2014 at 03:01 PM.
 
Old 12-08-2014, 03:00 PM   #2
Miranden
Member
 
Registered: May 2012
Distribution: Slackware 64 14.2
Posts: 213

Original Poster
Rep: Reputation: 20
Found something in man 5 hosts_access that says list elements should be separated by blanks and/or commas. I missed it the first time, sorry. So I think it is alright.
 
Old 12-10-2014, 04:03 PM   #3
Habitual
LQ Veteran
 
Registered: Jan 2011
Location: Abingdon, VA
Distribution: Catalina
Posts: 9,374
Blog Entries: 37

Rep: Reputation: Disabled
the format I'm staring at suggests daemon: <ip0> <ip1>

but besides
Code:
sshd: <ip0> <ip1>
what else can be used instead of sshd?
 
1 members found this post helpful.
  


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
[SOLVED] VIM syntax highlighting: Use of AWK syntax inside shell scripts kaiserkarl13 Programming 1 03-03-2021 09:59 AM
as: using Intel syntax (as opposed to AT&T syntax). stf92 Programming 2 04-19-2014 10:25 PM
Forwarding ping packets from one 1st host to 2nd host via 2rd host sachee Linux - Networking 1 09-25-2011 01:51 PM
unable to fix syntax error in finding ip address of a host name JKingW Programming 8 05-03-2010 11:21 PM
syntax for ssh to a given host on a LAN behind gateway/firewall from the internet Emmanuel_uk Linux - Networking 7 11-23-2006 12:37 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Networking

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