OpenVPN

Im having trouble getting my ovpn file to connect. It works using an android openvpn app but wont work with glinet openvpn client. Using TorGuard glinet ovpn file.

client
dev tun
proto udp
remote dal.central.usa.torguardvpnaccess.com 1912
remote-cert-tls server
auth SHA256
key-direction 1
setenv CLIENT_CERT 0

-----BEGIN OpenVPN Static key V1-----
770e8de5fc56e0248cc7b5aab56be80d
0e19cbf003c1b3ed68efbaf08613c3a1
a019dac6a4b84f13a6198f73229ffc21
fa512394e288f82aa2cf0180f01fb3eb
1a71e00a077a20f6d7a83633f5b4f47f
27e30617eaf8485dd8c722a8606d56b3
c183f65da5d3c9001a8cbdb96c793d93
6251098b24fe52a6dd2472e98cfccbc4
66e63520d63ade7a0eacc36208c3142a
1068236a52142fbb7b3ed83d785e12a2
8261bccfb3bcb62a8d2f6d18f5df5f36
52e59c5627d8d9c8f7877c4d7b08e19a
5c363556ba68d392be78b75152dd55ba
0f74d45089e84f77f4492d886524ea6c
82b9f4dd83d46528d4f5c3b51cfeaf28
38d938bd0597c426b0e440434f2c451f
-----END OpenVPN Static key V1-----

resolv-retry infinite
nobind
tls-version-min 1.2
cipher AES-256-GCM
auth-user-pass
compress
ncp-disable
tun-mtu-extra 32

-----BEGIN CERTIFICATE-----
MIIEwTCCA6mgAwIBAgIJAKROjebUHo0gMA0GCSqGSIb3DQEBBQUAMIGbMQswCQYD
VQQGEwJVUzELMAkGA1UECBMCRkwxEDAOBgNVBAcTB09ybGFuZG8xETAPBgNVBAoT
CFRvckd1YXJkMQwwCgYDVQQLEwNWUE4xEzARBgNVBAMTClRHLU9WUE4tQ0ExETAP
BgNVBCkTCFRvckd1YXJkMSQwIgYJKoZIhvcNAQkBFhVzeXNhZG1pbkB0b3JndWFy
ZC5uZXQwHhcNMTQwNDE3MTAwOTIzWhcNMjQwNDE0MTAwOTIzWjCBmzELMAkGA1UE
BhMCVVMxCzAJBgNVBAgTAkZMMRAwDgYDVQQHEwdPcmxhbmRvMREwDwYDVQQKEwhU
b3JHdWFyZDEMMAoG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8hWZhNySGFwSXlEIicvNy+9mlFhk2Nb46w
ioZKc1Lc7/okeXNWHPv6Dlm39TcNBpGX/xNoWBzqs1EtA1ZGvMcQHsKLfi3Nbaab
BYe08KWsfeZA+ih4BZ6y2E+x84NYHRebqijXTtHp35coyXllBL/+LBoZ86hKszEx
F3pjGU0+8NzvdPUbKndhzyPPnHF1
-----END CERTIFICATE-----

The log shows that the router cannot resolve the server address.

Can you pls check if your router is connect to internet.

My setup is kind of complicated.

I use an app called Wifi Tether Router from my mobile to create a hotspot. The router is in repeater mode with my mobile. Which the router does have internet and if I connecta mobile device to it and run my ovpn file with OpenVPN app it works.

Heres my mobile connected to the router

Can you explain why gateway is 8.254 and the router IP is 8.2?

Im not all that tech savvy. But ive came a long way trying to create a hotspot without hotspot plan. Never had issues with my setup until trying to use plex service and xbox live to work so I can port forward the correct ports without a PC involved.

I can change the dhcp ip through wifi tether router app only first 3 subnets and I guess it always put 254 on the last one as dhcp. If I try use my phones actual dhcp it will not work so I use a custom one every time. Helps getting network connected to different routers a bit faster.

And when i try to setup router as repeater does not work in wisp mode. Only wds. So therefore i put 8.2 to be on same subnet as dhcp if i use routers 8.1 internet dont work. Ovpn file works fine if running on android or PC connected thru router

This is mobile connected to router running openvpn. Using an app to show that my private ip is working with routers settings too.

Here is the thing, in order to use vpn on the router you have to use router mode, not AP/bridge mode. Because the router need to router data to vpn.

WDS is bridge so it will not work with vpn. So this is the problem. You have to use a different subnet in your hotspot and use wisp mode.

I will try wisp and see if I can get it to connect to the internet first.

I want to be able to hook up my devices wirelessly. If i put the gl router into wds mode will the wireless gui still work? I should be able to hook up a second wireless router to the lan.

I can connect to the router wireless only with no vpn on my phone running with internet. Usb tethering I need a vpn running on my phone for router to work properly with internet.

My two options to connect to so far. Wds is only working for me I think. Maybe Im connecting it wrong in wisp mode. But ive managed to have internet with my two ways to connect.

If connected to router in wds mode from my PC and use VPN client on PC ports are opened correctly. The vpn for my ports will only work while running the client on PC. Therefore I cant use my vpn profile on mobile. It must route traffic differently. Idk

With that said. If I connect router in wds mode from my phone since I can get it work without the router doing the routing itself when its connected to my PC. Could I setup the router to port forward my traffic from my hotspot where the vpn is running. Because the router does pull the correct ipv4 from my vpn on mobile just ports dont work. Not sure of this makes much since. PC should be doing similar routing as the gl router is doing. Hopefully I am not thinking this wrong way. It sounds possible. But again I’ll try wisp later once i get back home. Maybe I’ll have better luck with the connection and solve this issue.

Would I be able to connect to my hotspot with vpn active on mobile and configure router to connect to my hotspot and setup port forward on router. PC vpn client vs mobile app client work differently I think

… apparently … I love how you post your certificates, yet block out the MAC address of your device (which
is about useless, nobody can do anything with that). :slight_smile:

Well that isnt going to help my situation, but thanks for the security update. Which I guess makes sense a bit. Its a good thing that isn’t the right host address I use to connect to begin with. No idea what keys and certs do. Just need guidance is all.

Is a PC wifi network connection different then GLs or does a PC connect in wisp mode like a router. Just curious