LinuxQuestions.org
Visit the LQ Articles and Editorials section
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 09-17-2009, 05:40 PM   #1
AmirArif
LQ Newbie
 
Registered: Sep 2009
Posts: 2

Rep: Reputation: 0
Fedora 11 rejecting remote telnet session from Window XP


I just installed Fedora 11 & connected the system in my LAN; and trying to have telnet access from my Window XP. But the Fedora 11 reject my telnet request (see log file below). I confirmed telnet is ON & listening, but can not figure it our the reason for this. I would appreciate if anyone would be able to help me. Following is some of the info:

----------------------------------------------------
[root@lax-man2 etc]# chkconfig --list telnet
telnet on
[root@lax-man2 etc]# netstat -a | grep telnet
tcp 0 0 *:telnet *:* LISTEN
[root@lax-man2 etc]# more /etc/hosts.allow
#
# 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.
#
# See 'man 5 hosts_options' and 'man 5 hosts_access'
# for information on rule syntax.
# See 'man tcpd' for information on tcp_wrappers
#
in.telnetd : 172.18.213. 127.0.0.1 172.18.232.
[root@lax-man2 etc]# more /etc/xinetd.d/telnet
# default: on
# description: The telnet server serves telnet sessions; it uses \
# unencrypted username/password pairs for authentication.
service telnet
{
disable = no
flags = REUSE
socket_type = stream
wait = no
user = root
server = /usr/sbin/in.telnetd
log_on_failure += USERID
}
[root@lax-man2 etc]# tail /var/log/message
Sep 17 14:36:34 lax-man2 xinetd[1534]: START: telnet pid=21334 from=::ffff:172.18.213.107
Sep 17 14:36:34 lax-man2 xinetd[1534]: EXIT: telnet status=1 pid=21334 duration=0(sec)
Sep 17 14:54:45 lax-man2 xinetd[1534]: START: telnet pid=21484 from=::ffff:172.18.213.109
Sep 17 14:54:45 lax-man2 xinetd[1534]: EXIT: telnet status=1 pid=21484 duration=0(sec)
Sep 17 15:33:13 lax-man2 xinetd[1534]: START: telnet pid=21687 from=::ffff:172.18.213.107
Sep 17 15:33:15 lax-man2 xinetd[1534]: EXIT: telnet status=1 pid=21687 duration=2(sec)
[root@lax-man2 mail]#
------------------------------------------------------------------

Thanks in Advance
Amir Arif
 
Old 09-17-2009, 08:26 PM   #2
chrism01
Guru
 
Registered: Aug 2004
Location: Sydney
Distribution: Centos 6.5, Centos 5.10
Posts: 16,289

Rep: Reputation: 2034Reputation: 2034Reputation: 2034Reputation: 2034Reputation: 2034Reputation: 2034Reputation: 2034Reputation: 2034Reputation: 2034Reputation: 2034Reputation: 2034
Be nice to your actual cmd and response msgs, but an educated guess says the firewall (iptables) on F11 is blocking you.
Telnet is a plaintext protocol, NOT recommended to be used these days. Use ssh instead.
 
Old 09-21-2009, 02:00 PM   #3
AmirArif
LQ Newbie
 
Registered: Sep 2009
Posts: 2

Original Poster
Rep: Reputation: 0
Fedora 11 rejecting remote telnet session from Window XP

Thanks Chris for your hint. Per your suggestion I have put in place following iptables but it still does not work. I would appreciate your comment on this:

[root@lax-man2 sysconfig]# chkconfig --list iptables
iptables 0:off 1:off 2:on 3:on 4:on 5:on 6:off
[root@lax-man2 sysconfig]# more iptables

*filter
:INPUT ACCEPT [0:0]
:FORWARD ACCEPT [0:0]
:OUTPUT ACCEPT [0:0]
-A INPUT -m state --state ESTABLISHED,RELATED -j ACCEPT
-A INPUT -p icmp -m icmp --icmp-type echo-request -j REJECT --reject-with icmp-h
ost-prohibited
-A INPUT -p icmp -j ACCEPT
-A INPUT -i lo -j ACCEPT
-A INPUT -i eth0 -j ACCEPT
iptables -A INPUT -p ALL -i eth0 -s 172.18.213.0/24 -j ACCEPT
iptables -A INPUT -p ALL -i lo -s 127.0.0.1 -j ACCEPT
-A INPUT -m state --state NEW -m tcp -p tcp --dport 21 -j ACCEPT
-A INPUT -m state --state NEW -m tcp -p tcp --dport 22 -j ACCEPT
-A INPUT -m state --state NEW -m tcp -p tcp --dport 23 -j ACCEPT
-A FORWARD -m state --state ESTABLISHED,RELATED -j ACCEPT
-A FORWARD -p icmp -m icmp --icmp-type echo-request -j REJECT --reject-with icmp
-host-prohibited
-A FORWARD -p icmp -j ACCEPT
-A FORWARD -i lo -j ACCEPT
-A FORWARD -i eth0 -j ACCEPT
-A INPUT -j REJECT --reject-with icmp-host-prohibited
-A FORWARD -j REJECT --reject-with icmp-host-prohibited
COMMIT
 
  


Reply

Tags
fedora, from, remote, session, telnet, window, xp


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
Why can't I open another Xserver on VT7 to 8 in Fedora 10 to start a remote x session Sm1ler Linux - General 4 05-28-2009 04:16 PM
Telnet session consumes 8KB which is never released after session is terminated NilesBor Linux - Kernel 1 04-24-2009 11:14 AM
Can't end telnet servcie in xinetd when close remote telnet cliend forcely zeroneworld Linux - Newbie 2 12-09-2007 08:47 PM
How to log command output from telnet session even after logout from the remote serve UltraSoul Solaris / OpenSolaris 2 10-15-2006 08:20 PM


All times are GMT -5. The time now is 06:17 PM.

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