Difference between revisions of "OpenVPN Tomato"

From BTGuard Wiki
Jump to: navigation, search
(Created page with "<div class="wrapper"> <div class="wrapleftnocenter"> <div class="left"> <div class="errorx"> <p> ''' PLEASE READ THROUGH THIS WHOLE ARTICLE!''' <br/> You risk br...")
 
 
(4 intermediate revisions by the same user not shown)
Line 1: Line 1:
 
<div class="wrapper">
 
<div class="wrapper">
  <div class="wrapleftnocenter">    
+
  <div class="wrapleft">    
 
   <div class="left">
 
   <div class="left">
  <div class="errorx">
+
<span class="plainlinks">[https://wiki.btguard.com/images/openvpn_tomato_1.png https://wiki.btguard.com/images/openvpn_tomato_1.png]</span>  
    <p>
+
   </div>
''' PLEASE READ THROUGH THIS WHOLE ARTICLE!''' <br/>
+
  </div>  
You risk breaking your router when using a custom firmware! <br/>
+
Proceed carefully and make sure your router is compatible!
+
    </p>
+
  </div>
+
  <div style="float:left;border:#cedff2 1px solid;background-color:#f4f7fa;padding:5px 10px;margin:15px 0px 15px">
+
<h3 style="color:#6D8DAF; border-bottom:1px solid #6D8DAF"> INFORMATION & REQUIREMENTS  </h3>
+
These instructions are ONLY for users who already have a dd-wrt compatible router flashed with the latest version of the firmware. If you haven't flashed your router, please check the links on the right. Make sure your router is supported and read through the dd-wrt instructions to flash your device.<br/>
+
<br/>
+
Router used for this tutorial: D-Link DIR-825 rev. B2 was used,Firmware: DD-WRT v24-sp2 (05/27/13) std build 21676.<br/>
+
<br/>
+
If you're having issues with OpenVPN, please try the [[OpenVPN_dd-wrt|OpenVPN method]].<br/>
+
<br/>
+
<u>'''Check List'''</u> <br/>
+
*Check both '''Model''' and '''Revision''' of your router to get the correct firmware.
+
*Router must be configured to connect to the internet. (connected to modem through WAN port)
+
*Firewall on modem must be off.
+
*Time & Date & Time Zone on the router must be set correctly. (Setup > Basic Setup > Time Settings)
+
  </div>
+
   </div>
+
  </div>
+
 
+
 
  <div class="right">
 
  <div class="right">
   <div style="padding-left:5px;border-left:black 1px solid">
+
   <p>
  <p>
+
== Setup Instructions ==
== Links for dd-wrt ==
+
1. Connect to http://192.168.1.1/<br/>
*[http://www.dd-wrt.com/ Main Website]
+
2. Click on '''VPN Tunneling''' > '''OpenVPN Client''' > '''Client 1''' > '''Basic'''.<br/>
*[http://www.dd-wrt.com/wiki/index.php/Firmware_FAQ FAQ]
+
3. Fill in the following:<br/>
*[http://www.dd-wrt.com/phpBB2/ Forum]
+
*[http://www.dd-wrt.com/wiki/index.php/Supported_Devices Full list of Supported Devices]
+
*[http://www.dd-wrt.com/site/support/router-database Router Database (Searchable)]
+
*[http://www.dd-wrt.com/wiki/index.php/Installation Install Instructions: dd-wrt Firmware]
+
 
<br/>
 
<br/>
  </p>
+
Checkmark '''Start with WAN'''<br/>
   </div>
+
Interface Type: '''TUN'''<br/>
 +
Protocol: '''UDP''' (''switch to TCP if UDP doesn't work'')<br/>
 +
Server Address: '''vpn.btguard.com''', Port: '''1194'''<br/>
 +
Firewall: '''Automatic'''<br/>
 +
Authorization Mode: '''TLS'''<br/>
 +
Checkmark '''Username/Password Authentication'''<br/>
 +
Username:<br/>
 +
Password:<br/>
 +
''Both username and password are case sensitive. Make sure not to add/forget Capital Letters.'' <br/>
 +
Leave '''Username Authen. Only''' unchecked.<br/>
 +
Extra HMAC authorization (tls-auth): '''Disabled'''<br/>
 +
Checkmark '''Create NAT on tunnel'''<br/>
 +
<br/>
 +
4. Hit '''Save'''<br/>
 +
   </p>
 
  </div>
 
  </div>
 
</div>
 
</div>
  
  
<div class="wrapper">
 
<div class="wrapleftnocenter">  
 
  <div class="left">
 
  
  
 +
 +
 +
<div class="wrapper">
 +
<div class="wrapleft">  
 +
  <div class="left">
 +
<span class="plainlinks">[https://wiki.btguard.com/images/openvpn_tomato_2.png https://wiki.btguard.com/images/openvpn_tomato_2.png]</span>
 
   </div>
 
   </div>
 
  </div>     
 
  </div>     
 
  <div class="right">
 
  <div class="right">
 
+
  <p>
 +
5. Got to the '''Advanced''' tab.<br/>
 +
<br/>
 +
6.Fill in the following:<br/>
 +
<br/>
 +
Checkmark '''Redirect Internet traffic'''<br/>
 +
Accept DNS configuration: '''Strict'''<br/>
 +
Encryption cipher: '''AES-256-CBC'''<br/>
 +
Compression: '''Disabled'''<br/>
 +
TLS Renegotiation Time: '''-1'''<br/>
 +
Connection retry: '''30'''<br/>
 +
Leave '''Verify server certificate (tls-remote)''' unchecked.<br/>
 +
Custom Configuration:<br/>
 +
'''persist-key'''<br/>
 +
'''persist-tun'''<br/>
 +
<br/>
 +
7.Hit '''Save'''<br/>
 +
  </p>
 
  </div>
 
  </div>
 
</div>
 
</div>
  
<div class="wrapper"><br/>
+
 
----
+
<br/></div>
+
  
  
Line 63: Line 70:
 
  <div class="wrapleft">    
 
  <div class="wrapleft">    
 
   <div class="left">
 
   <div class="left">
<span class="plainlinks">[https://wiki.btguard.com/images/f/f8/Pptp_ddwrt_1.png https://wiki.btguard.com/images/f/f8/Pptp_ddwrt_1.png]</span>  
+
<span class="plainlinks">[https://wiki.btguard.com/images/openvpn_tomato_3.png https://wiki.btguard.com/images/openvpn_tomato_3.png]</span>  
 
   </div>
 
   </div>
 
  </div>     
 
  </div>     
 
  <div class="right">
 
  <div class="right">
 
   <p>
 
   <p>
== Setup Instructions ==
+
8. Go to the '''Keys''' tab.<br/>
Please fill in all the information as shown in the screenshots to the left.<br/>
+
<br/>
 +
9. Copy the following into '''Certificate Authority'''<br/>
 +
''(Click below to select all)''<br/>
 +
<html>
 +
<textarea class="textarea" rows=6 cols=50  onclick="this.select()" readonly>
 +
-----BEGIN CERTIFICATE-----
 +
MIIDcjCCAtugAwIBAgIJAPKjuBleHokmMA0GCSqGSIb3DQEBBQUAMIGDMQswCQYD
 +
VQQGEwJERTEVMBMGA1UECBMMSGVzc2UtTmFzc2F1MRIwEAYDVQQHEwlGcmFua2Z1
 +
cnQxEDAOBgNVBAoTB0JUR3VhcmQxEzARBgNVBAMTCkJUR3VhcmQgQ0ExIjAgBgkq
 +
hkiG9w0BCQEWE3N1cHBvcnRAYnRndWFyZC5jb20wH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
 +
 
 +
 
 
<br/>
 
<br/>
''Both username and password are case sensitive. Make sure not to add/forget Capital Letters.'' <br/>
 
 
<br/>
 
<br/>
Once this is done, Save the changes you just made, reboot your router and after a couple minutes you should be connected. <br/>
+
10. Hit '''Save''' then '''Start Now''' to connect.
 
   </p>
 
   </p>
 
  </div>
 
  </div>
 
</div>
 
</div>

Latest revision as of 21:46, 5 August 2020

openvpn_tomato_1.png

Setup Instructions

1. Connect to http://192.168.1.1/
2. Click on VPN Tunneling > OpenVPN Client > Client 1 > Basic.
3. Fill in the following:

Checkmark Start with WAN
Interface Type: TUN
Protocol: UDP (switch to TCP if UDP doesn't work)
Server Address: vpn.btguard.com, Port: 1194
Firewall: Automatic
Authorization Mode: TLS
Checkmark Username/Password Authentication
Username:
Password:
Both username and password are case sensitive. Make sure not to add/forget Capital Letters.
Leave Username Authen. Only unchecked.
Extra HMAC authorization (tls-auth): Disabled
Checkmark Create NAT on tunnel

4. Hit Save




openvpn_tomato_2.png

5. Got to the Advanced tab.

6.Fill in the following:

Checkmark Redirect Internet traffic
Accept DNS configuration: Strict
Encryption cipher: AES-256-CBC
Compression: Disabled
TLS Renegotiation Time: -1
Connection retry: 30
Leave Verify server certificate (tls-remote) unchecked.
Custom Configuration:
persist-key
persist-tun

7.Hit Save



openvpn_tomato_3.png

8. Go to the Keys tab.

9. Copy the following into Certificate Authority
(Click below to select all)


10. Hit Save then Start Now to connect.