No connection on some wifi? DNS?

Official client software for OpenVPN Access Server and OpenVPN Cloud.
Post Reply
tez1982
OpenVpn Newbie
Posts: 1
Joined: Sat May 13, 2023 10:59 am

No connection on some wifi? DNS?

Post by tez1982 » Sat May 13, 2023 11:12 am

I've enabled OpenVPN on my Asus RT-AX82U router.

I've then exported the setup files to my android phone. Everything works fine over mobile data and home wifi.

On certain other wifi points (work, tescos, morrisons, holiday cottage). Its unable to connect, just says waiting for server.

If I manually change the setup to replace Asus's redirection with the IP of my router it all works fine.

My config file on my phone

Code: Select all

remote****My redirection service*****
float
nobind
proto udp
dev tun
sndbuf 0
rcvbuf 0
keepalive 10 30

# for OpenVPN 2.4 or older
comp-lzo yes
# for OpenVPN 2.4 or newer
;compress lzo

auth-user-pass
client
auth SHA1
cipher AES-128-CBC
remote-cert-tls server
<ca>
When it's successful I get the following setup from the server:

Code: Select all

May 13, 2023, 10:59:34] EVENT: GET_CONFIG
[May 13, 2023, 10:59:34] OPTIONS:
0 [route] [*******] [*******]
[vpn gateway] [500] 1 [redirect-gateway] [def1]
2 [dhcp-option] [DNS] [*****My routers internal IP*****] 3 [route] [****My routers internal IP****]
4 [block-outside-dns]
5 [route] [********]
6 [topology] [net30] 7 [ping] [10]
8 [ping-restart] [30] 9 [ifconfig] [******] [******]
10 [peer-id] [1]
[May 13, 2023, 10:59:34] PROTOCOL OPTIONS: cipher: AES-128-CBC
digest: SHA1
key-derivation: OpenVPN PRF compress: LZO_STUB
peer ID: 1
[May 13, 2023, 10:59:34] EVENT: ASSIGN_IP
[May 13, 2023, 10:59:34] Connected via tun
[May 13, 2023, 10:59:34] LZO-ASYM init swap=0 asym=1
[May 13, 2023, 10:59:34] Comp-stub init swap=0
[May 13 2023 10:59:241 EVENT CONNECTED

Any ideas why it only works on some wifi points?

AndroidPain
OpenVpn Newbie
Posts: 6
Joined: Mon May 15, 2023 1:57 pm

Re: No connection on some wifi? DNS?

Post by AndroidPain » Thu May 18, 2023 12:28 pm

Have you tried disabling the "route all traffic through the VPN option?". If that works then it looks like android is blocking the dns request.

Post Reply