<?xml version="1.0"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="en">
	<id>https://wiki.1701technology.com/index.php?action=history&amp;feed=atom&amp;title=OpenVPN_Keep_Alive_Script</id>
	<title>OpenVPN Keep Alive Script - Revision history</title>
	<link rel="self" type="application/atom+xml" href="https://wiki.1701technology.com/index.php?action=history&amp;feed=atom&amp;title=OpenVPN_Keep_Alive_Script"/>
	<link rel="alternate" type="text/html" href="https://wiki.1701technology.com/index.php?title=OpenVPN_Keep_Alive_Script&amp;action=history"/>
	<updated>2026-05-06T13:59:50Z</updated>
	<subtitle>Revision history for this page on the wiki</subtitle>
	<generator>MediaWiki 1.34.1</generator>
	<entry>
		<id>https://wiki.1701technology.com/index.php?title=OpenVPN_Keep_Alive_Script&amp;diff=78&amp;oldid=prev</id>
		<title>Michael.mast at 13:58, 23 May 2016</title>
		<link rel="alternate" type="text/html" href="https://wiki.1701technology.com/index.php?title=OpenVPN_Keep_Alive_Script&amp;diff=78&amp;oldid=prev"/>
		<updated>2016-05-23T13:58:52Z</updated>

		<summary type="html">&lt;p&gt;&lt;/p&gt;
&lt;table class=&quot;diff diff-contentalign-left&quot; data-mw=&quot;interface&quot;&gt;
				&lt;col class=&quot;diff-marker&quot; /&gt;
				&lt;col class=&quot;diff-content&quot; /&gt;
				&lt;col class=&quot;diff-marker&quot; /&gt;
				&lt;col class=&quot;diff-content&quot; /&gt;
				&lt;tr class=&quot;diff-title&quot; lang=&quot;en&quot;&gt;
				&lt;td colspan=&quot;2&quot; style=&quot;background-color: #fff; color: #222; text-align: center;&quot;&gt;← Older revision&lt;/td&gt;
				&lt;td colspan=&quot;2&quot; style=&quot;background-color: #fff; color: #222; text-align: center;&quot;&gt;Revision as of 13:58, 23 May 2016&lt;/td&gt;
				&lt;/tr&gt;&lt;tr&gt;&lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot; id=&quot;mw-diff-left-l1&quot; &gt;Line 1:&lt;/td&gt;
&lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot;&gt;Line 1:&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt;−&lt;/td&gt;&lt;td style=&quot;color: #222; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #ffe49c; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;&amp;lt;syntaxhighlight lang=&amp;quot;&lt;del class=&quot;diffchange diffchange-inline&quot;&gt;BASH&lt;/del&gt;&amp;quot;&amp;gt;                                                                           &lt;/div&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt;+&lt;/td&gt;&lt;td style=&quot;color: #222; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;&amp;lt;syntaxhighlight lang=&amp;quot;&lt;ins class=&quot;diffchange diffchange-inline&quot;&gt;bash&lt;/ins&gt;&amp;quot;&amp;gt;                                                                           &lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt; &lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #222; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;#!/bin/sh&lt;/div&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt; &lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #222; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;#!/bin/sh&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt; &lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #222; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt; &lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #222; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;/table&gt;</summary>
		<author><name>Michael.mast</name></author>
		
	</entry>
	<entry>
		<id>https://wiki.1701technology.com/index.php?title=OpenVPN_Keep_Alive_Script&amp;diff=77&amp;oldid=prev</id>
		<title>Michael.mast: Created page with &quot;&lt;syntaxhighlight lang=&quot;BASH&quot;&gt;                                                                           #!/bin/sh  #This script is designed to monitor access to the destinatio...&quot;</title>
		<link rel="alternate" type="text/html" href="https://wiki.1701technology.com/index.php?title=OpenVPN_Keep_Alive_Script&amp;diff=77&amp;oldid=prev"/>
		<updated>2016-05-23T13:53:56Z</updated>

		<summary type="html">&lt;p&gt;Created page with &amp;quot;&amp;lt;syntaxhighlight lang=&amp;quot;BASH&amp;quot;&amp;gt;                                                                           #!/bin/sh  #This script is designed to monitor access to the destinatio...&amp;quot;&lt;/p&gt;
&lt;p&gt;&lt;b&gt;New page&lt;/b&gt;&lt;/p&gt;&lt;div&gt;&amp;lt;syntaxhighlight lang=&amp;quot;BASH&amp;quot;&amp;gt;                                                                          &lt;br /&gt;
#!/bin/sh&lt;br /&gt;
&lt;br /&gt;
#This script is designed to monitor access to the destination LAN, and ensure a tunnel is always up if needed.&lt;br /&gt;
#Written by Michael (TurboAAA) Mast. Please improve on this!&lt;br /&gt;
&lt;br /&gt;
#1. Check if the tunnel is needed.&lt;br /&gt;
#2. If it is needed check if there is access to the vpn server.&lt;br /&gt;
#3. If there is access to the vpn server, clear any running instances and start a fresh instance.&lt;br /&gt;
ping -c 2 &amp;lt;LAN IP&amp;gt; &amp;amp;&amp;gt; /dev/null&lt;br /&gt;
A=$?&lt;br /&gt;
if [ $A = 0 ]; then&lt;br /&gt;
exit 0&lt;br /&gt;
elif [ $A = 1 ]; then&lt;br /&gt;
ping -c 2 &amp;lt;VPN PUBLIC IP&amp;gt; &amp;amp;&amp;gt; /dev/null&lt;br /&gt;
A=$?&lt;br /&gt;
if [ $A = 1 ]; then&lt;br /&gt;
exit 0&lt;br /&gt;
elif [ $A = 0 ]; then&lt;br /&gt;
killall openvpn&lt;br /&gt;
cd /root/&lt;br /&gt;
openvpn --config &amp;lt;OVPN CONFIG FILE&amp;gt;.ovpn --auth-user-pass /root/&amp;lt;VPN Credentials&amp;gt;&lt;br /&gt;
fi&lt;br /&gt;
fi&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;/div&gt;</summary>
		<author><name>Michael.mast</name></author>
		
	</entry>
</feed>