Networking Forums

Networking Forums > Computer Networking > Linux Networking > Basic linux network question

Reply
Thread Tools Display Modes

Basic linux network question

 
 
Peter Ensch
Guest
Posts: n/a

 
      03-14-2005, 02:55 PM
I have 2 linux machines connected to an ethernet hub which is
connected to a Lynksys router which assigns IP addresses, host
names and DNS addresses to the 2 machines. The router is
connected to my cable modem.

Both machines are able to access the internet.

What files do I need to update in order for machine A to
connect to machine B using telnet or ssh, and ftp? Right now
neither machine can see the other. I know I must allow the
connection through the firewalls running on both machines, but
is there some other configuration I need to tweak?

Thanks,
Peter

--

^~^~^~^~^~^~^~^~^~^~^~^~^~^~^~^~^~^~^~^~^~^~^~^
Peter Ensch,
(E-Mail Removed) A-1140 (214) 480 2333
^~^~^~^~^~^~^~^~^~^~^~^~^~^~^~^~^~^~^~^~^~^~^~^
 
Reply With Quote
 
 
 
 
Keith Keller
Guest
Posts: n/a

 
      03-14-2005, 06:53 PM
On 2005-03-14, Peter Ensch <(E-Mail Removed)> wrote:
>
> What files do I need to update in order for machine A to
> connect to machine B using telnet or ssh, and ftp? Right now
> neither machine can see the other.


Please define "neither machine can see the other". What exactly did you
try, and what were the results? Best to post actual copy-n-paste output
from a terminal session. Also, might be helpful to see the output of
/sbin/ifconfig on both boxes.

> I know I must allow the
> connection through the firewalls running on both machines, but
> is there some other configuration I need to tweak?


If your DHCP server (which I presume is what your linksys box is doing)
is configured properly and working properly, there should be nothing
else to configure. But the output of ifconfig will likely be
definitive. (Also, you might try testing connectivity without the
local firewalls at all, to eliminate that as the source of your problem.)

--keith

--
kkeller-(E-Mail Removed)
(try just my userid to email me)
AOLSFAQ=http://wombat.san-francisco.ca.us/cgi-bin/fom
see X- headers for PGP signature information

 
Reply With Quote
 
Peter Ensch
Guest
Posts: n/a

 
      03-15-2005, 01:08 PM
Keith Keller wrote:

> On 2005-03-14, Peter Ensch <(E-Mail Removed)> wrote:
>>
>> What files do I need to update in order for machine A to
>> connect to machine B using telnet or ssh, and ftp? Right now
>> neither machine can see the other.

>
> Please define "neither machine can see the other". What exactly did you
> try, and what were the results? Best to post actual copy-n-paste output
> from a terminal session. Also, might be helpful to see the output of
> /sbin/ifconfig on both boxes.
>
>> I know I must allow the
>> connection through the firewalls running on both machines, but
>> is there some other configuration I need to tweak?

>
> If your DHCP server (which I presume is what your linksys box is doing)
> is configured properly and working properly, there should be nothing
> else to configure. But the output of ifconfig will likely be
> definitive. (Also, you might try testing connectivity without the
> local firewalls at all, to eliminate that as the source of your problem.)
>


Thanks for your help. With both firewalls down I can ping each machine
from the other; however, when I try to connect to the other machine
using telnet/rsh or ftp I get 'connection refused'.

Should I have to edit the hosts.deny/allow files on the machine I'm
connecting to in order for this to work?

Thanks again,
Peter

--

^~^~^~^~^~^~^~^~^~^~^~^~^~^~^~^~^~^~^~^~^~^~^~^
Peter Ensch,
(E-Mail Removed) A-1140 (214) 480 2333
^~^~^~^~^~^~^~^~^~^~^~^~^~^~^~^~^~^~^~^~^~^~^~^
 
Reply With Quote
 
Bit Twister
Guest
Posts: n/a

 
      03-15-2005, 02:13 PM
On Tue, 15 Mar 2005 08:08:27 -0600, Peter Ensch wrote:

> Should I have to edit the hosts.deny/allow files on the machine I'm
> connecting to in order for this to work?


To rule that out,
$ cat /etc/hosts.allow
ALL: LOCAL, .some.domain_here, some_ip_add_here

$ cat /etc/hosts.deny
ALL: ALL:\
spawn ( \
/bin/echo -e "\n\
TCP Wrappers\: Connection Refused\n\
By\: $(uname -n)\n\
Process\: %d (pid %p)\n\
\n\
User\: %u\n\
Host\: %c\n\
Date\: $(date)\n\
" | /bin/mail -s \"$(uname -n)\" root ) &
 
Reply With Quote
 
Keith Keller
Guest
Posts: n/a

 
      03-15-2005, 06:32 PM
On 2005-03-15, Peter Ensch <(E-Mail Removed)> wrote:
>
> Thanks for your help. With both firewalls down I can ping each machine
> from the other; however, when I try to connect to the other machine
> using telnet/rsh or ftp I get 'connection refused'.
>
> Should I have to edit the hosts.deny/allow files on the machine I'm
> connecting to in order for this to work?


You can read Bit Twister's suggestions for hosts.deny|allow. I would
also verify that those daemons are running; try telnet localhost, for
example; if it also refuses connection, there's no telnet daemon. (You
should consider doing all of these things using ssh, instead, but the
general solution is the same: if sshd isn't running, no dice.)

Typically, telnetd, rshd, and ftpd run from inetd or xinetd, so look for
/etc/inetd.conf, /etc/xinetd.conf, /etc/xinetd.d/*, or similar
(depending on your distro) and turn the desired services on (if you
really need these services, but again, consider replacing them with ssh
if you can).

sshd is generally a stand-alone daemon, so configure your startup
scripts to run it if it's not already.

--keith

--
kkeller-(E-Mail Removed)
(try just my userid to email me)
AOLSFAQ=http://wombat.san-francisco.ca.us/cgi-bin/fom
see X- headers for PGP signature information

 
Reply With Quote
 
Peter Ensch
Guest
Posts: n/a

 
      03-16-2005, 02:42 AM
On Tue, 15 Mar 2005 09:13:11 -0600, Bit Twister wrote:

> On Tue, 15 Mar 2005 08:08:27 -0600, Peter Ensch wrote:
>
>> Should I have to edit the hosts.deny/allow files on the machine I'm
>> connecting to in order for this to work?

>
> To rule that out,
> $ cat /etc/hosts.allow
> ALL: LOCAL, .some.domain_here, some_ip_add_here
>
> $ cat /etc/hosts.deny
> ALL: ALL:\
> spawn ( \
> /bin/echo -e "\n\
> TCP Wrappers\: Connection Refused\n\
> By\: $(uname -n)\n\
> Process\: %d (pid %p)\n\
> \n\
> User\: %u\n\
> Host\: %c\n\
> Date\: $(date)\n\
> " | /bin/mail -s \"$(uname -n)\" root ) &


I'm in business. Thanks so much, you guys.
Peter


 
Reply With Quote
 
 
 
Reply

Thread Tools
Display Modes

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 On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Basic networking question: Two network ranges Gaspar Windows Networking 7 06-20-2008 06:45 PM
Basic Network Question Whit Windows Networking 4 04-23-2007 03:36 PM
A lack of basic understanding.. Setting up network. Linux & Win XP Trevor Linux Networking 0 08-15-2005 04:29 PM
Very basic home network question Nick H Network Routers 2 01-15-2005 05:44 AM
win2k home network basic question Stef Home Networking 4 11-11-2003 05:28 PM



1 2 3 4 5 6 7 8 9 10 11