Linux - Networking This forum is for any issue related to networks or networking.
Routing, network cards, OSI, etc. Anything is fair game. |
Notices |
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
Are you new to LinuxQuestions.org? Visit the following links:
Site Howto |
Site FAQ |
Sitemap |
Register Now
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
|
|
06-01-2001, 10:21 AM
|
#1
|
LQ Newbie
Registered: Jun 2001
Location: Austin, TX
Distribution: None for now
Posts: 16
Rep:
|
We've got a linux box here at work acting as a firewall/dhcp server. I'm trying to set up samba, but I'm having trouble running swat. The linux box does not have a monitor hooked up to it, so I'm accessing it remotely via telnet on a Win98 machine.
I've commented out the disable = yes option in /etc/xinetd.d/swat. I've tried a couple of different options for the only_from = option.
I tried the using 192.168.1.1 which is eth1 (the internal nic) and w.x.y.z which is eth0 (the external nic, static ip), but it doesn't work when I try accessing swat from my Win98 machine's browser. I've even disabled ipchains momentarily to verify it wasn't being filtered out.
Any thoughts on running swat remotely? It wouldn't do me a lot of good to hook up a monitor since I don't have a browser installed on the linux box anyway.
Right now I've just been editing smb.conf manually, but I'd like know how to access it via swat to get the full experience.
Thanks!
|
|
|
06-01-2001, 01:47 PM
|
#2
|
Senior Member
Registered: May 2001
Location: Left Coast - Canada
Distribution: s l a c k w a r e
Posts: 2,731
Rep:
|
You are using port 901 for the connection, right?
http://192.168.1.1:901
Is swat directive in (and uncommented) in /etc/inetd.conf?
swat stream tcp nowait.400 root /usr/sbin/swat swat
Check your firewall logs?
|
|
|
06-01-2001, 02:18 PM
|
#3
|
LQ Newbie
Registered: Jun 2001
Location: Austin, TX
Distribution: None for now
Posts: 16
Original Poster
Rep:
|
I'm using port 901.
I don't have /etc/inetd.conf
That file is not anywhere on the system.
Can you explain what inetd.conf is used for as I'm quite new to Linux.
FYI...the samba server does work with my manual editing of smb.conf. I can see my home directory from Neighborhood Network and I have mounted an smb file share from one of the windows machines on the network.
I'll have to check the firewall logs.
Thanks
|
|
|
06-01-2001, 02:33 PM
|
#4
|
Senior Member
Registered: May 2001
Location: Left Coast - Canada
Distribution: s l a c k w a r e
Posts: 2,731
Rep:
|
inetd 'listens' to ports on your box and can spawn the required processes. I think that SWAT needs this to be installed and I don't know of a workaround. SWAT through ssl is a good idea too but it's on my get around to it list.
In short - install inetd and add the SWAT guts to it. Disable everthing else you don't need. (telnet/rlogin).
|
|
|
06-01-2001, 06:55 PM
|
#5
|
LQ Newbie
Registered: Jun 2001
Location: Austin, TX
Distribution: None for now
Posts: 16
Original Poster
Rep:
|
i finally got inetd installed and updated the rpms for samba and apache.
i included the info into inetd.conf
still no good.
inetd was not even on my redhat 7.0 installation cd's. i had to get it from redhat's 6.2 updates. do you know if redhat replaced inetd with some other server?
thanks, brian
|
|
|
06-01-2001, 08:56 PM
|
#6
|
Member
Registered: May 2001
Distribution: RedHat 9.1
Posts: 131
Rep:
|
It's not on the 7.x cd cause they call it xinetd now..
And I never got SWAT running either.. not that I tried very long as I quickly found another way to set it up remotely using my browser.. (actually the dOOds running our Linux servers at work use this app)
http://www.webmin.com/webmin/
That ownz!!!!! took me 5 min to install and get that working..
Try it out.. I'm pretty sure you won't be disappointed
yes.. I know I said it before, but I really like using it...LOL
|
|
|
06-01-2001, 10:41 PM
|
#7
|
Member
Registered: May 2001
Location: Toronto, Canada
Distribution: Slackware
Posts: 67
Rep:
|
I've been fighting the same problem, and I have now gone with webmin. good call Q25
|
|
|
06-02-2001, 02:29 PM
|
#8
|
Member
Registered: Apr 2001
Location: Chicago
Distribution: Gentoo 1.4
Posts: 214
Rep:
|
Make sure inetd is actually running before you try and use SWAT. If you want it to run at boot, you will need to edit the apporopirate rc.d directory. Also check your /etc/services file to make sure the SWAT line is uncommented.
|
|
|
06-03-2001, 11:28 PM
|
#9
|
LQ Newbie
Registered: Jun 2001
Location: Austin, TX
Distribution: None for now
Posts: 16
Original Poster
Rep:
|
I'll probably give webmin a shot.
Another question...I'm so new at this!
I uninstalled inetd since I've got xinetd. I checked the settings again, and I haven't succeeded.
I've tried to stop xinetd and restart it with the new settings, but I'm not sure I did it correctly.
I did something like... xinetd -SIGUSR1
I also tried... xinetd -SIGUSR2
I may have done... kill -HUP <pid>
I looked up the <pid> using cat or less
It seems like one of these should have worked.
I also blanked out the only_from = w.x.y.z line in the xinetd/swat file.
Any further thoughts? If not thanks for all your comments. I've learned some new things...that's good at least.
|
|
|
06-04-2001, 10:33 AM
|
#10
|
LQ Newbie
Registered: Jun 2001
Location: Austin, TX
Distribution: None for now
Posts: 16
Original Poster
Rep:
|
Well, it works now.
I was working on it this weekend from a remote site, and it wouldn't let me have access. This morning at work, I got on without any problems. The only_from = should be set to localhost only if you're going to run it from that machine, other wise you should add ip addresses for your lan.
I guess I must have restarted xinetd correctly?
I don't know, don't care...it works.
Thanks for your comments.
|
|
|
All times are GMT -5. The time now is 11:45 AM.
|
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.
|
Latest Threads
LQ News
|
|