LinuxQuestions.org
Help answer threads with 0 replies.
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 11-16-2003, 05:02 PM   #1
mudbone357
LQ Newbie
 
Registered: Oct 2003
Distribution: RedHat
Posts: 13

Rep: Reputation: 0
Question




Last edited by mudbone357; 11-16-2003 at 05:30 PM.
 
Old 11-18-2003, 03:35 AM   #2
Sammy2ooo
Member
 
Registered: Jan 2003
Location: nearby switzerland
Distribution: Suse 8.0 / Suse 9.0 / Slackware 9.1 / Debian Sarge testing / Gentoo 1.4.10
Posts: 165

Rep: Reputation: 30
what says iptables -L ???
 
Old 11-18-2003, 02:16 PM   #3
mudbone357
LQ Newbie
 
Registered: Oct 2003
Distribution: RedHat
Posts: 13

Original Poster
Rep: Reputation: 0
thanks for the reply,
here's the output:

]# /sbin/iptables -L
Chain INPUT (policy ACCEPT)
target prot opt source destination

Chain FORWARD (policy ACCEPT)
target prot opt source destination

Chain OUTPUT (policy ACCEPT)
target prot opt source destination

i think this shows that the firewall is totally disabled, at least, it should. Thanks.
 
Old 11-19-2003, 05:08 AM   #4
Sammy2ooo
Member
 
Registered: Jan 2003
Location: nearby switzerland
Distribution: Suse 8.0 / Suse 9.0 / Slackware 9.1 / Debian Sarge testing / Gentoo 1.4.10
Posts: 165

Rep: Reputation: 30
and whats about

nmap -n -p 901 ip ???

btw: see http://www.cs.ualberta.ca/doc/Softwa...lp/swat.8.html

Greets sam
 
Old 11-19-2003, 07:23 AM   #5
michaelk
Moderator
 
Registered: Aug 2002
Posts: 25,702

Rep: Reputation: 5895Reputation: 5895Reputation: 5895Reputation: 5895Reputation: 5895Reputation: 5895Reputation: 5895Reputation: 5895Reputation: 5895Reputation: 5895Reputation: 5895
Is swat running?
 
Old 11-19-2003, 08:25 AM   #6
Frustin
Member
 
Registered: May 2002
Location: Essex, UK
Distribution: Debian, Redhat, AIX 5L
Posts: 512

Rep: Reputation: 30
in fact is samba running?
 
Old 11-19-2003, 01:49 PM   #7
mudbone357
LQ Newbie
 
Registered: Oct 2003
Distribution: RedHat
Posts: 13

Original Poster
Rep: Reputation: 0
hi guys,
thanks for all the responses. The smbd and nmbd daemons are running, and i have access to the samba server from another machine on the network, it's just that port 901 seems to be blocked, even though i have the firewall disabled, so i can't access swat. I ran: ]# nmap -n -p 901 192.168.0.3 127.0.0.1, as Sammy2000 suggested, and this was the output:

Starting nmap V. 3.00 ( www.insecure.org/nmap/ )
The 1 scanned port on (192.168.0.3) is: closed

The 1 scanned port on (127.0.0.1) is: closed

Nmap run completed -- 2 IP addresses (2 hosts up) scanned in 0 seconds.

Now, this is the point where i really look like a newbie... It appears that this port is closed, but i don't know why, if the firewall is disabled, because i added the neccessary config file in xinetd.d... Thanks for all the help so far, and any more nudges in the right direction would be greatly appreciated. Take care.
 
Old 11-19-2003, 07:23 PM   #8
michaelk
Moderator
 
Registered: Aug 2002
Posts: 25,702

Rep: Reputation: 5895Reputation: 5895Reputation: 5895Reputation: 5895Reputation: 5895Reputation: 5895Reputation: 5895Reputation: 5895Reputation: 5895Reputation: 5895Reputation: 5895
Swat is a webserver independent of smbd and nmbd. Is the service running and are you trying to access it from the local PC or over the network? Check the config file in xinetd.d again. Does it say something like:
only_from = localhost
That means you can only access swat from the PC its running on.
 
Old 11-19-2003, 11:12 PM   #9
mudbone357
LQ Newbie
 
Registered: Oct 2003
Distribution: RedHat
Posts: 13

Original Poster
Rep: Reputation: 0
hi again,
i'm trying to access it from the local PC, and my swat file in xinetd.d has the only_from = localhost entry. I thought that swat was a seperate process that was invoked from the web browser and then writes to the smb.conf file. If this is correct, is there any other way of invoking it?
 
Old 11-20-2003, 06:37 PM   #10
michaelk
Moderator
 
Registered: Aug 2002
Posts: 25,702

Rep: Reputation: 5895Reputation: 5895Reputation: 5895Reputation: 5895Reputation: 5895Reputation: 5895Reputation: 5895Reputation: 5895Reputation: 5895Reputation: 5895Reputation: 5895
I have it running myself but find it just as easy to edit the samba.conf file by hand.

Is it configured per: http://us3.samba.org/samba/docs/using_samba/ch02.html
Have you restarted xinetd to start swat?

Are you using http://localhost:901 to access swat?
 
Old 11-20-2003, 07:37 PM   #11
mudbone357
LQ Newbie
 
Registered: Oct 2003
Distribution: RedHat
Posts: 13

Original Poster
Rep: Reputation: 0
yeah, i actually have my smb.conf configured and running pretty well, it's just that not being able to figure out why i can't get swat running is driving me crazy! I restarted xinetd, and i'm using http://localhost:901, but nothing works. I have no idea what else to try. I have the o'reilly book that link goes to, and i can't find anything in there. Any other thoughts about what could be stopping me?
 
Old 11-20-2003, 08:14 PM   #12
michaelk
Moderator
 
Registered: Aug 2002
Posts: 25,702

Rep: Reputation: 5895Reputation: 5895Reputation: 5895Reputation: 5895Reputation: 5895Reputation: 5895Reputation: 5895Reputation: 5895Reputation: 5895Reputation: 5895Reputation: 5895
Check the syslog for any errors with xinetd and swat.
 
Old 11-20-2003, 08:57 PM   #13
mudbone357
LQ Newbie
 
Registered: Oct 2003
Distribution: RedHat
Posts: 13

Original Poster
Rep: Reputation: 0
first, thanks so much for your help and your patience, i really appreciate it.

So, I ran "/bin/kill -HUP -a xinetd", and then checked the syslog, and this was the output:

Nov 20 18:43:16 localhost xinetd[1218]: Starting reconfiguration
Nov 20 18:43:16 localhost xinetd[1218]: service/protocol combination not in /etc/services: swat./tcp
Nov 20 18:43:16 localhost xinetd[1218]: readjusting service printer
Nov 20 18:43:16 localhost xinetd[1218]: readjusting service sgi_fam
Nov 20 18:43:16 localhost xinetd[1218]: Sending signal 9 to sgi_fam server 1546
Nov 20 18:43:17 localhost xinetd[1218]: Reconfigured: new=0 old=2 dropped=0 (services)

I have to admit here that i am out of my depth, and can only guess that the "service/protocol combination not in /etc/services: swat./tcp" line may be relative to the problem. If this makes any sense to you i would really appreciate your further thoughts. Thanks again.
 
Old 11-20-2003, 09:05 PM   #14
michaelk
Moderator
 
Registered: Aug 2002
Posts: 25,702

Rep: Reputation: 5895Reputation: 5895Reputation: 5895Reputation: 5895Reputation: 5895Reputation: 5895Reputation: 5895Reputation: 5895Reputation: 5895Reputation: 5895Reputation: 5895
Check your /etc/services file, and if it does not contain the following line, add it to the end of the file:

swat 901/tcp
 
Old 11-20-2003, 09:18 PM   #15
mudbone357
LQ Newbie
 
Registered: Oct 2003
Distribution: RedHat
Posts: 13

Original Poster
Rep: Reputation: 0
yeah, it already has it...

does it matter where it is in the file? I had it under local service, but then i moved it inbetween:

rsync 873/udp # rsync
swat 901/tcp #swat web configuration tool
telnets 992/tcp

however this hasn't appeared to have done anything, so i may have answered my own question.
 
  


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
Socket Connection Failed: 111 Connection Refused degraffenried13 Linux - General 3 05-31-2009 01:17 AM
Swat fails on connection AniAko Linux - Networking 2 10-09-2004 03:19 PM
swat localhost connection mightyer2 Linux - Networking 7 08-15-2004 05:26 PM
SAMBA & SWAT - Connection refused when attempting to connect Localhost:901 ScooterB Linux - Networking 3 12-24-2003 04:15 PM
Swat connection refused mudbone357 Linux - Software 2 11-16-2003 05:28 PM

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

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