LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Networking (https://www.linuxquestions.org/questions/linux-networking-3/)
-   -   Connection refused error (https://www.linuxquestions.org/questions/linux-networking-3/connection-refused-error-975/)

robs4linux 02-21-2001 01:56 PM

I'm trying to share files between two mandrake 7.2 systems, and I'm running into an error: connection refused

I tried also into telnet into one pc with the other, and I get the same "connection refused" error.

I can ping the two pcs with each other just fine.

I exported a directory with one pc, and when I goto mount that directory on the other pc, it throws the error! By the way, I'm using NFS.

I use this command to mount it:

mount 400mhz:/home/bobby/export /mnt/400mhz

Note that "400mhz" is the hostname of the pc that is exporting the directory.

I also put "ALL:ALL" in the /etc/hosts.allow file for the pc exporting the files.

Does anybody have any idea of what I'm doing wrong?

Thanks for any help you can provide! :)
-Robs

PS. I checked to see if /etc/inetd.conf contained a line for telnet... it does, and it's not commented. So I guess telnet should be setup ok!

crabboy 02-25-2001 12:05 AM

Sounds like you have a firewall running on your machine that is rejecting access to your ports. Try typing iptables -L on a 2.4.x kernel or ipchains -L on a 2.2.x kernel, to see what rules are configured for your machine. (is the -L correct for ipchains?) Look in you startup script directory to see if any firewall scripts are executing. Grep for ipchains or iptables.

Without killing yourself with NFS see if you can access the NFS tcp port. telnet hostname 2049.

Usually firewalls do not block tcp or udp ports that high.


Hope this helps

Gary

jupp 03-19-2002 02:09 PM

Also make sure that the version of mandrake you are using doesn't use xinetd. If it does, you need to open the telnet and nfs service on /etc/xinetd.conf and NOT /etc/inetd.conf. Make the necessary changes to xinetd.conf, restart xinetd and you should be ok.
If you are not familiar with xinetd read the man page, the format is very different from inetd

Joseph


All times are GMT -5. The time now is 03:20 PM.