OpenVPN help

I have my Asus router setup to use openVPN and the client.ovpn file works when loaded into my Android phone or tablet. When I load the same file into a GLinet GL-AR300M16-Ext pocket router it fails to work. I would like the pocket router to act as the VPN client. I have an app that won't run if it detects a VPN operating on my phone.

The pocket router VPN client will successfully connect to the server on the Asus but won't pass traffic. I know next to nothing about how this works. I've tried changing the advanced VPN settings in the router without success. My client.ovpn is attached. I removed what I believe to be any identifiable information. Anyone have any ideas?

What's openvpn client version? Try commenting out LZO compression entirely, irrespective of the client version.

I think it's 2.5.2 if I'm reading the syslog file correctly.

Removing LZO didn't fix it.

I tried the original file again and captured the logs from the asus. I see no errors. I'm going to remove identifiable information and post the log. Maybe it will help.

Thanks for replying. I do appreciate it.

Here is the asus syslog when I logged in with the client file above (has the LZO references)

Summary

Also, you can't connect a client to a server within a local network unless it's a guess network and special rules.

not true. i can connect to my OpenVPN server on the same subnet. my OpenVPN server just gives IP addresses in a different scope, but bridges back to my main network

Guess it's just my crappy setup :rofl:. I cheated and moved to wireguard. It's easier for noob like me.

3 Likes

Your client OVPN looks okay - There are a few settings extra on mine that probably don't matter. It depends on how your server is configured of course.

resolv-retry infinite
persist-key
persist-tun
comp-lzo no
# Set log file verbosity.
verb 3

# If a tls-auth key is used on the server
# then every client must also have the key.
tls-auth "[your cert directory]\ta.key" 1

Yeah I use Wireguard as well - I run both OpenVPN and Wireguard currently on/through my OPNSense firewall. Both work great but I am slowly getting off of OpenVPN as I think WG is simpler and faster.

Found this if anyone is interested.. from last year and you need a supported router.

1 Like

There's also this for very simple WG setup:

@oldcomputerwiz - I run WG on my Ubiquiti router and it is very fast and very reliable. Recommended.

4 Likes

Thanks everyone. I'm thinking it has to be something with the client in the GLinet router. I compared the syslogs from when my Android connects to the server and when the GLinet connects. There are some differences, including in the cipher. It also looks like the Android version is 3 something where the GLinet is at 2.5.2 (if I'm reading the logs correctly).

I looked at wireguard but I don't have anything left around here to run the server unless I leave the Linux laptop or my wife's old small palmtop (is that what is called?) Windows 8 machine. I really do like the low overhead of wireguard.

Oh well. I'll look at some of the differences from @erktrek . I was hoping it was something obvious.

Thanks again.

1 Like

You mentioned an Asus router - Is your router compatible with the AsusWRT firmware? If so then you can likely install that and try Wireguard OR maybe it will have some updated OpenVPN stuff.

2 Likes

It's on the latest version of the stock Asus firmware. The AC66U is no longer supported by WRT. That probably means I should replace the router but the thing is working (other than this) and is still being supported by Asus.

Maybe, for fun, I'll set up wireguard on one of these laptops to see how well it works. This whole project is only going to be a temporary need so I hate to invest a bunch of time or money into it.

1 Like

Try TailScale that @danabw mentioned.. might be the easiest way to get into it.

2 Likes

I'll do that too. They have the free version for personal (cheapskate) use.

3 Likes

Yeah I've never used it myself - I actually have 2 versions of WG running right now. One on my OPNsense Firewall and the other as a test on an oDroid N2 running Ubuntu Linux.

If you ever decide to incorporate a Raspberry PI then this works great:

https://pivpn.io/

1 Like

That's what I'm using and it works well. PiVPN version of openVPN server. Easy to remotely connect from my android phone, chromebook and pc.

No, I think you need to do that. ONly having two WG setups seems a bit risky to me, when the Zombie Apocalypse comes... :wink:

If the chip shortage/supply chain ever gets sorted out i would take a look at a Pi. The prices I saw the other day seemed unreal from what I've seen in the past.

As for utilizing the NAS, I'm running a WD My cloud which was given to me as a gift. I don't utilize the WD software at all and access it using the VPN when in away. I don't think I could utilize it for a VPN or at least I don't recall reading about anyone using it. Everything I'm running is "consumer grade" stuff.

The instant guard feature that is part of the Asus firmware also wirks as a vpn. I use it with my RT-Ax3300. That's really probably the easiest as it baked in.

1 Like

Unfortunately, that doesn't appear to be part of the firmware on the RTAC66UB1.