<?xml version="1.0" encoding="UTF-8"?><rss xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:atom="http://www.w3.org/2005/Atom" version="2.0"><channel><title><![CDATA[Custom startup line for the ntopng package]]></title><description><![CDATA[<p dir="auto">Hello,<br />
I have seen a few requests which require some modification to the ntopng startup line. I would like to export to elasticsearch and need to add an additional config flag at startup. I was wondering if it would be possible to add a box in the package which allows the addition of custom lines (like the advanced config option in openvpn).</p>
<p dir="auto">My research seems to suggest this should be possible given this helpful post<br />
<a class="plugin-mentions-user plugin-mentions-a" href="/user/master007">@<bdi>master007</bdi></a>:</p>
<blockquote>
<p dir="auto">I wanted to check out the config file too… Didn't find ntopng.conf.<br />
The package uses a different method to configure that service in pfSense.</p>
<p dir="auto">Here is what I found:<br />
there is 2 files related to ntopng in<br />
/usr/local/pkg/ntopng.inc<br />
/usr/local/pkg/ntopng.xml</p>
<p dir="auto">This file :/usr/local/pkg/ntopng.inc seems to have all the logic for configurations included.<br />
and seems to start ntopng on the fly with config parameters based on the the xml config file / web page</p>
<p dir="auto">It starts something like this<br />
(after looking at ps -A)<br />
/usr/local/bin/ntopng -d /var/db/ntopng -G /var/run/ntopng.pid -s -e -w 0 -W 3000 -i em1 --dns-mode 0 --local-networks 192.168.0.0/16,172.16.0.0/12,10.0.0.0/8</p>
<p dir="auto">Perhaps that info helps you further...</p>
</blockquote>
<p dir="auto">in the .xml file it seems pretty straight forward to add a box that would show up in the ntopng settings page and take the custom line. That field then just needs to read and added to the startup line in /usr/local/etc/rc.d/ntopng.sh when it is auto generated by the service handler.</p>
<p dir="auto">Im a fair noob so that's about as far as I could get, any help would be appreciated, and it seems this would help a number of other people too. What is actually building the /usr/local/etc/rc.d/ntopng.sh file. I assume it is run everytime save is pushed?</p>
<p dir="auto">Cheers</p>
]]></description><link>https://forum.netgate.com/topic/130083/custom-startup-line-for-the-ntopng-package</link><generator>RSS for Node</generator><lastBuildDate>Fri, 10 Apr 2026 17:19:58 GMT</lastBuildDate><atom:link href="https://forum.netgate.com/topic/130083.rss" rel="self" type="application/rss+xml"/><pubDate>Tue, 24 Apr 2018 03:21:52 GMT</pubDate><ttl>60</ttl></channel></rss>