Follow Techotopia on Twitter

On-line Guides
All Guides
eBook Store
iOS / Android
Linux for Beginners
Office Productivity
Linux Installation
Linux Security
Linux Utilities
Linux Virtualization
Linux Kernel
System/Network Admin
Programming
Scripting Languages
Development Tools
Web Development
GUI Toolkits/Desktop
Databases
Mail Systems
openSolaris
Eclipse Documentation
Techotopia.com
Virtuatopia.com
Answertopia.com

How To Guides
Virtualization
General System Admin
Linux Security
Linux Filesystems
Web Servers
Graphics & Desktop
PC Hardware
Windows
Problem Solutions
Privacy Policy

  




 

 

Samba HowTo Guide
Prev Home Next

Securing SWAT through SSL

Many people have asked about how to set up SWAT with SSL to allow for secure remote administration of Samba. Here is a method that works, courtesy of Markus Krieger.

Modifications to the SWAT setup are as follows:

  1. Install OpenSSL.

  2. Generate certificate and private key.

    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
    
    
  3. Remove SWAT entry from [x]inetd.

  4. Start stunnel .

    root# 
    
    stunnel -p /etc/stunnel/stunnel.pem -d 901 \
    	 -l /usr/local/samba/bin/swat swat 
    
    

Afterward, simply connect to SWAT by using the URL https://myhost:901, accept the certificate, and the SSL connection is up.

Samba HowTo Guide
Prev Home Next

 
 
  Published under the terms fo the GNU General Public License Design by Interspire