Latest LQ Deal: Complete CCNA, CCNP & Red Hat Certification Training Bundle
Go Back > Forums > Linux Forums > Linux - Newbie
User Name
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!


  Search this Thread
Old 07-26-2006, 10:38 AM   #1
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 (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
Registered: Jun 2005
Location: Chicago, IL, USA
Distribution: Fedora Core, CentOS
Posts: 188

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

Original Poster
Rep: Reputation: 0
Originally Posted by gizza23
Can you at least ping localhost?
#ping localhost
[root@Odin ~]# ping localhost
PING localhost ( 56(84) bytes of data.
64 bytes from Odin ( icmp_seq=0 ttl=64 time=0.594 ms
64 bytes from Odin ( icmp_seq=1 ttl=64 time=0.601 ms
64 bytes from Odin ( 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
Senior Member
Registered: Mar 2003
Location: Brisbane Queensland Australia
Distribution: Custom Debian Live ISO's
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

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


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 > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 03:42 AM.

Main Menu
Write for LQ is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration