<?xml version="1.0"?>
<rss xmlns:dc="http://purl.org/dc/elements/1.1/" version="2.0">
  <channel>
    <title>Transition Technology: Ticket #845: Unneeded FTP server on PuffinServer</title>
    <link>http://localhost:8080/trac/ticket/845</link>
    <description>&lt;p&gt;
The BOA stack installs and runs a FTP server, which we don't need as we use SSH/SFTP and it therefore causes a unneeded load, see &lt;a class="new ticket" href="http://localhost:8080/trac/ticket/692#comment:177" title="maintenance: Debian Updates (new)"&gt;ticket:692#comment:177&lt;/a&gt; for an example.
&lt;/p&gt;
</description>
    <language>en-us</language>
    <image>
      <title>Transition Technology</title>
      <url>/trac/chrome/site/TransitionNetwork-Logo-Web-Small.jpg</url>
      <link>http://localhost:8080/trac/ticket/845</link>
    </image>
    <generator>Trac 0.12.5</generator>
    <item>
      
        <dc:creator>chris</dc:creator>

      <pubDate>Mon, 13 Apr 2015 11:10:36 GMT</pubDate>
      <title>hours, totalhours changed</title>
      <link>http://localhost:8080/trac/ticket/845#comment:1</link>
      <guid isPermaLink="false">http://localhost:8080/trac/ticket/845#comment:1</guid>
      <description>
          &lt;ul&gt;
            &lt;li&gt;&lt;strong&gt;hours&lt;/strong&gt;
                changed from &lt;em&gt;0.0&lt;/em&gt; to &lt;em&gt;0.25&lt;/em&gt;
            &lt;/li&gt;
            &lt;li&gt;&lt;strong&gt;totalhours&lt;/strong&gt;
                changed from &lt;em&gt;0.0&lt;/em&gt; to &lt;em&gt;0.25&lt;/em&gt;
            &lt;/li&gt;
          &lt;/ul&gt;
        &lt;p&gt;
There is a firewall rule to allow FTP traffic:
&lt;/p&gt;
&lt;pre class="wiki"&gt;iptables -L | grep ftp
target     prot opt source               destination
ACCEPT     tcp  --  anywhere             anywhere             ctstate NEW tcp dpt:ftp-data
ACCEPT     tcp  --  anywhere             anywhere             ctstate NEW tcp dpt:ftp
&lt;/pre&gt;&lt;p&gt;
For now I have blocked this:
&lt;/p&gt;
&lt;pre class="wiki"&gt;iptables -A INPUT -p tcp --destination-port ftp -j DROP
iptables -A INPUT -p tcp --destination-port ftp-data -j DROP
&lt;/pre&gt;&lt;p&gt;
I can't a simple way to stop this service running, the config for for it is at &lt;tt&gt;/usr/local/etc/pure-ftpd.conf&lt;/tt&gt; and it uses PAM and this is configured via &lt;tt&gt;/etc/pam.d/pure-ftpd&lt;/tt&gt;.
&lt;/p&gt;
&lt;p&gt;
The &lt;tt&gt;iptables&lt;/tt&gt; rules haven't changed the load it is adding however:
&lt;/p&gt;
&lt;pre class="wiki"&gt;  PID USER      PR  NI  VIRT  RES  SHR S  %CPU %MEM    TIME+  COMMAND
18019 root      20   0 28904  444   52 R    27  0.0   0:00.83 pure-ftpd
&lt;/pre&gt;&lt;p&gt;
This might have to be followed up via a ticket with the BOA project -- it seems like a total waste of resources to be running a service we don't use.
&lt;/p&gt;
      </description>
      <category>Ticket</category>
    </item><item>
      
        <dc:creator>chris</dc:creator>

      <pubDate>Mon, 13 Apr 2015 11:37:35 GMT</pubDate>
      <title>hours, totalhours changed</title>
      <link>http://localhost:8080/trac/ticket/845#comment:2</link>
      <guid isPermaLink="false">http://localhost:8080/trac/ticket/845#comment:2</guid>
      <description>
          &lt;ul&gt;
            &lt;li&gt;&lt;strong&gt;hours&lt;/strong&gt;
                changed from &lt;em&gt;0.0&lt;/em&gt; to &lt;em&gt;0.25&lt;/em&gt;
            &lt;/li&gt;
            &lt;li&gt;&lt;strong&gt;totalhours&lt;/strong&gt;
                changed from &lt;em&gt;0.25&lt;/em&gt; to &lt;em&gt;0.5&lt;/em&gt;
            &lt;/li&gt;
          &lt;/ul&gt;
        &lt;p&gt;
There is &lt;a class="ext-link" href="https://github.com/omega8cc/boa/issues/173"&gt;&lt;span class="icon"&gt;​&lt;/span&gt;a ticket from 2011&lt;/a&gt; which says the way to stop it running is to comment out this line:
&lt;/p&gt;
&lt;pre class="wiki"&gt;  if ($COMMAND =~ /pure-ftpd/) {$ftplives = "YES"; $ftpsumar = $li_cnt{$COMMAND};}
&lt;/pre&gt;&lt;p&gt;
In &lt;tt&gt;/var/xdrago/proc_num_ctrl.cgi&lt;/tt&gt;, so I have done that, all done &lt;tt&gt;killall pure-ftpd&lt;/tt&gt; but it is still running:
&lt;/p&gt;
&lt;pre class="wiki"&gt;  PID USER      PR  NI  VIRT  RES  SHR S  %CPU %MEM    TIME+  COMMAND
 3017 root      20   0 28904  444   52 R    29  0.0   0:00.88 pure-ftpd
&lt;/pre&gt;&lt;p&gt;
So I have &lt;a class="ext-link" href="https://github.com/omega8cc/boa/issues/684"&gt;&lt;span class="icon"&gt;​&lt;/span&gt;opened a ticket about it&lt;/a&gt;.
&lt;/p&gt;
      </description>
      <category>Ticket</category>
    </item><item>
      
        <dc:creator>chris</dc:creator>

      <pubDate>Wed, 15 Apr 2015 14:26:28 GMT</pubDate>
      <title>hours, status, totalhours changed; resolution set</title>
      <link>http://localhost:8080/trac/ticket/845#comment:3</link>
      <guid isPermaLink="false">http://localhost:8080/trac/ticket/845#comment:3</guid>
      <description>
          &lt;ul&gt;
            &lt;li&gt;&lt;strong&gt;hours&lt;/strong&gt;
                changed from &lt;em&gt;0.0&lt;/em&gt; to &lt;em&gt;0.25&lt;/em&gt;
            &lt;/li&gt;
            &lt;li&gt;&lt;strong&gt;status&lt;/strong&gt;
                changed from &lt;em&gt;new&lt;/em&gt; to &lt;em&gt;closed&lt;/em&gt;
            &lt;/li&gt;
            &lt;li&gt;&lt;strong&gt;resolution&lt;/strong&gt;
                set to &lt;em&gt;fixed&lt;/em&gt;
            &lt;/li&gt;
            &lt;li&gt;&lt;strong&gt;totalhours&lt;/strong&gt;
                changed from &lt;em&gt;0.5&lt;/em&gt; to &lt;em&gt;0.75&lt;/em&gt;
            &lt;/li&gt;
          &lt;/ul&gt;
        &lt;p&gt;
The &lt;a class="ext-link" href="https://github.com/omega8cc/boa/issues/684#issuecomment-93418427"&gt;&lt;span class="icon"&gt;​&lt;/span&gt;answer to the ticket&lt;/a&gt;:
&lt;/p&gt;
&lt;blockquote class="citation"&gt;
&lt;ol&gt;&lt;li&gt;rm -f /usr/local/sbin/pure-config.pl
&lt;/li&gt;&lt;li&gt;killall -9 pure-ftpd
&lt;/li&gt;&lt;li&gt;remove FTP from _XTRAS_LIST
&lt;/li&gt;&lt;/ol&gt;&lt;/blockquote&gt;
&lt;p&gt;
So I have done 1. and 2., the &lt;tt&gt;_XTRAS_LIST&lt;/tt&gt; variable in &lt;tt&gt;/root/.barracuda.cnf&lt;/tt&gt; didn't contain FTP:
&lt;/p&gt;
&lt;pre class="wiki"&gt;_XTRAS_LIST="PDS CSF CHV"
&lt;/pre&gt;&lt;p&gt;
I have updated the wiki page, see &lt;a class="wiki" href="http://localhost:8080/trac/wiki/PuffinServer#pure-ftpd"&gt;wiki:PuffinServer#pure-ftpd&lt;/a&gt; and this matter is now resolved so closing this ticket.
&lt;/p&gt;
      </description>
      <category>Ticket</category>
    </item>
 </channel>
</rss>