LinuxQuestions.org
Share your knowledge at the LQ Wiki.
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 08-31-2004, 02:32 PM   #1
budhead
LQ Newbie
 
Registered: Aug 2004
Posts: 6

Rep: Reputation: 0
The connection was refused when attempting to contact localhost:901


I am quite new to Linux, and just trying to do some simple things like get my Linux and windows boxes talking to each other.

I have installed Samba 3.0.6 on Red Hat 9 on a Intel P3 box. I installed RH without the boxed version of Samba, removed the components it installed anyway (samba-client and samba-common), and then downloaded the source code from Samba.org. I went through the Samba instructions step by step. I have gone through the steps to enable SWAT. I've confirmed swat 901/tcp appears in the services file, created /etc/xinetd.d/swat and confirmed disable=no, ran /bin/kill -HUP -a xinetd to make it reread the config file. I created /usr/local/samba/lib/smb.conf, and created the tmp directory. Finally, I ran smbpasswd for the root account to add the account into the encrypted password database. I set the security level to No firewall, and Lokkit is not on this system, so I don't think it's a firewall issue. I don't see anything in any of the iptables files that would seem to be an issue (suggestions are welcome re. iptables - I'm not that familiar). I've added swat: 127.0.0.1 to host.allow and swat: ALL to hosts.deny. That's about everything from the documentation and scouring the world wide web for a solution to the "The connection was refused when attempting to contact localhost:901" error I'm getting when trying to open localhost:901 with h_t_t_p:// (sorry, I can't post a URL here) (or 127.0.0.1:901) for the Samba configuration utility.

Any suggestions would be greatly appreciated.

Thank you.
 
Old 08-31-2004, 03:41 PM   #2
masand
LQ Guru
 
Registered: May 2003
Location: INDIA
Distribution: Ubuntu, Solaris,CentOS
Posts: 5,522

Rep: Reputation: 69
hi

maybe you can portscan this ip of urs to find out more,whether the port is really open and swat is listening on it

regards
 
Old 09-01-2004, 09:45 AM   #3
budhead
LQ Newbie
 
Registered: Aug 2004
Posts: 6

Original Poster
Rep: Reputation: 0
Thank you very much for taking the time to reply.

Being new to Linux, I hope I'm understanding you correctly. To get a portscan I ran nmap -v devicename . I've posted the result below. It appears port 901 is not open/available. So my next question is why might that be, and what might I do to make 901 available?

Thank you again for your time.

Starting nmap V. 3.00 ( www.insecure.org/nmap/ )
Host localhost.localdomain (127.0.0.1) appears to be up ... good.
Initiating SYN Stealth Scan against localhost.localdomain (127.0.0.1)
Adding open port 631/tcp
Adding open port 25/tcp
Adding open port 111/tcp
Adding open port 22/tcp
Adding open port 6000/tcp
The SYN Stealth Scan took 2 seconds to scan 1601 ports.
Interesting ports on localhost.localdomain (127.0.0.1):
(The 1596 ports scanned but not shown below are in state: closed)
Port State Service
22/tcp open ssh
25/tcp open smtp
111/tcp open sunrpc
631/tcp open ipp
6000/tcp open X11
Nmap run completed -- 1 IP address (1 host up) scanned in 2 seconds
 
Old 09-01-2004, 10:14 PM   #4
masand
LQ Guru
 
Registered: May 2003
Location: INDIA
Distribution: Ubuntu, Solaris,CentOS
Posts: 5,522

Rep: Reputation: 69
hi
since ur posrt is not open,either u have blocked it ot it is not running

so try after disabling all firewalls or

u need to lookout for

service swat status

if that is the name of ther service

and to start it

service swat start

regards
 
Old 09-02-2004, 07:52 AM   #5
budhead
LQ Newbie
 
Registered: Aug 2004
Posts: 6

Original Poster
Rep: Reputation: 0
Thank you for your reply.

The Security Level is set to No firewall. When I run Lokkit from the CLI, and set it to No firewall, click OK, and then go back into it it is set back to High. I've also tried going in to Customize and allowing port 901, but I really don't know what the true status of Lokkit is. Any suggestions with Lokkit? Are there any other security/firewall utilities that I should check??

The swat service is running.

Thank you again.
 
Old 09-02-2004, 08:05 AM   #6
masand
LQ Guru
 
Registered: May 2003
Location: INDIA
Distribution: Ubuntu, Solaris,CentOS
Posts: 5,522

Rep: Reputation: 69
hi
u need to restart iptables to get this into to effect right now

service iptables restart

or if this does not work out then

try stopping iptables

the name of the service is iptables(confirm this)

service iptables stop

also u can try is
#setup
go to firewall and disable it

regards
 
Old 09-05-2004, 04:11 PM   #7
XavierP
Moderator
 
Registered: Nov 2002
Location: Kent, England
Distribution: Debian Testing
Posts: 19,192
Blog Entries: 4

Rep: Reputation: 475Reputation: 475Reputation: 475Reputation: 475Reputation: 475
Moved: This thread is more suitable in Linux-Networking and has been moved accordingly to help your thread/question get the exposure it deserves.
 
  


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
connection was refused when attempting to contact localhost wolsue Linux - Networking 1 10-30-2005 01:36 AM
Connection to localhost refused?!? a_priebe47 Slackware 4 09-01-2004 09:05 PM
Connection was refused when trying to contact......... peman Linux - Networking 5 08-31-2004 10:28 AM
connection to localhost refused digitalgravy Linux - Networking 5 05-03-2004 04:27 PM
SAMBA & SWAT - Connection refused when attempting to connect Localhost:901 ScooterB Linux - Networking 3 12-24-2003 04:15 PM

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

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