What's new

asus openvpn without wan connection

  • 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!

Hellboy

New Around Here
Hi,

I have a asus rt-ac66u. I installed the asuswrt merlin firmware on the router to get openvpn server functionality.
I now have the router connected directly to the internet. But in a couple of months another ISP router/modem (SIP,IPTV,Internet) will be connected directly to the internet. The asus will be used as an AP, but i will keep it in "Wireless router mode", because the "Access Point mode" will turn the OpenVPN functionality off.

My plan is to forward the openvpn port to the asus router from the other router/modem.
My question is, will this work?


Thanks.
 
No. While in AP mode, the router mostly acts like a network bridge, without routing in place. That means OpenVPN cannot function in such a setup, it needs to be able to route stuff.
 
Thanks for the quick reply. But if i leave the router in "Wireless router mode" then there will be no problem?

I did some testing, connect to the vpn locally on the ip adres works, so port forwarding from different router should also work, if i leave the router in "Wireless route mode"
 
Last edited:
Depends on what you connect to the Asus router. If it's just mobile clients such as phones and tablets, they probably won't mind too much with being double NATted. Things might be trickier however if it includes computers that need access to other LAN devices.
 
I did some testing today, i disconnected the wan cable and used another router.
I forwarded port 1194 (ip on local network) to the router, but from the internet i do not get a connection. From the local network i can get a connection.
I suspect i need to set the default gateway manualy.
 
Last edited:
Got it to work, i can connect, but i cannot connect to other devices in the lan, only the webpage of the router.
What can i do to fix this?
 
It took me 15 minutes to get it working. I put my openvpn config on external usb (certs, startup script, server config)
In /jffs/scripts/ i created the service startup script services-start which calls the openvpn startup script (routing, modprobe tun, iptables) located on the usb disk.
When i run the /jffs/scripts/services-startup, then openvpn starts etc and i can connect from the internet, so that's good.
Except when i reboot the router, the script does not get called.

What am i doing wrong?

Thanks.
 
Fixed it. Added a 10 second sleep in the beginning of /jffs/scripts/services-startup . This thread can have a lock
 
You can probably store the rest in the JFFS partition as well - should be plenty of space there. Asus and I already use it to store OpenVPN key/certs now.

Services-start probably runs it before the USB disk gets mounted, hence the need for a delay.
 

Similar threads

Latest threads

Sign Up For SNBForums Daily Digest

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