http://wiki.dd-wrt.com/wiki/index.php?title=OpenVPN_Remote_Access_by_Static_Key_%28The_Simple_Way%29&action=history&feed=atom OpenVPN Remote Access by Static Key (The Simple Way) - Revision history 2024-03-29T10:07:30Z Revision history for this page on the wiki MediaWiki 1.10.1 http://wiki.dd-wrt.com/wiki/index.php?title=OpenVPN_Remote_Access_by_Static_Key_%28The_Simple_Way%29&diff=53894&oldid=prev Ian5142: Only OpenVPN category. 2018-03-18T12:39:32Z <p>Only OpenVPN category.</p> <table border='0' width='98%' cellpadding='0' cellspacing='4' style="background-color: white;"> <tr> <td colspan='2' width='50%' align='center' style="background-color: white;">←Older revision</td> <td colspan='2' width='50%' align='center' style="background-color: white;">Revision as of 12:39, 18 March 2018</td> </tr> <tr><td colspan="2" align="left"><strong>Line 71:</strong></td> <td colspan="2" align="left"><strong>Line 71:</strong></td></tr> <tr><td> </td><td style="background: #eee; font-size: smaller;">== Troubleshooting ==</td><td> </td><td style="background: #eee; font-size: smaller;">== Troubleshooting ==</td></tr> <tr><td> </td><td style="background: #eee; font-size: smaller;"></td><td> </td><td style="background: #eee; font-size: smaller;"></td></tr> <tr><td>-</td><td style="background: #ffa; font-size: smaller;">[[Category:<del style="color: red; font-weight: bold; text-decoration: none;">Tunneling</del>]]</td><td>+</td><td style="background: #cfc; font-size: smaller;">[[Category:<ins style="color: red; font-weight: bold; text-decoration: none;">OpenVPN</ins>]]</td></tr> </table> Ian5142 http://wiki.dd-wrt.com/wiki/index.php?title=OpenVPN_Remote_Access_by_Static_Key_%28The_Simple_Way%29&diff=53881&oldid=prev Ian5142: Removed VPN Category. 2018-03-18T12:24:21Z <p>Removed VPN Category.</p> <table border='0' width='98%' cellpadding='0' cellspacing='4' style="background-color: white;"> <tr> <td colspan='2' width='50%' align='center' style="background-color: white;">←Older revision</td> <td colspan='2' width='50%' align='center' style="background-color: white;">Revision as of 12:24, 18 March 2018</td> </tr> <tr><td colspan="2" align="left"><strong>Line 72:</strong></td> <td colspan="2" align="left"><strong>Line 72:</strong></td></tr> <tr><td> </td><td style="background: #eee; font-size: smaller;"></td><td> </td><td style="background: #eee; font-size: smaller;"></td></tr> <tr><td> </td><td style="background: #eee; font-size: smaller;">[[Category:Tunneling]]</td><td> </td><td style="background: #eee; font-size: smaller;">[[Category:Tunneling]]</td></tr> <tr><td>-</td><td style="background: #ffa; font-size: smaller;">[[Category:VPN]]</td><td colspan="2">&nbsp;</td></tr> </table> Ian5142 http://wiki.dd-wrt.com/wiki/index.php?title=OpenVPN_Remote_Access_by_Static_Key_%28The_Simple_Way%29&diff=53874&oldid=prev Ian5142: Added Categories. 2018-03-18T03:44:36Z <p>Added Categories.</p> <table border='0' width='98%' cellpadding='0' cellspacing='4' style="background-color: white;"> <tr> <td colspan='2' width='50%' align='center' style="background-color: white;">←Older revision</td> <td colspan='2' width='50%' align='center' style="background-color: white;">Revision as of 03:44, 18 March 2018</td> </tr> <tr><td colspan="2" align="left"><strong>Line 72:</strong></td> <td colspan="2" align="left"><strong>Line 72:</strong></td></tr> <tr><td> </td><td style="background: #eee; font-size: smaller;"></td><td> </td><td style="background: #eee; font-size: smaller;"></td></tr> <tr><td> </td><td style="background: #eee; font-size: smaller;">[[Category:Tunneling]]</td><td> </td><td style="background: #eee; font-size: smaller;">[[Category:Tunneling]]</td></tr> <tr><td colspan="2">&nbsp;</td><td>+</td><td style="background: #cfc; font-size: smaller;">[[Category:VPN]]</td></tr> </table> Ian5142 http://wiki.dd-wrt.com/wiki/index.php?title=OpenVPN_Remote_Access_by_Static_Key_%28The_Simple_Way%29&diff=46911&oldid=prev Glenn: + Category:Tunneling 2014-05-31T09:30:39Z <p>+ <a href="/wiki/index.php/Category:Tunneling" title="Category:Tunneling">Category:Tunneling</a></p> <table border='0' width='98%' cellpadding='0' cellspacing='4' style="background-color: white;"> <tr> <td colspan='2' width='50%' align='center' style="background-color: white;">←Older revision</td> <td colspan='2' width='50%' align='center' style="background-color: white;">Revision as of 09:30, 31 May 2014</td> </tr> <tr><td colspan="2" align="left"><strong>Line 70:</strong></td> <td colspan="2" align="left"><strong>Line 70:</strong></td></tr> <tr><td> </td><td style="background: #eee; font-size: smaller;"></td><td> </td><td style="background: #eee; font-size: smaller;"></td></tr> <tr><td> </td><td style="background: #eee; font-size: smaller;">== Troubleshooting ==</td><td> </td><td style="background: #eee; font-size: smaller;">== Troubleshooting ==</td></tr> <tr><td colspan="2">&nbsp;</td><td>+</td><td style="background: #cfc; font-size: smaller;"></td></tr> <tr><td colspan="2">&nbsp;</td><td>+</td><td style="background: #cfc; font-size: smaller;">[[Category:Tunneling]]</td></tr> </table> Glenn http://wiki.dd-wrt.com/wiki/index.php?title=OpenVPN_Remote_Access_by_Static_Key_%28The_Simple_Way%29&diff=45995&oldid=prev JNavas: /* OpenVPN Server Commands */ improve 2014-01-09T02:05:41Z <p><span class="autocomment">OpenVPN Server Commands -</span> improve</p> <table border='0' width='98%' cellpadding='0' cellspacing='4' style="background-color: white;"> <tr> <td colspan='2' width='50%' align='center' style="background-color: white;">←Older revision</td> <td colspan='2' width='50%' align='center' style="background-color: white;">Revision as of 02:05, 9 January 2014</td> </tr> <tr><td colspan="2" align="left"><strong>Line 31:</strong></td> <td colspan="2" align="left"><strong>Line 31:</strong></td></tr> <tr><td> </td><td style="background: #eee; font-size: smaller;">== OpenVPN Server Commands ==</td><td> </td><td style="background: #eee; font-size: smaller;">== OpenVPN Server Commands ==</td></tr> <tr><td> </td><td style="background: #eee; font-size: smaller;"></td><td> </td><td style="background: #eee; font-size: smaller;"></td></tr> <tr><td>-</td><td style="background: #ffa; font-size: smaller;"> cat &lt;&lt;EOF &gt;/tmp/openvpn.<del style="color: red; font-weight: bold; text-decoration: none;">opvn</del></td><td>+</td><td style="background: #cfc; font-size: smaller;"> cat &lt;&lt;EOF &gt;/tmp/openvpn.<ins style="color: red; font-weight: bold; text-decoration: none;">$$.tmp</ins></td></tr> <tr><td> </td><td style="background: #eee; font-size: smaller;"> dev tun</td><td> </td><td style="background: #eee; font-size: smaller;"> dev tun</td></tr> <tr><td> </td><td style="background: #eee; font-size: smaller;"> ifconfig 192.168.112.1 192.168.112.2</td><td> </td><td style="background: #eee; font-size: smaller;"> ifconfig 192.168.112.1 192.168.112.2</td></tr> <tr><td colspan="2" align="left"><strong>Line 46:</strong></td> <td colspan="2" align="left"><strong>Line 46:</strong></td></tr> <tr><td> </td><td style="background: #eee; font-size: smaller;"> &lt;/secret&gt;</td><td> </td><td style="background: #eee; font-size: smaller;"> &lt;/secret&gt;</td></tr> <tr><td> </td><td style="background: #eee; font-size: smaller;"> EOF</td><td> </td><td style="background: #eee; font-size: smaller;"> EOF</td></tr> <tr><td>-</td><td style="background: #ffa; font-size: smaller;"> openvpn /tmp/openvpn.<del style="color: red; font-weight: bold; text-decoration: none;">opvn</del></td><td>+</td><td style="background: #cfc; font-size: smaller;"> openvpn /tmp/openvpn.<ins style="color: red; font-weight: bold; text-decoration: none;">$$.tmp</ins></td></tr> <tr><td> </td><td style="background: #eee; font-size: smaller;"></td><td> </td><td style="background: #eee; font-size: smaller;"></td></tr> <tr><td> </td><td style="background: #eee; font-size: smaller;">== Firewall Commands ==</td><td> </td><td style="background: #eee; font-size: smaller;">== Firewall Commands ==</td></tr> </table> JNavas http://wiki.dd-wrt.com/wiki/index.php?title=OpenVPN_Remote_Access_by_Static_Key_%28The_Simple_Way%29&diff=45994&oldid=prev JNavas: /* OpenVPN Server Commands */ improve 2014-01-09T01:55:48Z <p><span class="autocomment">OpenVPN Server Commands -</span> improve</p> <table border='0' width='98%' cellpadding='0' cellspacing='4' style="background-color: white;"> <tr> <td colspan='2' width='50%' align='center' style="background-color: white;">←Older revision</td> <td colspan='2' width='50%' align='center' style="background-color: white;">Revision as of 01:55, 9 January 2014</td> </tr> <tr><td colspan="2" align="left"><strong>Line 39:</strong></td> <td colspan="2" align="left"><strong>Line 39:</strong></td></tr> <tr><td> </td><td style="background: #eee; font-size: smaller;"> persist-tun</td><td> </td><td style="background: #eee; font-size: smaller;"> persist-tun</td></tr> <tr><td> </td><td style="background: #eee; font-size: smaller;"> persist-key</td><td> </td><td style="background: #eee; font-size: smaller;"> persist-key</td></tr> <tr><td>-</td><td style="background: #ffa; font-size: smaller;"> <del style="color: red; font-weight: bold; text-decoration: none;">secret /tmp/openvpn.key</del></td><td>+</td><td style="background: #cfc; font-size: smaller;"> <ins style="color: red; font-weight: bold; text-decoration: none;">daemon</ins></td></tr> <tr><td>-</td><td style="background: #ffa; font-size: smaller;"> <del style="color: red; font-weight: bold; text-decoration: none;">EOF</del></td><td>+</td><td style="background: #cfc; font-size: smaller;"> &lt;<ins style="color: red; font-weight: bold; text-decoration: none;">secret</ins>&gt;</td></tr> <tr><td>-</td><td style="background: #ffa; font-size: smaller;"><del style="color: red; font-weight: bold; text-decoration: none;"> cat </del>&lt;<del style="color: red; font-weight: bold; text-decoration: none;">&lt;EOF </del>&gt;<del style="color: red; font-weight: bold; text-decoration: none;">/tmp/openvpn.key</del></td><td>+</td><td style="background: #cfc; font-size: smaller;"></td></tr> <tr><td> </td><td style="background: #eee; font-size: smaller;"> -----BEGIN OpenVPN Static key V1-----</td><td> </td><td style="background: #eee; font-size: smaller;"> -----BEGIN OpenVPN Static key V1-----</td></tr> <tr><td> </td><td style="background: #eee; font-size: smaller;"> ...</td><td> </td><td style="background: #eee; font-size: smaller;"> ...</td></tr> <tr><td> </td><td style="background: #eee; font-size: smaller;"> -----END OpenVPN Static key V1-----</td><td> </td><td style="background: #eee; font-size: smaller;"> -----END OpenVPN Static key V1-----</td></tr> <tr><td colspan="2">&nbsp;</td><td>+</td><td style="background: #cfc; font-size: smaller;"> &lt;/secret&gt;</td></tr> <tr><td> </td><td style="background: #eee; font-size: smaller;"> EOF</td><td> </td><td style="background: #eee; font-size: smaller;"> EOF</td></tr> <tr><td> </td><td style="background: #eee; font-size: smaller;"> openvpn /tmp/openvpn.opvn</td><td> </td><td style="background: #eee; font-size: smaller;"> openvpn /tmp/openvpn.opvn</td></tr> </table> JNavas http://wiki.dd-wrt.com/wiki/index.php?title=OpenVPN_Remote_Access_by_Static_Key_%28The_Simple_Way%29&diff=45961&oldid=prev JNavas: create 2014-01-05T19:46:33Z <p>create</p> <p><b>New page</b></p><div>'''WORK-IN-PROGRESS DRAFT ***** WORK-IN-PROGRESS DRAFT ***** WORK-IN-PROGRESS DRAFT'''<br /> <br /> This is a simple VPN recipe for remote access to a private LAN behind a wireless router running DD-WRT.<br /> <br /> == Introduction ==<br /> <br /> OpenVPN has much to recommend it, but setup can be complicated and tricky, and much of the available documentation isn't terribly helpful to non-experts.<br /> <br /> Static Key<br /> <br /> Tunnel<br /> <br /> == IP Addressing ==<br /> <br /> To avoid IP address conflicts:<br /> * the private LAN IP subnet<br /> * the VPN subnet<br /> * the remote LAN subnet<br /> must all be different from each other.<br /> <br /> The problem in this context is that you probably won't have control over the remote LAN subnet, so you must choose subnets for the private LAN and the VPN that are unlikely to conflict. This example uses:<br /> * 192.168.111.0 for the private LAN<br /> * 192.168.112.0 for the VPN<br /> <br /> == OpenVPN in DD-WRT ==<br /> <br /> == Static IP or Dynamic DNS ==<br /> <br /> == Generating the Static Key ==<br /> <br /> == OpenVPN Server Commands ==<br /> <br /> cat &lt;&lt;EOF &gt;/tmp/openvpn.opvn<br /> dev tun<br /> ifconfig 192.168.112.1 192.168.112.2<br /> comp-lzo<br /> keepalive 10 60<br /> ping-timer-rem<br /> persist-tun<br /> persist-key<br /> secret /tmp/openvpn.key<br /> EOF<br /> cat &lt;&lt;EOF &gt;/tmp/openvpn.key<br /> -----BEGIN OpenVPN Static key V1-----<br /> ...<br /> -----END OpenVPN Static key V1-----<br /> EOF<br /> openvpn /tmp/openvpn.opvn<br /> <br /> == Firewall Commands ==<br /> <br /> iptables -I INPUT -p udp --dport 1194 -j ACCEPT<br /> iptables -I INPUT -i tun+ -j ACCEPT<br /> iptables -I FORWARD -i tun+ -j ACCEPT<br /> <br /> == OpenVPN Client Configuration ==<br /> <br /> remote ''nnn.nnn.nnn.nnn''<br /> dev tun<br /> ifconfig 192.168.112.2 192.168.112.1<br /> route 192.168.111.0 255.255.255.0<br /> secret ''secret.key''<br /> comp-lzo<br /> keepalive 10 60<br /> ping-timer-rem<br /> persist-tun<br /> persist-key<br /> <br /> == Connecting ==<br /> <br /> == Troubleshooting ==</div> JNavas