LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.

Notices

Reply
 
Search this Thread
Old 02-12-2003, 12:53 AM   #1
lzyking
Member
 
Registered: Dec 2002
Posts: 74

Rep: Reputation: 15
How to restrict only one user can use telnet in /etc/hosts.deny?


I used Redhat 8.0 with tcp_wrapper , now I want to configure the file /etc/hosts.allow or /etc/hosts.deny to achive only one ip can use in.telnetd , so I edited the file /etc/hosts.deny added the following line

in.telnetd : ALL EXCEPT 10.0.0.166

and left the file /etc/hosts.allow blank
but the result was I couldn't telnet the computer , why?
please help me. I had read the redhat reference guide .
 
Old 02-12-2003, 03:07 AM   #2
born4linux
Senior Member
 
Registered: Sep 2002
Location: Philippines
Distribution: Slackware, RHEL&variants, AIX, SuSE
Posts: 1,127

Rep: Reputation: 49
first, remove the entries in /etc/hosts.deny and /etc/hosts.allow so you can check that your telnet service is indeed working properly

if it is working then:

#/etc/hosts.deny:

in.telnetd:ALL EXCEPT 10.0.0.166

should work. check it locally first:

telnet localhost

consider:
- ur firewall ruleset
- if 10.0.0.166 can reach your server

hth
 
Old 02-12-2003, 07:19 PM   #3
lzyking
Member
 
Registered: Dec 2002
Posts: 74

Original Poster
Rep: Reputation: 15
thanks born4linux I make it
 
  


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
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
How to use hosts -.allow and -.deny? dragonflyer Linux - Newbie 2 05-28-2001 08:05 PM
hosts.deny 98steve600 Linux - General 1 01-10-2001 07:39 PM


All times are GMT -5. The time now is 03:42 AM.

Main Menu
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
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration