What's new
  • SNBForums Code of Conduct

    SNBForums is a community for everyone, no matter what their level of experience.

    Please be tolerant and patient of others, especially newcomers. We are all here to share and learn!

    The rules are simple: Be patient, be nice, be helpful or be gone!

ASUS RT-AC66U and OpenVPN -- Startup Script?

Trecius

New Around Here
Hello:

I live in the mountains, and I don't have a standard ISP; instead, I need to have Internet beamed to me. However, because of this setup, I am NATed. At times, I'd like to access my computers at home.

My idea is to use OpenVPN on my VPS and have my router connect it, having my VPS route all traffic to the connected client (my ASUS router). I've been trying to get the client aspect of the ASUS RT-AC66U work with connecting to my VPS, but it fails. From the logs, it seems like it's always modifying SOMETHING and applying a username and password; it can't do it, so it fails. Therefore, I'm MANUALLY starting OpenVPN on the router by logging in through telnet and creating my config and certs in a directory. When I start OpenVPN this way, it correctly connects.

I'd like to ask for assistance for two things. Where should I be putting my config and certs on the ASUS router? Is there a special location that I should put it that it won't be removed if I lose power?

The second -- and probably more important -- question is about having OpenVPN run on my router automatically on startup. Occasionally -- like every house -- I'll lose power. How can I create a script and have it start automatically on power-up (WAN-up)?

Thank you, all, for your help.


Trecius
 
There is a bug in the latest firmwares that ....for some reason....OpenVPN service does not auto launch after a reboot.

You just have to log in to the GUI and click the Apply button and the service starts.

For me, I login remotely to the GUI over the internet, or use Teamviewer to remote into a PC at home I leave on all the time.
 
There is an option to start on wan start in the gui but I use this instead in my wan-start:

#!/bin/sh
sleep 60
service start_vpnclient1
 

Latest threads

Support SNBForums w/ Amazon

If you'd like to support SNBForums, just use this link and buy anything on Amazon. Thanks!

Sign Up For SNBForums Daily Digest

Get an update of what's new every day delivered to your mailbox. Sign up here!
Back
Top