LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Networking
User Name
Password
Linux - Networking This forum is for any issue related to networks or networking.
Routing, network cards, OSI, etc. Anything is fair game.

Notices


Reply
  Search this Thread
Old 09-18-2005, 01:28 PM   #1
pentalive
Member
 
Registered: Jun 2005
Location: Sacramento, CA
Distribution: Many, Old and New
Posts: 124

Rep: Reputation: 15
Telnet - Connection Refused Many things checked.


-- The machine is named "think", it is a DHCP client and it is getting it's address
correctly. (192.168.0.35)

-- Can ping think from other machines

-- /etc/xinetd.d/telnet "disabled=no" , no "only-from" lines

-- Think's host.allow and host.deny are both empty

-- services --status-all says xinetd is running

-- ftp and ssh also say "connection refused"

-- think can telnet, ftp and ssh to other machines.

What else can I check?

How can I check Think's firewall to find if it actually has one
and to verify it is not the problem.

Thanks.
 
Old 09-18-2005, 01:47 PM   #2
david_ross
Moderator
 
Registered: Mar 2003
Location: Scotland
Distribution: Slackware, RedHat, Debian
Posts: 12,047

Rep: Reputation: 79
You can check your firewall rules with:
iptables -nL

I would also suggest not enabling telnet in the first place and just using ssh:
http://wiki.linuxquestions.org/wiki/Telnet_and_SSH
 
Old 09-18-2005, 02:23 PM   #3
pentalive
Member
 
Registered: Jun 2005
Location: Sacramento, CA
Distribution: Many, Old and New
Posts: 124

Original Poster
Rep: Reputation: 15
Telnet Connection Refused more things checked...

Thanks David...

Quote:
Originally posted by david_ross
You can check your firewall rules with:
iptables -nL
Code:
Hint: insmod errors can be caused by incorrect module parameters, including invalid IO or IRQ parameters
/lib/modules/2.4.18-3/kernel/net/ipv4/netfilter/ip_tables.o: init_module: Device or resource busy
/lib/modules/2.4.18-3/kernel/net/ipv4/netfilter/ip_tables.o: insmod /lib/modules/2.4.18-3/kernel/net/ipv4/netfilter/ip_tables.o failed
/lib/modules/2.4.18-3/kernel/net/ipv4/netfilter/ip_tables.o: insmod ip_tables failed
iptables v1.2.5: can't initialize iptables table `filter': iptables who? (do you need to insmod?)
Perhaps iptables or your kernel needs to be upgraded.
This was done as root on think. Remember I am running an older redhat (7.3)

Looks like either there is no firewall installed (that's ok becuase I am behind a NAT router
and the world will never see this machine) or it's missinstalled...


Quote:
I would also suggest not enabling telnet in the first place and just using ssh:
http://wiki.linuxquestions.org/wiki/Telnet_and_SSH
SSH would be fine except is also says "connection refused"
 
Old 09-18-2005, 03:24 PM   #4
david_ross
Moderator
 
Registered: Mar 2003
Location: Scotland
Distribution: Slackware, RedHat, Debian
Posts: 12,047

Rep: Reputation: 79
Sorry, I forgot it was 7.3 - you will probably be using ipchains:
ipchains -nL
 
Old 09-18-2005, 04:24 PM   #5
pentalive
Member
 
Registered: Jun 2005
Location: Sacramento, CA
Distribution: Many, Old and New
Posts: 124

Original Poster
Rep: Reputation: 15
telnet Connection Refused more things checked...

Here is the output of IP chains:

Code:
Chain input (policy ACCEPT):
target     prot opt     source                destination           ports
ACCEPT     udp  ------  206.13.28.10         0.0.0.0/0             53 ->   1025:65535
ACCEPT     udp  ------  151.164.1.8          0.0.0.0/0             53 ->   1025:65535
ACCEPT     udp  ------  192.168.0.1          0.0.0.0/0             53 ->   1025:65535
ACCEPT     all  ------  0.0.0.0/0            0.0.0.0/0             n/a
REJECT     tcp  -y----  0.0.0.0/0            0.0.0.0/0             * ->   0:1023
REJECT     tcp  -y----  0.0.0.0/0            0.0.0.0/0             * ->   2049
REJECT     udp  ------  0.0.0.0/0            0.0.0.0/0             * ->   0:1023
REJECT     udp  ------  0.0.0.0/0            0.0.0.0/0             * ->   2049
REJECT     tcp  -y----  0.0.0.0/0            0.0.0.0/0             * ->   6000:6009
REJECT     tcp  -y----  0.0.0.0/0            0.0.0.0/0             * ->   7100
Chain forward (policy ACCEPT):
Chain output (policy ACCEPT):
It looks like my firewall is open to me for everythin.. "ACCEPT all ----- 0.0.0.0/0 0.0.0.0/0 n/a"
(I am just guessing... :^))

If not, this machine sits behind a NAT router on a private network. (or will when I am rich again..
right now the local network is not visible from the Internet, and only my iBook or my wife's
windows xp machine dial up the Internet), so No firewall would be ok.
 
Old 09-19-2005, 09:45 AM   #6
vimal
Red Hat India
 
Registered: Nov 2004
Location: Kerala/Pune,india
Distribution: RedHat, Fedora
Posts: 260

Rep: Reputation: 36
Hi ,
just try flushing your ipchains firewall using the command ipchains -F. then issue the command service ipchains save. after that try again....
vimal.......
 
Old 09-19-2005, 11:54 AM   #7
pentalive
Member
 
Registered: Jun 2005
Location: Sacramento, CA
Distribution: Many, Old and New
Posts: 124

Original Poster
Rep: Reputation: 15
Telnet Connection Refused more things checked...

That seems to have it... I tested by telneting from think to beehive, then from beehive back to think.

For some strange reason, when I am dialed in, I can't see anything of my local network from my iBook.

So a real test will be to telnet/ssh from my iBook once I am off the net.

I think it's fixed.

Thanks, david_ross and vimal!!. :^)

ron.
 
  


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
telnet connection refused hcmk Linux - Networking 13 09-02-2006 03:31 PM
telnet, connection refused rsmereka Linux - Security 4 03-25-2005 03:14 PM
Telnet connection refused naveenpn Linux - Networking 2 02-17-2004 08:16 AM
telnet: Connection refused hnash53 Linux - Networking 2 01-23-2004 03:12 PM
Telnet: Connection Refused Erice60rng Linux - Security 7 01-20-2003 07:15 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Networking

All times are GMT -5. The time now is 01:54 PM.

Main Menu
Advertisement
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
Open Source Consulting | Domain Registration