LinuxQuestions.org
Help answer threads with 0 replies.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 07-26-2006, 10:38 AM   #1
GeekMasterFlash
LQ Newbie
 
Registered: Jul 2006
Distribution: Aurora SPARC Linux
Posts: 5

Rep: Reputation: 0
Unhappy No firewall rules, still can't connect to localhost


I am not sure if this topic belongs here, but I am having a problem.

I am trying to set up a Samba server, but when I run smbclient -L localhost I get an error:

Error connecting to 127.0.0.1 (Connection refused)
Connection to localhost failed

I also can not telnet on port 23 to localhost.

I have turned off iptables, and the problem consists. I can telnet to other ports such as 53. Can anyone help me figure out this problem?
 
Old 07-26-2006, 11:37 AM   #2
gizza23
Member
 
Registered: Jun 2005
Location: Chicago, IL, USA
Distribution: Fedora Core, CentOS
Posts: 188

Rep: Reputation: 31
Hi,
Can you at least ping localhost?
Code:
#ping localhost
 
Old 07-26-2006, 11:46 AM   #3
GeekMasterFlash
LQ Newbie
 
Registered: Jul 2006
Distribution: Aurora SPARC Linux
Posts: 5

Original Poster
Rep: Reputation: 0
Quote:
Originally Posted by gizza23
Hi,
Can you at least ping localhost?
Code:
#ping localhost
[root@Odin ~]# ping localhost
PING localhost (127.0.0.1) 56(84) bytes of data.
64 bytes from Odin (127.0.0.1): icmp_seq=0 ttl=64 time=0.594 ms
64 bytes from Odin (127.0.0.1): icmp_seq=1 ttl=64 time=0.601 ms
64 bytes from Odin (127.0.0.1): icmp_seq=2 ttl=64 time=0.607 ms

Yes, I can even telnet in on some common ports like 53 (DNS) using localhost as the name.
 
Old 07-27-2006, 01:01 AM   #4
fotoguy
Senior Member
 
Registered: Mar 2003
Location: Brisbane Queensland Australia
Distribution: KirraMail Live Email Server
Posts: 1,285

Rep: Reputation: 61
Also check the /etc/hosts.deny of the host your trying to connect too. If it has ALL:ALL in it you will need an entry in the /etc/hosts.allow file to allow you connecting host's ip address or the network ipaddress range:

# /etc/hosts.allow
ALL:192.168.1.0/255.255.255.0

Assuming you have a 192.168.1.0 network, just change it to your real network ipaddress range
 
  


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
Firewall and NAT rules samplelin Linux - Security 1 06-20-2006 06:22 AM
Firewall Rules studpenguin Linux - Security 0 07-01-2004 03:14 AM
help with firewall rules please deuce868 Linux - Security 1 06-14-2004 03:18 PM
help building my firewall rules rhawi Linux - Security 19 05-16-2004 09:29 PM
Firewall rules question 65_289 Linux - Security 1 02-02-2003 07:21 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 02:07 AM.

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
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration