<?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[OpenVPN not reliable, use VPNCHECK]]></title><description><![CDATA[<p dir="auto">I have two sites with 24h DAIP. After hours of troubleshooting, it was horrible for me to find out that openVPN doesn’t work properly.<br />
So I have build this simple loop to check the connection and perform a reconnect if it necessary.</p>
<pre><code>#!/bin/sh
clear

vcheck ()
{
echo "vcheck"
PTEST=`ping -c 1 -t 1 192.168.0.254 | grep "100% packet loss" | awk '{print $1;}'`
HPID=`cat /var/run/openvpn_client0.pid`

if [ "X${PTEST}" != "X" ] ; then

        echo ""
        echo "No connection to Heinsberg!"
        echo ""
        kill $HPID
        sleep 5
        openvpn --config /var/etc/openvpn_client0.conf
   else
        echo ""
        echo "Connected to Heinsberg!"
        echo ""
fi
vwait
}

vwait ()
{
echo "vwait"
sleep 30
vcheck
}

</code></pre>
<p dir="auto">How can I start that loop automatically, after reboot and established pppoe session?</p>
]]></description><link>https://forum.netgate.com/topic/2946/openvpn-not-reliable-use-vpncheck</link><generator>RSS for Node</generator><lastBuildDate>Sun, 19 Jul 2026 19:13:18 GMT</lastBuildDate><atom:link href="https://forum.netgate.com/topic/2946.rss" rel="self" type="application/rss+xml"/><pubDate>Mon, 25 Dec 2006 17:29:00 GMT</pubDate><ttl>60</ttl><item><title><![CDATA[Reply to OpenVPN not reliable, use VPNCHECK on Tue, 26 Dec 2006 22:22:47 GMT]]></title><description><![CDATA[<p dir="auto">Look in the package area.  There is a rc.d thread that is a sticky.</p>
]]></description><link>https://forum.netgate.com/post/146435</link><guid isPermaLink="true">https://forum.netgate.com/post/146435</guid><dc:creator><![CDATA[sullrich]]></dc:creator><pubDate>Tue, 26 Dec 2006 22:22:47 GMT</pubDate></item><item><title><![CDATA[Reply to OpenVPN not reliable, use VPNCHECK on Tue, 26 Dec 2006 12:17:43 GMT]]></title><description><![CDATA[<p dir="auto">You can start custom stuff on boot/filterreload by using hidden config.xml options: http://faq.pfsense.com/index.php?action=artikel&amp;cat=10&amp;id=38&amp;artlang=en&amp;highlight=hidden</p>
]]></description><link>https://forum.netgate.com/post/146419</link><guid isPermaLink="true">https://forum.netgate.com/post/146419</guid><dc:creator><![CDATA[hoba]]></dc:creator><pubDate>Tue, 26 Dec 2006 12:17:43 GMT</pubDate></item><item><title><![CDATA[Reply to OpenVPN not reliable, use VPNCHECK on Tue, 26 Dec 2006 12:04:14 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="/user/sullrich">@<bdi>sullrich</bdi></a>:</p>
<blockquote>
<p dir="auto">Try the latest snapshot.</p>
</blockquote>
<p dir="auto">That will start my loop?  :D<br />
Ok in the latest snapshot are some improvements, I will give it a try. But how can I start my Script on boot?  ::) It should be starded as a daemon…  :'(</p>
]]></description><link>https://forum.netgate.com/post/146418</link><guid isPermaLink="true">https://forum.netgate.com/post/146418</guid><dc:creator><![CDATA[s0nic]]></dc:creator><pubDate>Tue, 26 Dec 2006 12:04:14 GMT</pubDate></item><item><title><![CDATA[Reply to OpenVPN not reliable, use VPNCHECK on Mon, 25 Dec 2006 18:03:24 GMT]]></title><description><![CDATA[<p dir="auto">Try the latest snapshot.</p>
]]></description><link>https://forum.netgate.com/post/146390</link><guid isPermaLink="true">https://forum.netgate.com/post/146390</guid><dc:creator><![CDATA[sullrich]]></dc:creator><pubDate>Mon, 25 Dec 2006 18:03:24 GMT</pubDate></item></channel></rss>