1832645 Members
3106 Online
110043 Solutions
New Discussion

Using inetd.sec

 
Sumanth N
Occasional Advisor

Using inetd.sec

Hello,
I have new service x which i want to secure using inetd.sec.
service x runs on port 2345, and uses a STREAM socket.
I want to allow the processes only from local host to make use of the service.

How do i go about it using inetd.sec.
In which files i have to make any entry of service X.
is an entry in inetd.conf is neccessary?

3 REPLIES 3
Muthukumar_5
Honored Contributor

Re: Using inetd.sec

Is x service configured with /etc/services file first?

# grep -w x /etc/services
x2345/tcp

# netstat -na | grep 2345

is it in LISTEN state.

To control the access of 2345 port then,

create a file as,

touch /var/adm/inetd.sec with bin:bin permission with the contents of,
xdeny

that is it. see inetd.sec man page more.

hth.
Easy to suggest when don't know about the problem!
Sumanth N
Occasional Advisor

Re: Using inetd.sec

Thanks for the reply.

is an entry into the inetd.conf is required?

once again thanks

Tom Ward_1
Honored Contributor

Re: Using inetd.sec

Hello,

No changes are /etc/inetd.conf are needed to use /var/adm/inetd.sec.

Good luck,
Tom