Fedora Linux Support Community & Resources Center
  #1  
Old 13th December 2004, 07:32 AM
DAssassin Offline
Registered User
 
Join Date: Dec 2004
Age: 26
Posts: 19
Swat / Ssl

I'll be referring to a section in the samba.org FAQ - http://us1.samba.org/samba/docs/man/...html#id2593137 (Securing SWAT through SSL)

I've setup SWAT to be enabled with SSL per the samba.org FAQ. Samba is setup, I have manually setup my own config. I configured OpenSSL, SWAT and stunnel to work correctly with FC3, in order to follow instructions in their FAQ. I have done the following (a few modifications on second command to fit my swat path):

Code:
root# /usr/bin/openssl req -new -x509 -days 365 -nodes -config \
	/usr/share/doc/packages/stunnel/stunnel.cnf \
	-out /etc/stunnel/stunnel.pem -keyout /etc/stunnel/stunnel.pem

root# stunnel /etc/stunnel/stunnel.conf -p /etc/stunnel/stunnel.pem -d 901 \
	 -l /usr/sbin/swat swat
Problem: When I try to access https://fcserver:901/ I get a Cannot find server error. fcserver is my hostname, I can access my webserver through http://fcserver/ just fine.

Now it says that I don't need to add information to my xinet.d configuration file, so I did not. SWAT is enabled, and I have also flipped on the services dc_client and dc_server to no avail, because they are related to SSL according to the description.

I am stumped.

Last edited by DAssassin; 14th December 2004 at 12:58 AM.
Reply With Quote
  #2  
Old 13th December 2004, 10:23 PM
Jman Offline
Registered User
 
Join Date: Mar 2004
Location: Minnesota, USA
Age: 27
Posts: 7,909
You did edit /etc/xinetd.d/swat and change disable to no, correct?

You also changed the only_from option to something other than 127.0.0.1?
Reply With Quote
  #3  
Old 14th December 2004, 12:57 AM
DAssassin Offline
Registered User
 
Join Date: Dec 2004
Age: 26
Posts: 19
disable = no

only_from, I have tested with both options *, and 192.168.0.3 (the computer I'm accessing from)

Still a Cannot Find Server
Reply With Quote
  #4  
Old 14th December 2004, 02:41 AM
DAssassin Offline
Registered User
 
Join Date: Dec 2004
Age: 26
Posts: 19
I should probably add that http://fcserver:901/ works fine, just not https://fcserver:901/

I've modified the following though:

Code:
only_from = 127.0.0.1 192.168.0

Last edited by DAssassin; 14th December 2004 at 02:50 AM.
Reply With Quote
  #5  
Old 15th December 2004, 12:22 AM
jeru Offline
Registered User
 
Join Date: May 2004
Location: Arizona
Posts: 119
Your configuration is wrong

should be only_from 127.0.0.1 192.168.0.0

that is of course if you truely do have it setup

nmap localhost

to see if 901 is open and going
Reply With Quote
  #6  
Old 15th December 2004, 03:35 AM
DAssassin Offline
Registered User
 
Join Date: Dec 2004
Age: 26
Posts: 19
901 is open, and I have changed the configuration with no difference.

Code:
service swat
{
        disable = no
        port            = 901
        socket_type     = stream
        wait            = no
        only_from       = 127.0.0.1 192.168.0.0
        user            = root
        server          = /usr/sbin/swat
        log_on_failure  += USERID
}
And again, http:// works for swat, just not https://, however ssl does work with standard Apache access.
Reply With Quote
Reply

Tags
ssl, swat

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

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 On
HTML code is Off

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
where is my SWAT? demuytree Servers & Networking 2 24th April 2008 05:02 AM
swat set up machielr Installation and Live Media 36 19th November 2007 04:21 PM
Yum and Swat trinimoses Using Fedora 2 14th May 2006 02:49 AM


Current GMT-time: 19:21 (Tuesday, 21-05-2013)

TopSubscribe to XML RSS for all Threads in all ForumsFedoraForumDotOrg Archive
logo

All trademarks, and forum posts in this site are property of their respective owner(s).
FedoraForum.org is privately owned and is not directly sponsored by the Fedora Project or Red Hat, Inc.

Privacy Policy | Term of Use | Posting Guidelines | Archive | Contact Us | Founding Members

Powered by vBulletin® Copyright ©2000 - 2012, vBulletin Solutions, Inc.

FedoraForum is Powered by RedHat