SmallNetBuilder Forums

Go Back   SmallNetBuilder Forums > Wireless Networking > ASUS Wireless > Asuswrt-Merlin

Reply
 
Thread Tools Search this Thread Display Modes
  #1  
Old 01-08-2013, 10:07 AM
gbguy71 gbguy71 is offline
New Member
 
Join Date: Dec 2012
Location: Northern CA
Posts: 8
Thanks: 0
Thanked 3 Times in 1 Post
gbguy71 is just starting out
Default Setting up Merlin VPN and OpenVPN Server and Windows Client

Setting up Merlin VPN and OpenVPN Server and Windows Client

I encountered some issues/”learning opportunities” when setting up my ASUS RT-N66U as a VPN server. I noticed that others had similar experiences, so this post may be helpful to future VPN users. I’m a noob at this, so experts feel free to correct me. I’ll edit this as needed. I’m not an Apple guy, so I’ll concentrate on Windows clients and you’ll need to go elsewhere for setting up the router as an OpenVPN client.

My approach is to reference other posts/articles, but with additional notes so that some issues can be avoided.

First, the Merlin firmware offers two VPN implementations: the basic ASUS PPTP (Point to Point Tunnel Protocol) and OpenVPN. PPTP is simple to set up but not totally secure. OpenVPN is more complex to set up, but much more secure. Look at their Wikipedia entries for more information.

First, before you do anything else, determine if your router has a public or an internal IP address. You need to have a public one for any of this work. This post on the ASUS forum tells you how using www.whatismyip.com. My ISP’s DSL modem was configured as a router. They changed it to a bridge for a one-time charge (you do NOT need to get a static IP address assigned. We’ll talk later about assigning a hostname that will handle a router’s possibly changing IP address).

Setting Up the ASUS PPTP Server

Even if you know you want to exclusively use OpenVPN you might want to go ahead and try the PPTP server just to make sure all your connections work before you jump into setting up OpenVPN. ASUS provides a good guide here. Windows has PPTP client support built into it, so once the router is set up you can get going in a heartbeat. There are a number of good articles on how to set up a VPN client on the web. This one is pretty good. If you decide you don’t want to continue using the PPTP server be sure and disable it in the router. No sense wasting router resources.

NOTE: When you look at the Windows Network and Sharing Center you’ll see the VPN connection.

Setting up the OpenVPN Server

The key article is this one about configuring a Tomato router and Windows clients (skip down to Configuring OpenVPN). You obviously don’t need to add the OpenVPN software to the router, but the setup instructions for the router and the windows client are good. Here are some additional points:
  1. The article assumes you’ll use the OpenVPN GUI that is part of the OpenVPN distribution. From what I’ve heard it isn’t the most current. Instead, install this version from SourceForge (openvpn-gui.exe). [My guess at the installation instructions:] You need to download it and copy it into the OpenVPN\bin directory once OpenVPN, including its OpenVPN GUI, has been installed. I renamed the original openvpn-gui, but kept it around.
  2. When you edit the files (e.g., vars.bat) run Notepad++ as administrator.
  3. When you generate the keys, certificates, etc. you may get some error messages regarding “can’t open config file … openssl.cnf”. Don’t worry about them. They won’t affect the results.
  4. Be sure and include the -----BEGIN CERTIFICATE-----/ -----END CERTIFICATE----- , -----BEGIN PRIVATE KEY-----/ -----END PRIVATE KEY-----, and -----BEGIN DH PARAMETERS----- , -----END DH PARAMETERS----- lines of text in the router parameters.
  5. The OpenVPN download is for everything, server and client. I don’t know if there is a minimal download for a strict client, one in which the keys are generated on a different machine.
  6. Don’t ask me about their recommended VPN server parameters (Push LAN to clients, etc.) I don’t know what they mean

NOTE: The VPN connection will NOT be visible in the Windows Network and Sharing Center. You’ll be able check the status from the Open GUI hidden icon.

This article covers much of the same stuff, though in less detail. Its main advantage is that it is from the OpenVPN group, so that if something changes it should be up to date.



Miscellaneous Goodies

If your router provides it, use the ASUS DDNS service to provide a hostname for your router. It will automatically be updated if your router’s IP address changes. Many of the tutorial articles suggest using DynDNS. However, in their free version your hostname registration will expire if your IP address doesn’t change for 30 days [I can’t find a concise reference for this].

How to set up your router so that it can be managed outside your local network.

If you want to be able to ping your router (good for testing) go the Firewall section and enable “Respond Ping Request from WAN”

If you are interested in a Static Key OpenVPN set up, this mini-article explains how.

General How To topics on “all things OpenVPN”.

Hope this will make things a little easier for you.
Reply With Quote
The Following 3 Users Say Thank You to gbguy71 For This Useful Post:
Reply

Tags
openvpn, setup

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off


All times are GMT -4. The time now is 01:43 PM.

Top 10 Stats
Top Posters* Top Thanked
RMerlin  303
coxhaus  119
stevech  112
Fraoch  45
vdemarco  41
tipstir  37
RogerSC  32
Mark Uhde  30
CaptainSTX  28
TeHashX  26
RMerlin  1586
stevech  145
ryzhov_al  104
TeHashX  88
RogerSC  71
GregN  54
Geraner  44
CL-Jeremy  42
joegreat  39
sfx2000  34
Most Viewed Threads* Hottest Threads*
Old Asuswrt-Merli...  7256
Old IPv6 not...  1700
Old 2GHz...  1690
Old Article...  1430
Old FlexRaid on...  1328
Old RT-N66U...  1308
Old AC 5ghz...  1198
Old DLNA Media...  1190
Old I am so...  1133
Old 270 Firmware...  1114
Old Asuswrt-Merli...  69
Old IPv6 not...  44
Old Two DHCP...  28
Old DLNA Media...  22
Old Inaccuracy -...  19
Old RT-N66U...  19
Old Information...  18
Old Is my cable...  18
Old what does...  18
Old How to...  18





Powered by vBulletin® Version 3.7.3
Copyright ©2000 - 2013, Jelsoft Enterprises Ltd.
© 2006-2013 Pudai LLC All Rights Reserved.