Forum Moderators: bakedjake

Message Too Old, No Replies

Access Control

Telnet access with specific IP

         

Trusty

10:57 am on May 23, 2003 (gmt 0)



Hello!

I was trying to make telnet login just with my IP and all trial fails in to water, I don't get it.

for access telnet control redhat has two files:
/etc/xinetd.conf
/etc/xinetd.d/telnet

so I config file telnet under xinetd.d dir.
I make "only_from" and my IP but still is the same. so then I try this make the same in file xinetd.conf ("only_from = my IP") and result has been same, I can login with whatever I do, even if I write "no_access = my IP", I can login.

btw: I first login as user, then type su and enter root passwd.
So what I must do?

service telnet
{
disable = no
flags = REUSE
socket_type = stream
wait = no
user = root
only_from = x.x.x.x
# no_access = x.x.x.x
server = /usr/sbin/in.telnetd
log_on_failure += USERID
}

Sorry for my bad English, Iam not native Eng. speakers.Thanks.

daisho

9:11 pm on May 23, 2003 (gmt 0)

10+ Year Member



First of every change you must run

"/etc/rc.d/init.d/xinetd restart"

That being said DON'T USE TELNET. Install openssh! For the love of security everywhere use SSH!

daisho.