DD-WRT 安裝 OpenVPN Setup Tutorial 教學 SSL VPN

出處:http://www.earthvpn.com/dd-wrt-openvpn-setup-tutorial/

OpenVPN Setup for DD-WRT
 
If you don’t have a DD-WRT flashed router and would like to purchase one preconfigured with the EarthVPN DD-WRT application, our parther FlashRouters can help you. They provide a hassle free alternative to the somewhat technical process of selecting a compatible router and flashing DD-WRT on it yourself. Check out our Flashrouter Information Page for more information and special promotions!

We presume the following configurations:

  • You have already tested OpenVPN on your PC/Mac to ensure that your network configuration and ISP allows OpenVPN connections.
  • You have already flashed your router with the newest DD-WRT firmware v24-sp2.DD-WRT 2014 builds have been used while preparing this tutorial.Previous or other builds may have bugs preventing OpenVPN connections.
  • You have already hard reset(30/30/30 method) or restore the factory defaults via administration menu.
  • Your DD-WRT router is connected to your first router via wifi or ethernet.
  • When you connect to DD-WRT router via wi-fi or ethernet  from your PC/MAC ,you can access internet.
  • Your DD-WRT router local IP address is 192.168.1.1
  • Your first router has different LAN subnet for ex. 192.168.0.1
Step:1 Connect to the dd-wrt router using either an Ethernet cable, or by joining the wireless network ‘dd-wrt’. Open a web browser, and load the following address: http://192.168.1.1 Note, set your network connection to obtain IP address automatically if you connect to your router via Ethernet.
Check your dd-wrt firmware.Software version that has been tested to work on EarthVPN servers is DD-WRT newer builds.Builds or versions other than 2014 DD-WRT builds may have bugs preventing OpenVPN connections.For example on Official Build 21061 you have to set LZO Compression to disabled and apply settings after every reboot.
ddkong1 DD WRT OpenVPN Setup Tutorial : Cheap Anonymous VPN Service with SSTP, PPTP, L2TP and OpenVPN Protocols   BitCoin and AliPay Accepted
Step:2 Go to Setup then select Basic Setup.
dd2 DD WRT OpenVPN Setup Tutorial : Cheap Anonymous VPN Service with SSTP, PPTP, L2TP and OpenVPN Protocols   BitCoin and AliPay Accepted
Step:3 Uncheck all three checkboxes for ‘Use DNSMasq for DNCP’, ‘Use DNSMasq for DNS’ and ‘DHCP-Authoritative and enter 8.8.8.8 and 8.8.4.4 and 8.8.4.4 into Static DNS 1 , Static DNS 2 , Static DNS 3 textbox as seen on the screenshot.’
dd10 DD WRT OpenVPN Setup Tutorial : Cheap Anonymous VPN Service with SSTP, PPTP, L2TP and OpenVPN Protocols   BitCoin and AliPay Accepted
Step:4 Apply Settings
dd11 DD WRT OpenVPN Setup Tutorial : Cheap Anonymous VPN Service with SSTP, PPTP, L2TP and OpenVPN Protocols   BitCoin and AliPay Accepted
Step:5 Click on Security then Firewall and set SPI Firewall to Disable and click apply settings button to save.
dd12 DD WRT OpenVPN Setup Tutorial : Cheap Anonymous VPN Service with SSTP, PPTP, L2TP and OpenVPN Protocols   BitCoin and AliPay Accepted
dd14 DD WRT OpenVPN Setup Tutorial : Cheap Anonymous VPN Service with SSTP, PPTP, L2TP and OpenVPN Protocols   BitCoin and AliPay Accepted
Step:6 Go to Services and select VPN.
ddkong2 DD WRT OpenVPN Setup Tutorial : Cheap Anonymous VPN Service with SSTP, PPTP, L2TP and OpenVPN Protocols   BitCoin and AliPay Accepted
Step:7 
  1. Set Start OpenVPN Client to Enable.
  2. Enter EarthVPN Server Address to Server IP/Name.
  3. Enter Port number.For TCP protocol you may enter one of the following port number 80,443,992,1194 and 8888.For UDP protocol you may enter one of the following port number 53,80,992,1194 and 8888.
  4. Set the Tunnel Device to TUN.
  5. Set the Tunnel Protocol to TCP or UDP.
  6. Set the Encryption Cipher to AES-128 CBC.
  7. Set the Hash Algorithm to SHA1.
  8. Set the nsCertType to unchecked.
  9. Set the Advanced Options to Enable.
  10. Set the TLS Cipher to None.
  11. Set the LZO Compression to Disabled.
  12. Set the Nat to Enable.
  13. In the Additional Config enter the following:
auth-user-pass /tmp/password.txt
persist-key
remote-cert-tls server
14. Copy and paste the following to CA Cert Field.
—–BEGIN CERTIFICATE—–
MIIDdTCCAl2gAwIBAgILBAAAAAABFUtaw5QwDQYJKoZIhvcNAQEFBQAwVzELMAkG
A1UEBhMCQkUxGTAXBgNVBAoTEEdsb2JhbFNpZ24gbnYtc2ExEDAOBgNVBAsTB1Jv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tL3Jvb3RyMTAf
BgNVHSMEGDAWgBRge2YaRQ2XyolQL30EzTSo//z9SzANBgkqhkiG9w0BAQUFAAOC
AQEABjBCm89JAn6J6fWDWj0C87yyRt5KUO65mpBz2qBcJsqCrA6ts5T6KC6y5kk/
UHcOlS9o82U8nxTyaGCStvwEDfakGKFpYA3jnWhbvJ4LOFmNIdoj+pmKCbkfpy61
VWxH50Hs5uJ/r1VEOeCsdO5l0/qrUUgw8T53be3kD0CY7kd/jbZYJ82Sb2AjzAKb
WSh4olGd0Eqc5ZNemI/L7z/K/uCvpMlbbkBYpZItvV1lVcW/fARB2aS1gOmUYAIQ
OGoICNdTHC2Tr8kTe9RsxDrE+4CsuzpOVHrNTrM+7fH8EU6f9fMUvLmxMc72qi+l
+MPpZqmyIJ3E+LgDYqeF0RhjWw==
—–END CERTIFICATE—–
15. Click Apply Settings.
ddkong3 DD WRT OpenVPN Setup Tutorial : Cheap Anonymous VPN Service with SSTP, PPTP, L2TP and OpenVPN Protocols   BitCoin and AliPay Accepted
Step:8 Go to Administration and select Commands.
Paste the following to the Commands Field editing your username and password(Do not use “EarthVPN_” before your username and password).Click Save Startup.
echo username >> /tmp/password.txt
echo password >> /tmp/password.txt
/usr/bin/killall openvpn
/usr/sbin/openvpn –config /tmp/openvpncl/openvpn.conf –route-up /tmp/openvpncl/route-up.sh –down-pre /tmp/openvpncl/route-down.sh –daemon
ddkong4 DD WRT OpenVPN Setup Tutorial : Cheap Anonymous VPN Service with SSTP, PPTP, L2TP and OpenVPN Protocols   BitCoin and AliPay Accepted
Step:9 Go to Management and reboot router.
dd15 DD WRT OpenVPN Setup Tutorial : Cheap Anonymous VPN Service with SSTP, PPTP, L2TP and OpenVPN Protocols   BitCoin and AliPay Accepted
After reboot it should connect to the VPN automatically.Please wait up to 1 minutes for OpenVPN connection to be established.You can check the connection status by going to Status and OpenVPN tab.You should see Client: CONNECTED: SUCCESS
ddkong5 DD WRT OpenVPN Setup Tutorial : Cheap Anonymous VPN Service with SSTP, PPTP, L2TP and OpenVPN Protocols   BitCoin and AliPay Accepted
To check if your IP has been changed visit http://www.iplocation.net on your PC/MAC.

If you don’t have a DD-WRT flashed router and would like to purchase one preconfigured with the EarthVPN DD-WRT application, our parther FlashRouters can help you. They provide a hassle free alternative to the somewhat technical process of selecting a compatible router and flashing DD-WRT on it yourself. Check out our Flashrouter Information Page for more information and special promotions!

未經允許不得轉載:GoMCU » DD-WRT 安裝 OpenVPN Setup Tutorial 教學 SSL VPN