<?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[Why No Status?]]></title><description><![CDATA[<p dir="auto">This was a really easy modification, and something we can really use. Why isn't something like this already in PFSense?</p>
<pre><code>
$pgtitle = "Diagnostics: OpenVPN status";
require("guiconfig.inc");

function dump_ovpnstat($logfile) {
	$count=0;
	$header=true;
	$fh=@fopen($logfile,'r');
	if(!$fh)
		echo "status file not found
required custom option:
status $logfile";
	else {
		while(!feof($fh)) {
			$line=trim(fgets($fh,1024));
			$data = explode(",", $line);
			if(count($data)==5) {
				echo "\n";
				$class="lr";
				foreach($data as $val) {
					if($header)
						echo "" . htmlspecialchars($val) . "\n";
					else {
						$count++;
						echo "" . htmlspecialchars($val) . "\n";
					}
					$class="r";
				}
				echo "\n";
				$header=false;
			}
		}
		fclose($fh);
		if($count==0)
			echo "no connections";
	}
}

function mod_time($logfile) {
	$ret=false;
	$fh=@fopen($logfile,'r');
	if(!$fh)
		return false;
	fgets($fh,1024);
	$line=fgets($fh,1024);
	$data=explode(",",$line,2);
	if(count($data)&gt;1 &amp;&amp; $data[0]=='Updated')
		$ret=$data[1];
	fclose($fh);
	return $ret;
}

include("head.inc");

?&gt;

$logfile='/var/log/openvpn-status.log';
$mtime=mod_time($logfile);
if($mtime)
	print '

updated '.htmlspecialchars($mtime).'

';
?&gt;

</code></pre>
]]></description><link>https://forum.netgate.com/topic/19498/why-no-status</link><generator>RSS for Node</generator><lastBuildDate>Tue, 21 Apr 2026 11:04:47 GMT</lastBuildDate><atom:link href="https://forum.netgate.com/topic/19498.rss" rel="self" type="application/rss+xml"/><pubDate>Wed, 25 Nov 2009 19:49:09 GMT</pubDate><ttl>60</ttl><item><title><![CDATA[Reply to Why No Status? on Sun, 24 Jan 2010 07:02:05 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="/user/jimp">@<bdi>jimp</bdi></a>:</p>
<blockquote>
<p dir="auto">I just uploaded a package to add the OpenVPN status page from 2.0 to 1.2.3. Details here:<br />
http://forum.pfsense.org/index.php/topic,22301.msg114826.html#msg114826</p>
</blockquote>
<p dir="auto">oh thank you SO much….this is exactly what i needed!</p>
]]></description><link>https://forum.netgate.com/post/220592</link><guid isPermaLink="true">https://forum.netgate.com/post/220592</guid><dc:creator><![CDATA[pirateghost]]></dc:creator><pubDate>Sun, 24 Jan 2010 07:02:05 GMT</pubDate></item><item><title><![CDATA[Reply to Why No Status? on Sun, 24 Jan 2010 00:54:47 GMT]]></title><description><![CDATA[<p dir="auto">I just uploaded a package to add the OpenVPN status page from 2.0 to 1.2.3. Details here:<br />
http://forum.pfsense.org/index.php/topic,22301.msg114826.html#msg114826</p>
]]></description><link>https://forum.netgate.com/post/220576</link><guid isPermaLink="true">https://forum.netgate.com/post/220576</guid><dc:creator><![CDATA[jimp]]></dc:creator><pubDate>Sun, 24 Jan 2010 00:54:47 GMT</pubDate></item><item><title><![CDATA[Reply to Why No Status? on Wed, 06 Jan 2010 01:10:31 GMT]]></title><description><![CDATA[<p dir="auto">awesome.  i cant wait for it to become stable release.  i tried the beta for a few days, but i was having some intermittent issues with it</p>
]]></description><link>https://forum.netgate.com/post/218605</link><guid isPermaLink="true">https://forum.netgate.com/post/218605</guid><dc:creator><![CDATA[pirateghost]]></dc:creator><pubDate>Wed, 06 Jan 2010 01:10:31 GMT</pubDate></item><item><title><![CDATA[Reply to Why No Status? on Wed, 06 Jan 2010 00:54:26 GMT]]></title><description><![CDATA[<p dir="auto">This is already done in the 2.0 openvpn client status.</p>
<p dir="auto"><img src="/public/_imported_attachments_/1/ovpnstatus-2.0.png" alt="ovpnstatus-2.0.png" class=" img-fluid img-markdown" /><br />
<img src="/public/_imported_attachments_/1/ovpnstatus-2.0.png_thumb" alt="ovpnstatus-2.0.png_thumb" class=" img-fluid img-markdown" /></p>
]]></description><link>https://forum.netgate.com/post/218604</link><guid isPermaLink="true">https://forum.netgate.com/post/218604</guid><dc:creator><![CDATA[jimp]]></dc:creator><pubDate>Wed, 06 Jan 2010 00:54:26 GMT</pubDate></item><item><title><![CDATA[Reply to Why No Status? on Tue, 05 Jan 2010 23:34:44 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="/user/suprsurfr">@<bdi>Suprsurfr</bdi></a>:</p>
<blockquote>
<p dir="auto">Is there any way you could add the private IP addresses assigned to the client in the webgui?</p>
</blockquote>
<p dir="auto">this is my biggest complaint.  i cant see the ip addresses that are assigned to each client.  and sometimes they change after rebooting a client</p>
]]></description><link>https://forum.netgate.com/post/218591</link><guid isPermaLink="true">https://forum.netgate.com/post/218591</guid><dc:creator><![CDATA[pirateghost]]></dc:creator><pubDate>Tue, 05 Jan 2010 23:34:44 GMT</pubDate></item><item><title><![CDATA[Reply to Why No Status? on Tue, 05 Jan 2010 21:25:33 GMT]]></title><description><![CDATA[<p dir="auto">Is there any way you could add the private IP addresses assigned to the client in the webgui?</p>
<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="/user/cdenley">@<bdi>cdenley</bdi></a>:</p>
<blockquote>
<p dir="auto">This was a really easy modification, and something we can really use. Why isn't something like this already in PFSense?</p>
<pre><code>
$pgtitle = "Diagnostics: OpenVPN status";
require("guiconfig.inc");

function dump_ovpnstat($logfile) {
	$count=0;
	$header=true;
	$fh=@fopen($logfile,'r');
	if(!$fh)
		echo "status file not found
required custom option:
status $logfile";
	else {
		while(!feof($fh)) {
			$line=trim(fgets($fh,1024));
			$data = explode(",", $line);
			if(count($data)==5) {
				echo "\n";
				$class="lr";
				foreach($data as $val) {
					if($header)
						echo "" . htmlspecialchars($val) . "\n";
					else {
						$count++;
						echo "" . htmlspecialchars($val) . "\n";
					}
					$class="r";
				}
				echo "\n";
				$header=false;
			}
		}
		fclose($fh);
		if($count==0)
			echo "no connections";
	}
}

function mod_time($logfile) {
	$ret=false;
	$fh=@fopen($logfile,'r');
	if(!$fh)
		return false;
	fgets($fh,1024);
	$line=fgets($fh,1024);
	$data=explode(",",$line,2);
	if(count($data)&gt;1 &amp;&amp; $data[0]=='Updated')
		$ret=$data[1];
	fclose($fh);
	return $ret;
}

include("head.inc");

?&gt;

$logfile='/var/log/openvpn-status.log';
$mtime=mod_time($logfile);
if($mtime)
	print '

updated '.htmlspecialchars($mtime).'

';
?&gt;

</code></pre>
</blockquote>
]]></description><link>https://forum.netgate.com/post/218579</link><guid isPermaLink="true">https://forum.netgate.com/post/218579</guid><dc:creator><![CDATA[Suprsurfr]]></dc:creator><pubDate>Tue, 05 Jan 2010 21:25:33 GMT</pubDate></item><item><title><![CDATA[Reply to Why No Status? on Fri, 11 Dec 2009 15:43:04 GMT]]></title><description><![CDATA[<p dir="auto">There is an OpenVPN status in 2.0 that works much better.</p>
<p dir="auto">The Dashboard widget doesn't work as well as I'd hoped, and I'm not sure that it ever really will on 1.2.x.</p>
<p dir="auto">As for why such a thing hasn't been added to 1.2.x, it's probably considered too much of a "feature". Most of the changes in 1.2.3 were bug fixes, features that made their way in as a part of other bug fixes, or bits that were needed by commercial support customers.</p>
<p dir="auto">I can try to work some of this OpenVPN status code into an add-on package though.</p>
]]></description><link>https://forum.netgate.com/post/215816</link><guid isPermaLink="true">https://forum.netgate.com/post/215816</guid><dc:creator><![CDATA[jimp]]></dc:creator><pubDate>Fri, 11 Dec 2009 15:43:04 GMT</pubDate></item><item><title><![CDATA[Reply to Why No Status? on Thu, 10 Dec 2009 18:44:18 GMT]]></title><description><![CDATA[<p dir="auto">My script shows the status of the OpenVPN <strong>server</strong>. It's not going to display anything from your status file, because there is no client list.</p>
<pre><code>
# cat /var/log/openvpn-status.log
OpenVPN CLIENT LIST
Updated,Thu Dec 10 12:42:18 2009
Common Name,Real Address,Bytes Received,Bytes Sent,Connected Since
ROUTING TABLE
Virtual Address,Common Name,Real Address,Last Ref
GLOBAL STATS
Max bcast/mcast queue length,0
END

</code></pre>
]]></description><link>https://forum.netgate.com/post/215731</link><guid isPermaLink="true">https://forum.netgate.com/post/215731</guid><dc:creator><![CDATA[cdenley]]></dc:creator><pubDate>Thu, 10 Dec 2009 18:44:18 GMT</pubDate></item><item><title><![CDATA[Reply to Why No Status? on Thu, 10 Dec 2009 18:36:39 GMT]]></title><description><![CDATA[<p dir="auto">The reason I would like to use this script is becuase i am getting this on the status page.</p>
<p dir="auto"><img src="http://i125.photobucket.com/albums/p47/gp1001/vpnstatus.jpg" alt="" class=" img-fluid img-markdown" /></p>
<p dir="auto">The servers are all up I can ping hosts on the other side but they are all reporting down except for the first one.</p>
]]></description><link>https://forum.netgate.com/post/215730</link><guid isPermaLink="true">https://forum.netgate.com/post/215730</guid><dc:creator><![CDATA[Suprsurfr]]></dc:creator><pubDate>Thu, 10 Dec 2009 18:36:39 GMT</pubDate></item><item><title><![CDATA[Reply to Why No Status? on Thu, 10 Dec 2009 18:21:04 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="/user/cdenley">@<bdi>cdenley</bdi></a>:</p>
<blockquote>
<p dir="auto">Yep. You have no connections to list. I just updated my code in the first post so it displays "no connections" in that case.</p>
<p dir="auto">Actually, my file doesn't look like that. Are you running an OpenVPN server or client?</p>
</blockquote>
<p dir="auto">I am running the openvpn site to site.</p>
]]></description><link>https://forum.netgate.com/post/215727</link><guid isPermaLink="true">https://forum.netgate.com/post/215727</guid><dc:creator><![CDATA[Suprsurfr]]></dc:creator><pubDate>Thu, 10 Dec 2009 18:21:04 GMT</pubDate></item><item><title><![CDATA[Reply to Why No Status? on Thu, 10 Dec 2009 18:26:23 GMT]]></title><description><![CDATA[<p dir="auto">Thanks!</p>
<p dir="auto">I dont think its running every minute.  I refreshed the page and it still shows the same time…<br />
Did I add the status option to the correct location?</p>
<p dir="auto"><img src="http://i125.photobucket.com/albums/p47/gp1001/openvpn.jpg" alt="" class=" img-fluid img-markdown" /></p>
<p dir="auto"><img src="http://i125.photobucket.com/albums/p47/gp1001/pfsense.jpg" alt="" class=" img-fluid img-markdown" /></p>
]]></description><link>https://forum.netgate.com/post/215726</link><guid isPermaLink="true">https://forum.netgate.com/post/215726</guid><dc:creator><![CDATA[Suprsurfr]]></dc:creator><pubDate>Thu, 10 Dec 2009 18:26:23 GMT</pubDate></item><item><title><![CDATA[Reply to Why No Status? on Thu, 10 Dec 2009 18:14:12 GMT]]></title><description><![CDATA[<p dir="auto">Yep. You have no connections to list. I just updated my code in the first post so it displays "no connections" in that case.</p>
<p dir="auto">Actually, my file doesn't look like that. Are you running an OpenVPN server or client?</p>
]]></description><link>https://forum.netgate.com/post/215724</link><guid isPermaLink="true">https://forum.netgate.com/post/215724</guid><dc:creator><![CDATA[cdenley]]></dc:creator><pubDate>Thu, 10 Dec 2009 18:14:12 GMT</pubDate></item><item><title><![CDATA[Reply to Why No Status? on Thu, 10 Dec 2009 18:09:44 GMT]]></title><description><![CDATA[<p dir="auto">I get this:</p>
<h1><a class="anchor-offset" name="cat-var-log-openvpn-status.log"></a>cat /var/log/openvpn-status.log</h1>
<p dir="auto">OpenVPN STATISTICS<br />
Updated,Thu Dec 10 12:51:34 2009<br />
TUN/TAP read bytes,260<br />
TUN/TAP write bytes,260<br />
TCP/UDP read bytes,5860<br />
TCP/UDP write bytes,9100<br />
Auth read bytes,1700<br />
pre-compress bytes,0<br />
post-compress bytes,0<br />
pre-decompress bytes,0<br />
post-decompress bytes,0<br />
END</p>
]]></description><link>https://forum.netgate.com/post/215723</link><guid isPermaLink="true">https://forum.netgate.com/post/215723</guid><dc:creator><![CDATA[Suprsurfr]]></dc:creator><pubDate>Thu, 10 Dec 2009 18:09:44 GMT</pubDate></item><item><title><![CDATA[Reply to Why No Status? on Thu, 10 Dec 2009 17:55:43 GMT]]></title><description><![CDATA[<p dir="auto">Is someone connected to your OpenVPN server? It lists current connections, and /var/log/openvpn-status.log is updated once a minute, so it may not show up for up to 60 seconds.</p>
<pre><code>
cat /var/log/openvpn-status.log

</code></pre>
]]></description><link>https://forum.netgate.com/post/215718</link><guid isPermaLink="true">https://forum.netgate.com/post/215718</guid><dc:creator><![CDATA[cdenley]]></dc:creator><pubDate>Thu, 10 Dec 2009 17:55:43 GMT</pubDate></item><item><title><![CDATA[Reply to Why No Status? on Thu, 10 Dec 2009 17:38:41 GMT]]></title><description><![CDATA[<p dir="auto">I would like to use this but have no idea where to implement it…<br />
I copied the contents and placed it in the /usr/local/www/vpn_status.php</p>
<p dir="auto">added: status /var/log/openvpn-status.log to Custom options in the vpn setup window.</p>
<p dir="auto">but all i get is:</p>
<p dir="auto">Diagnostics: OpenVPN status</p>
<p dir="auto">updated 12/10/2009 12:35:30 pm</p>
]]></description><link>https://forum.netgate.com/post/215717</link><guid isPermaLink="true">https://forum.netgate.com/post/215717</guid><dc:creator><![CDATA[Suprsurfr]]></dc:creator><pubDate>Thu, 10 Dec 2009 17:38:41 GMT</pubDate></item></channel></rss>