<?xml version="1.0" encoding="iso-8859-1"?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
  "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
<link rel="home" title="HomePage" href="HomePage.html" />
<link rel="help" title="HowToUseWiki" href="HowToUseWiki.html" />
<link rel="copyright" title="GNU General Public License" href="http://www.gnu.org/copyleft/gpl.html#SEC1" />
<link rel="author" title="The PhpWiki Programming Team" href="http://phpwiki.org/ThePhpWikiProgrammingTeam" />
<meta http-equiv="Content-Style-Type" content="text/css" />
<meta http-equiv="Content-Language" content="en" />
<meta name="robots" content="noindex,nofollow" />
<meta name="language" content="en" />
<meta name="document-type" content="Public" />
<meta name="document-rating" content="General" />
<meta name="generator" content="PhpWiki" />
<meta name="PHPWIKI_VERSION" content="1.3.14" />

<link rel="stylesheet" type="text/css" charset="iso-8859-1" href="phpwiki-printer.css" />
<title>PhpWiki - Security FAQ</title>
</head>
<body>

<div id="header">
  
<!-- Page title -->
<h1>Security FAQ</h1>
</div>
<div id="content">



<div class="wikitext"><p class="tightenable top bottom"><a href="AdministrationFAQ.html" class="wiki">AdministrationFAQ</a> |
<a href="InstallationFAQ.html" class="wiki">InstallationFAQ</a> |
<b>SecurityFAQ</b> |
<a href="TroubleshootingFAQ.html" class="wiki">TroubleshootingFAQ</a> |
<a href="Tweaking%20FAQs.html" class="wiki">Tweaking FAQs</a>
<br /> <a name="top" id="top"></a></p>
<hr />
<p class="tightenable top"><i>back to</i> <a href="SME%20Server%20FAQs.html" class="wiki">SME Server FAQs</a></p>
<ul><li class="tightenable bottom"><a href="SecurityFAQ.html#bug" class="named-wiki" title="">I think I found a bug. What should I do?</a></li>
<li class="tightenable top bottom"><a href="SecurityFAQ.html#ssh1" class="named-wiki" title="">How to change ssh protocol version, login timeout and listening port</a></li>
<li class="tightenable top bottom"><a href="SecurityFAQ.html#firewall1" class="named-wiki" title="">How is SME secure? Is this a firewall?</a></li>
<li class="tightenable top bottom"><a href="SecurityFAQ.html#firewall2" class="named-wiki" title="">The &quot;Leak Test&quot; of www.grc.com indicated that SME's firewall was penetrated. What does this mean?</a></li>
<li class="tightenable top bottom"><a href="SecurityFAQ.html#firewall3" class="named-wiki" title="">How can I see all the network packets refused or filtered by SME's firewall?</a></li>
<li class="tightenable top bottom"><a href="SecurityFAQ.html#smtp" class="named-wiki" title="">&quot;Nessus&quot; detected several vulnerabilities on smtp port 25 . Should I be concerned?</a></li>
<li class="tightenable top bottom"><a href="SecurityFAQ.html#relaying1" class="named-wiki" title="">Can SME Server be used as a mail relay?</a></li>
<li class="tightenable top bottom"><a href="SecurityFAQ.html#relaying2" class="named-wiki" title="">Why SME fails relaying tests from some Web sites?</a></li>
<li class="tightenable top bottom"><a href="SecurityFAQ.html#viruses" class="named-wiki" title="">How about viruses? Does SME protect against viruses?</a></li>
<li class="tightenable top bottom"><a href="SecurityFAQ.html#rkunter" class="named-wiki" title="">rootkithunter complains about vulnarabilities, what goes?</a></li>
<li class="tightenable top"><a href="SecurityFAQ.html#strongpasswords" class="named-wiki" title="">How to enforce good choice passwords?</a></li>
</ul>
<hr />
<h4><a href="SecurityFAQ.html#top" class="named-wiki" title="">*</a> <a name="bug" id="bug">I think I found a bug. What should I do?</a></h4>
<p class="tightenable top bottom">First, if you feel your bug is a security issue, in SME Server or in the contribs.org website, please send an email to <a href="mailto:security@lists.contribs.org" target="" class="namedurl"><span style="white-space: nowrap"><img src="images/mailto.png" alt="" class="linkicon" border="0" />security@lists.contribs.org</span></a>. Otherwise, please check the Bug reporting and confirmation forum <a href="http://forums.contribs.org/viewforum.php?f=5" target="" class="namedurl"><span style="white-space: nowrap"><img src="images/http.png" alt="" class="linkicon" border="0" />here</span></a> to see if it has already been reported. If your bug is not listed yet, you might open a thread there, to gather any pertinent feedback. If it is accepted as an actual bug, someone will open an item in the <a href="http://bugs.contribs.org/" target="" class="namedurl"><span style="white-space: nowrap"><img src="images/http.png" alt="" class="linkicon" border="0" />Bug</span> Tracker</a> tool, or suggest that you do.
<br /> <br /></p>
<hr />
<h4><a href="SecurityFAQ.html#top" class="named-wiki" title="">*</a> <a name="ssh1" id="ssh1">How to change ssh protocol version, login timeout and listening port</a> <br /></h4>
<p class="tightenable top">SME standard protocol version is 1, login timeout 600 sec and ssh port is 22. If you are paranoid like me, you can change these values with a custom template to whatever suits your needs. In the sample the protocol is changed to 2, login timeout to 60 sec, port to 222. Check /etc/ssh/sshd_config and make a <b>backup</b> of it. Check if /etc/e-smith/templates-custom/etc/ssh/sshd_config is already existent. If yes, you can skip the first step. Issue following commands on the console: <br /> <br />
<tt>'1. mkdir -p /etc/e-smith/templates-custom/etc/ssh/sshd_config'</tt> <br />
<tt>'2. touch /etc/e-smith/templates-custom/etc/ssh/sshd_config/10Port'</tt> <br />
<tt>'3. touch /etc/e-smith/templates-custom/etc/ssh/sshd_config/16Protocol'</tt> <br />
<tt>'4. touch /etc/e-smith/templates-custom/etc/ssh/sshd_config/20LoginGraceTime'</tt> <br />
<tt>'5. echo &quot;Port 222&quot; &gt; /etc/e-smith/templates-custom/etc/ssh/sshd_config/10Port'</tt> <br />
<tt>'6. echo &quot;Protocol 2&quot; &gt; /etc/e-smith/templates-custom/etc/ssh/sshd_config/16Protocol'</tt> <br />
<tt>'7. echo &quot;<a href="LoginGraceTime.html" class="wiki">LoginGraceTime</a> 60&quot; &gt; /etc/e-smith/templates-custom/etc/ssh/sshd_config/20LoginGraceTime'</tt> <br />
<tt>'8. /sbin/e-smith/expand-template /etc/ssh/sshd_config'</tt> <br />
<tt>'9. /sbin/e-smith/signal-event remoteaccess-update'</tt> <br /></p>
<p class="tightenable bottom">Recheck /etc/ssh/sshd_config and compare with your backup, if the desired entries are there. Don't forget to adjust your ssh settings, if using Putty or WinSCP or whatever. <br /> <br />
<small>ldkeen</small></p>
<hr />
<h4><a href="SecurityFAQ.html#top" class="named-wiki" title="">*</a> <a name="firewall1" id="firewall1">Is SME secure? Is this a firewall?</a></h4>
<p class="tightenable top bottom">You're cheating, this is really two questions :-) <br /></p>
<ol><li class="tightenable top">- Yes. All nonessential network services have been removed, necessary network services have been replaced with more secure versions, and the system configured to allow access to these services only to hosts on the internal network. Regular user accounts, and server functions that use accounts, are restricted to only the minimum access required to perform. Only the administrator can configure the system, or have access to the shell. Remote acces to the server is denied by default.</li>
<li class="tightenable bottom">- Yes. Since version 4.1, SME Server, in Server and Gateway mode has contained a complete firewall system. All unsolicited external network traffic is denied, unless SME is specifically configured otherwise. In Private Server and Gateway mode, all unsolicited external traffic is ignored (i.e. the ports are stealthed), although SME can log this traffic if you wish. To an external port scan, it looks like there's nothing there.</li>
</ol>
<p class="tightenable top bottom"><br /> <br /></p>
<hr />
<h4><a href="SecurityFAQ.html#top" class="named-wiki" title="">*</a> <a name="firewall2" id="firewall2">The &quot;Leak Test&quot; of www.grc.com indicated that SME's firewall was penetrated. What does this mean?</a></h4>
<p class="tightenable top bottom">The grc.com test launches outgoing connection attempts through your server and posts a statement indicating whether or not it succeeded. The rules of firewalling defined by SME authorize all outgoing connections. The server is always well protected against the external world.</p>
<hr />
<h4><a href="SecurityFAQ.html#top" class="named-wiki" title="">*</a> <a name="firewall3" id="firewall3">How can I see all the network packets refused or filtered by SME's firewall?</a></h4>
<p class="tightenable top bottom">By default, there is no report on the refused packets. However, there are three levels of logging available for SME. To activate the level desired, enter the command:
<br /> <br />
<tt>'/sbin/e-smith/db configuration setprop masq Logging xxxx'</tt> <br />
where 'xxxx' is one of the following 3 strings - <br />
all - all the blocked packages are brought back <br />
most - all the blocked packages are brought back, excluded packages SMB and RIP <br />
none - (default option) no blocked package is brought back <br />
<br /> <br />
Then run the update: <br />
<tt>'/sbin/e-smith/signal-event remoteaccess-update'</tt> <br />
<br />
Now a log of blocked packets is visible in server-manager - View Log Files. Note that this log also receives entries from other processes.</p>
<hr />
<h4><a href="SecurityFAQ.html#top" class="named-wiki" title="">*</a> <a name="smtp" id="smtp">&quot;Nessus&quot; detected several vulnerabilities on smtp port 25 . Should I be concerned?</a></h4>
<p class="tightenable top bottom">We checked several vulnerabilities listed by Nessus in detail as soon as they were brought to our attention. We found that they were in fact false alarms.<br />
SME smtp server is protected from the exact buffer overflow attempts mentioned in the reports from Nessus. Moreover, smtp server runs under a user account without privileges, in a restricted environment which protects the system against compromising attempts.</p>
<hr />
<h4><a href="SecurityFAQ.html#top" class="named-wiki" title="">*</a> <a name="relaying1" id="relaying1">Can SME Server be used as a mail relay?</a></h4>
<p class="tightenable top bottom">Since e-smith 3.1, relaying attempts are blocked. Therefore, if you did not modify configuration, you will be able to send your messages from your LAN towards the whole world and to receive mails from anywhere, and bound to your local domains.</p>
<hr />
<h4><a href="SecurityFAQ.html#top" class="named-wiki" title="">*</a> <a name="relaying2" id="relaying2">Why does SME fail the mail relaying tests from some Web sites?</a></h4>
<p class="tightenable top bottom">Relaying tests carried out by Web sites only test email reception, not its emission. The SME message agent will seem to fail this kind of test, but will not retransmit the message. These failures are therefore false alarms. The messages either will be turned over to the shipper, or transmitted to the administrator, according to your configuration in the page &quot;Other email settings&quot; in the Server Manager.<br /> <br />
You can find more detail on mail relaying and the relaying tests at these sites:<br />
<a href="http://www.faqts.com/knowledge-base/view.phtml/aid/1198/fid/206/lang/en" target="" class="namedurl"><span style="white-space: nowrap"><img src="images/http.png" alt="" class="linkicon" border="0" />http://www.faqts.com/knowledge-base/view.phtml/aid/1198/fid/206/lang/en</span></a><br />
<a href="http://www.mail-abuse.net" target="" class="namedurl"><span style="white-space: nowrap"><img src="images/http.png" alt="" class="linkicon" border="0" />http://www.mail-abuse.net</span></a><br />
<a href="http://www.abuse.net/relay.html" target="" class="namedurl"><span style="white-space: nowrap"><img src="images/http.png" alt="" class="linkicon" border="0" />http://www.abuse.net/relay.html</span></a><br />
<br /> <br />
The relaying test of abuse.net carries out a complete test, by sending a message to your server to discover open mail relays. It is the only effective method to detect open relays.</p>
<hr />
<h4><a href="SecurityFAQ.html#top" class="named-wiki" title="">*</a> <a name="viruses" id="viruses">How about viruses? Does SME protect against viruses?</a></h4>
<p class="tightenable top bottom">Currently, no. However, there are several contributions that make it possible to protect your server, any files or documents stored in ibays, and/or any email sent or received by your server.</p>
<hr />
<h4><a href="SecurityFAQ.html#top" class="named-wiki" title="">*</a> <a name="rkunter" id="rkunter">rootkithunter complains about vulnarabilities, what goes?</a></h4>
<p class="tightenable"><i>RKHunter could be wrong. It very likely is wrong if it is depending just on version numbers to infer that software is vulnerable.</i> <br /></p>
<p class="tightenable"><i>It also searches for real evidence that a system has been compromised, looking for various telltale signs, such as known cracking tools, and hidden temporary directories.</i></p>
<p class="tightenable"><small>Charlie Brady</small></p>
<p class="tightenable"><i>rkhunter is such a load of #$&amp;%#$!! All it does is scan your system for packages and compares it to a list of version numbers. If it doesn't match the latest version then it says you are vulnerable.
What it shoul really be called is &quot;checkforlatestversion&quot;. That is all it really does.</i></p>
<p class="tightenable bottom"><small>Shad Lords</small></p>
<hr />
<h4><a href="SecurityFAQ.html#top" class="named-wiki" title="">*</a> <a name="strongpasswords" id="strongpasswords">How to enforce good choice passwords?</a></h4>
<p class="tightenable">Issue on console</p>
<blockquote class="mail-style-quote tightenable"><p class="tightenable bottom">/sbin/e-smith/config setprop passwordstrength User strong <br />
/sbin/e-smith/config setprop passwordstrength Ibays strong <br />
/sbin/e-smith/config setprop passwordstrength Admin strong <br /></p>
</blockquote>
<p class="tightenable bottom"><small>Charlie Brady</small></p>
</div>

<div id="footer">  <hr class="printer" noshade="noshade" />
<p class="editdate">Owner: &quot;RonM&quot;  Last edited on December 7, 2005 12:33 am by &quot;RonM&quot;</p>
</div>

</div>
<!-- Add your Disclaimer here -->
</body>
</html>
