Solved

tcp_wrapper, Can I specify port number for /etc/hosts.allow

Posted on 2008-10-07
6
1,135 Views
Last Modified: 2013-12-27
I use TCP Wrapper to allow service install on solaris. Syntax for /etc/hosts.allow is daemon and ip to allow but my problem is I don't know what is daemon name. An application is not well know. Can I specify port number in /etc/hosts.allow?
0
Comment
Question by:anuratra
  • 3
  • 2
6 Comments
 
LVL 40

Assisted Solution

by:omarfarid
omarfarid earned 100 total points
Comment Utility
please see link below for syntax:

http://www.squarebox.co.uk/cgi-squarebox/manServer/usr/share/man/man5/hosts.allow.5

I could not see any example showing that you can specify the port, but you can control the connecting IP source
0
 
LVL 40

Expert Comment

by:omarfarid
Comment Utility
please see link below for syntax:

http://www.squarebox.co.uk/cgi-squarebox/manServer/usr/share/man/man5/hosts.allow.5

I could not see any example showing that you can specify the port, but you can control the connecting IP source
0
 

Author Comment

by:anuratra
Comment Utility
My problem is I don't know daemon name. It is apache. I enter httpd , /PATH/httpd. They don'twork. Moreover another applications is not well known.
0
IT, Stop Being Called Into Every Meeting

Highfive is so simple that setting up every meeting room takes just minutes and every employee will be able to start or join a call from any room with ease. Never be called into a meeting just to get it started again. This is how video conferencing should work!

 
LVL 40

Expert Comment

by:omarfarid
Comment Utility
I think you can use ALL or unknown in the application field (if I remember correctly, you may check the link).
0
 

Author Comment

by:anuratra
Comment Utility
If  I use "ALL" the other application won't block. I want to allow some applications.
0
 
LVL 22

Accepted Solution

by:
blu earned 400 total points
Comment Utility
One key issue here is that not all daemons are compiled to use the TCP_Wrapper feature. The inetd daemon is, and thus can provide the service for all daemons that it starts (at least in nowait mode). You need to make sure that the daemons you want to control here are in fact tcp_wrapper capable.

Depending on you version of Solaris, you might want to use IPFilter instead.
0

Featured Post

Backup Your Microsoft Windows Server®

Backup all your Microsoft Windows Server – on-premises, in remote locations, in private and hybrid clouds. Your entire Windows Server will be backed up in one easy step with patented, block-level disk imaging. We achieve RTOs (recovery time objectives) as low as 15 seconds.

Join & Write a Comment

Article by: btan
The intent is not to repeat what many has know about Ransomware but more to join its dots of what is it, who are the victims, why it exists, when and how we respond on infection. Lastly, sum up in a glance to share such information with more to help…
Even if you have implemented a Mobile Device Management solution company wide, it is a good idea to make sure you are taking into account all of the major risks to your electronic protected health information (ePHI).
Learn how to find files with the shell using the find and locate commands. Use locate to find a needle in a haystack.: With locate, check if the file still exists.: Use find to get the actual location of the file.:
In this tutorial you'll learn about bandwidth monitoring with flows and packet sniffing with our network monitoring solution PRTG Network Monitor (https://www.paessler.com/prtg). If you're interested in additional methods for monitoring bandwidt…

743 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

11 Experts available now in Live!

Get 1:1 Help Now