Showing posts with label openvpn. Show all posts
Showing posts with label openvpn. Show all posts

Monday, May 03, 2010

How to connect to Tomato VPN in Windows 7 and Vista

I have recently upgrade my main laptop from XP to windows 7, I was updating my Tomato OpenVPN setup as well.  My recent blog entry shows instructions on how to setup OpenVPN server from the tomato router.  A lot has changed since then.  For me now it's Windows 7 and OpenVPN windows installer now comes with a GUI, you don't have to install it yourself.  The installation went well, however after I set everything up and I tried to connect I got this error message.


The requested operation requires elevation.

ERROR: Windows route add command failed [adaptive]: system() returned 



I can connect to my server, however I can't add the route to my Tomato router, therefore my traffic does not route through the Tomato VPN server.  


For those who are experiencing the same error, I found it on requires a simple fix.  First you have to configure the GUI such that it works with your ovpn and your static.key file.  Instead of using the connect.ovpn file from anywhere, you can connect by using the GUI which came with the installer.  The trick is to run the GUI as administrator, this can fix this error and I can connect to the VPN server.  


One trick is to run OpenVPN as a service and run as administrator, you can also make your computer connect automatically each time you logon. 

Monday, December 14, 2009

How to use your Iphone and Tomato to turn on your computer remotely without going to the app store

So you think you know all the uses of an Iphone? Well try this, making an adhoc version of a remote computer switch with your Iphone without visiting the Apple app store. So here is what you need


  • A Router with Tomato Firmware installed
  • A computer with a LAN card that supports Wake-On-Lan
  • Iphone/Ipod Touch or any phone with Wifi and a web browser ( I haven't tested others yet)


     Ok, since you have landed on this blog, I assume that you are already familiar with the Tomato firmware. It is a free custom Linux based firmware written especially for most Boardcom chipset based routers. It can easily turn your $30 router to a $300 router if you know how to install it. You can easily search Google to find out if your router supports it, and you can also Google instructions on how to install it. There is a large community on custom firmwares that try to make it do different things everyday. Ok so after you have installed the Tomato firmware, you would automatically notice that tomato supports WOL automatically. Basically it is the use of a network card to turn on the computer when you have access to the network. When you want to turn on a computer, a magic packet is broadcast on the network to reach your target computer. However it is mostly a pain to enable that feature on your computer. I am using Asrock M3A790GXH/128M for this exercise. So here are the steps.

1. Install and configure tomato to work properly

2. Enable WOL on your computer. In my case, you have to goto BIOS and enable "PCI device Power On" in the power menu. This might be different for your setup, but the principle is the same. Try to Google your specific motherboard/LAN card for instructions.

3. Boot into windows/Mac/Linux and note down the Mac address of your network card. Also note the name of the computer you want to turn on, in my case it is "server". Then turn it off.

4.If you have used this computer extensively on your tomato router, it should remember the Mac address of your computer.

5.Now here is the fun part, use your iphone on the same network on your computer and goto the Safari browser. Goto the IP address of the Tomato router and goto the admin menu. In there you can see the WOL option which looks something like below.



6. Click on the target computer with the name "server" or the one with your target computer name. If it is not on the list, then you can enter it manually in the space below.

Wait for your computer to Beep and turn on right in front of you.  Now you can turn on your computer from the comfort of your sofa simply because you don't want to walk that extra distance or if you want to brag about it(I know I will) or just because you know that you can.  Now image what you can do with DDNS, VPN setup on the tomato, you can go anywhere and turn on your computer with the tip of your finger.

Thursday, August 06, 2009

How to Setup Openvpn in Tomato

This summary is not available. Please click here to view the post.