LinuxQuestions.org
Latest LQ Deal: Latest LQ Deals
Home Forums Tutorials Articles Register
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 06-23-2002, 01:44 PM   #1
jkcunningham
Member
 
Registered: May 2002
Location: Seattle, WA, USA
Distribution: Gentoo
Posts: 136

Rep: Reputation: 15
problem with ftp and telnet between linux machines


Hi,

I want to ftp or telnet to another linux machine on my home LAN. Both are running SuSE 8 pro. Both have ftp and telnet turned on. I got the ip address of one using ifconfig as su (192.168.1.101). When I try to connect from the other with > telnet 192.168.1.101 I get "Connection closed by foreign host". When I try the same thing with ftp, I get "421 Service not available, remote server has closed connection.".

When I go into Yast2/Inetd services, it says both services are active.

What gives?

jcunningham
 
Old 06-23-2002, 03:01 PM   #2
Mara
Moderator
 
Registered: Feb 2002
Location: Grenoble
Distribution: Debian
Posts: 9,696

Rep: Reputation: 232Reputation: 232Reputation: 232
Do you have firewall on?
 
Old 06-23-2002, 03:12 PM   #3
jkcunningham
Member
 
Registered: May 2002
Location: Seattle, WA, USA
Distribution: Gentoo
Posts: 136

Original Poster
Rep: Reputation: 15
Thanks for the response.
No, I don't have the firewall on.
In /etc/hosts.allow I have:

ALL : LOCAL
ALL : 192.168.1.

which I understand to mean it will allow all services, but only to users on my lan. The curious thing is that when I try to ftp machine A from machine B, I get "Service not available, remote server has closed connection". But when I try to ftp B from A, I get a more jocular "Connected to 192.168.1.104; 220 redy, dude (vsFTPd 1.0.1: beat me, break me); 530 This FTP server is annoymous only; ftp: Login failed.

I'm confused. They're both running the same load of SuSE 8.

 
Old 06-25-2002, 03:09 PM   #4
Mara
Moderator
 
Registered: Feb 2002
Location: Grenoble
Distribution: Debian
Posts: 9,696

Rep: Reputation: 232Reputation: 232Reputation: 232
It looks it's something wrong with ftp configuration (because they are connecting). First thing is host.allow/host.deny on both machines. Then check ftp configuration. There should be nice graphical utility for this, but I don't have SUSE to look for its name.
 
Old 06-25-2002, 04:44 PM   #5
Pepepotamo
LQ Newbie
 
Registered: Jun 2001
Location: Paris
Distribution: Debian
Posts: 15

Rep: Reputation: 0
First thing is to know if the problem comes from ftp server or from network connection.

Just try a ftp connection locally:
- if it doesn't work --> ftp server doesn't work right: verify .conf files
- if it works --> the problem is on network connection

Are you sur ftp server binds on the right interface? Maybe you're trying to contact an IP adresses where ftp is not listening ...

Please, could you post the result of :
1) netstat -tpan (as root)
2) ifconfig -a

It could help ... thanks a lot
 
Old 06-25-2002, 09:09 PM   #6
jkcunningham
Member
 
Registered: May 2002
Location: Seattle, WA, USA
Distribution: Gentoo
Posts: 136

Original Poster
Rep: Reputation: 15
I don't understand why, but it seems to be working now.
Thank you just the same.
 
Old 07-04-2002, 12:11 PM   #7
Catherine
LQ Newbie
 
Registered: Jul 2002
Posts: 4

Rep: Reputation: 0
Hey I am trying to do the same thing on my RedHat 7.2. What is my hosts.allow file supposed to look like if I want to be able to telnet from outside my lan? Also, how do I turn off my firewall? Can't I keep it on and still telnet in? If I have to turn it off, I will, but how?
 
Old 07-04-2002, 12:17 PM   #8
pickledbeans
Member
 
Registered: Jun 2002
Location: Bailey, CO
Distribution: Slackware
Posts: 483

Rep: Reputation: 32
421 Service not available, that's the key point.
On box in question do:
ipchains -L -n

look in /etc/inetd.conf see if ftp/telnet are comment out.
Check /var/log messages for any errors

use rpm --Q |grep telnet to see if telnet is installed
 
Old 07-04-2002, 03:22 PM   #9
Catherine
LQ Newbie
 
Registered: Jul 2002
Posts: 4

Rep: Reputation: 0
Ok it is obvious I have a lot to learn about the firewall...I'll find a book on that.

As far as /etc/inetd.conf is concerned, I have a line for telnet, but not one for ftp. My line for telnet looks like:
telnet stream tcp nowait root /usr/bin/tcpd in.telnetd
I don't know if this is right, it was just someone's suggestion.
Is it correct, and what would I write for ftp?

Also, in my hosts.allow file, how do I specify that I want even IP addresses outside my lan to be able to telnet in? A message earlier in this thread shows an example of NOT allowing in others outside the firewall, but I don't know how to apply it to the affirmative.
 
Old 07-04-2002, 05:24 PM   #10
pickledbeans
Member
 
Registered: Jun 2002
Location: Bailey, CO
Distribution: Slackware
Posts: 483

Rep: Reputation: 32
And you didn't see anyting in /var/adm/messages?

and the there was know rejects in output from either
ipchians -L or iptable -L

I common for firewalls to block telnet and ftp for secruity reeason. have you tried ssh? and scp? and sftp?
 
  


Reply



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
Not bale to FTP and Telnet from any other server to LINUX kapilvyasbda Linux - Networking 1 11-25-2004 05:08 AM
enablind ftp and telnet in SUSE Linux Enterprise Server 8.0 mbhenry Linux - General 1 11-03-2003 12:42 PM
Telnet/ftp problem in RedHat 7.3 rayche Linux - Networking 2 04-07-2003 05:03 PM
telnet problem between two local linux machines jkcunningham Linux - Software 2 06-23-2002 01:48 PM
telnet, ftp problem in linux 7.1 (PCQ) saroj Linux - Networking 1 09-22-2001 01:50 AM

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

All times are GMT -5. The time now is 12:12 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