exception setting dhcp-option for proxy: tun_prop_dhcp_option_error: tun_builder_set_proxy_auto_config_url

Official client software for OpenVPN Access Server and OpenVPN Cloud.
Post Reply
yanggis
OpenVpn Newbie
Posts: 8
Joined: Sun Jun 15, 2014 1:45 pm

exception setting dhcp-option for proxy: tun_prop_dhcp_option_error: tun_builder_set_proxy_auto_config_url

Post by yanggis » Fri Jul 29, 2022 4:12 pm

Dear all:
I've added one option in the openvpn config server to use pac file, here is the option:
push "dhcp-option PROXY_AUTO_CONFIG_URL https://xx.yys.com/share/acl/proxy.pac"

However, when connecting to the server, I got this error:
exception setting dhcp-option for proxy: tun_prop_dhcp_option_error: tun_builder_set_proxy_auto_config_url
Do you guys know what is wrony with the option? How to fix it?

Here is the log file:

17:10:16.854 -- EVENT: DISCONNECTED

17:10:16.855 -- Tunnel bytes per CPU second: 0

17:10:16.855 -- ----- OpenVPN Stop -----

17:10:20.731 -- ----- OpenVPN Start -----

17:10:20.732 -- EVENT: CORE_THREAD_ACTIVE

17:10:20.736 -- OpenVPN core 3.git::d3f8b18b:Release android arm64 64-bit PT_PROXY

17:10:20.738 -- Frame=512/2048/512 mssfix-ctrl=1250

17:10:20.739 -- UNUSED OPTIONS
4 [resolv-retry] [infinite]
5 [nobind]
6 [persist-key]
7 [persist-tun]
11 [ignore-unknown-option] [block-outside-dns]
12 [block-outside-dns]
13 [verb] [3]

17:10:20.741 -- EVENT: RESOLVE

17:10:20.744 -- Contacting 66.254.xx.xx:1194 via TCPv4

17:10:20.745 -- EVENT: WAIT

17:10:21.574 -- Connecting to [66.254.xx.xx]:1194 (66.254.xx.xx) via TCPv4

17:10:22.581 -- EVENT: CONNECTING

17:10:22.606 -- Tunnel Options:V4,dev-type tun,link-mtu 1603,tun-mtu 1500,proto TCPv4_CLIENT,cipher AES-256-CBC,auth SHA512,keysize 256,key-method 2,tls-client

17:10:22.607 -- Creds: UsernameEmpty/PasswordEmpty

17:10:22.609 -- Peer Info:
IV_VER=3.git::d3f8b18b:Release
IV_PLAT=android
IV_NCP=2
IV_TCPNL=1
IV_PROTO=30
IV_CIPHERS=AES-256-GCM:AES-128-GCM:CHACHA20-POLY1305:AES-256-CBC
IV_AUTO_SESS=1
IV_GUI_VER=net.openvpn.connect.android_3.2.7-7957
IV_SSO=webauth,openurl

17:10:23.235 -- VERIFY OK: depth=1, /CN=Easy-RSA CA, signature: RSA-SHA256

17:10:23.239 -- VERIFY OK: depth=0, /CN=server, signature: RSA-SHA256

17:10:25.190 -- SSL Handshake: peer certificate: CN=server, 2048 bit RSA, cipher: TLS_AES_256_GCM_SHA384 TLSv1.3 Kx=any Au=any Enc=AESGCM(256) Mac=AEAD

17:10:25.193 -- Session is ACTIVE

17:10:25.196 -- EVENT: GET_CONFIG

17:10:25.204 -- Sending PUSH_REQUEST to server...

17:10:25.742 -- OPTIONS:
0 [dhcp-option] [PROXY_AUTO_CONFIG_URL] [https://xx.yys.com/share/acl/proxy.pac]
1 [dhcp-option] [DNS] [8.8.8.8]
2 [route-gateway] [10.13.0.1]
3 [topology] [subnet]
4 [ping] [10]
5 [ping-restart] [60]
6 [ifconfig] [10.13.0.2] [255.255.255.0]
7 [peer-id] [0]
8 [cipher] [AES-256-GCM]

17:10:25.743 -- PROTOCOL OPTIONS:
cipher: AES-256-GCM
digest: NONE
key-derivation: OpenVPN PRF
compress: NONE
peer ID: 0
control channel: tls-crypt enabled

17:10:25.745 -- EVENT: ASSIGN_IP

17:10:25.753 -- exception setting dhcp-option for proxy: tun_prop_dhcp_option_error: tun_builder_set_proxy_auto_config_url

17:10:25.781 -- Connected via tun

17:10:25.784 -- EVENT: CONNECTED info='66.254.xx.xx:1194 (66.254.xx.xx) via /TCPv4 on tun/10.13.0.2/ gw=[10.13.0.1/]'

17:11:10.415 -- EVENT: DISCONNECTED trans=TO_DISCONNECTED

17:11:10.415 -- Tunnel bytes per CPU second: 0

17:11:10.416 -- ----- OpenVPN Stop -----

yanggis
OpenVpn Newbie
Posts: 8
Joined: Sun Jun 15, 2014 1:45 pm

Re: exception setting dhcp-option for proxy: tun_prop_dhcp_option_error: tun_builder_set_proxy_auto_config_url

Post by yanggis » Fri Jul 29, 2022 4:15 pm

Im using openvpn server with version of 2.5.7.


openvpn --version

OpenVPN 2.5.7 x86_64-pc-linux-gnu [SSL (OpenSSL)] [LZO] [LZ4] [EPOLL] [PKCS11] [MH/PKTINFO] [AEAD] built on May 24 2022
library versions: OpenSSL 1.1.1 11 Sep 2018, LZO 2.08
Originally developed by James Yonan
Copyright (C) 2002-2022 OpenVPN Inc <sales@openvpn.net>
Compile time defines: enable_async_push=no enable_comp_stub=no enable_crypto_ofb_cfb=yes enable_debug=yes enable_def_auth=yes enable_dependency_tracking=no enable_dlopen=unknown enable_dlopen_self=unknown enable_dlopen_self_static=unknown enable_fast_install=needless enable_fragment=yes enable_iproute2=yes enable_libtool_lock=yes enable_lz4=yes enable_lzo=yes enable_maintainer_mode=no enable_management=yes enable_multihome=yes enable_pam_dlopen=no enable_pedantic=no enable_pf=yes enable_pkcs11=yes enable_plugin_auth_pam=yes enable_plugin_down_root=yes enable_plugins=yes enable_port_share=yes enable_selinux=no enable_shared=yes enable_shared_with_static_runtimes=no enable_silent_rules=no enable_small=no enable_static=yes enable_strict=no enable_strict_options=no enable_systemd=yes enable_werror=no enable_win32_dll=yes enable_x509_alt_username=yes with_aix_soname=aix with_crypto_library=openssl with_gnu_ld=yes with_mem_check=no with_openssl_engine=auto with_sysroot=no

yanggis
OpenVpn Newbie
Posts: 8
Joined: Sun Jun 15, 2014 1:45 pm

Re: exception setting dhcp-option for proxy: tun_prop_dhcp_option_error: tun_builder_set_proxy_auto_config_url

Post by yanggis » Fri Jul 29, 2022 4:17 pm

Is this because Android client does not implement a parser for this specific option and so I get an exception?

TinCanTech
OpenVPN Protagonist
Posts: 11137
Joined: Fri Jun 03, 2016 1:17 pm

Re: exception setting dhcp-option for proxy: tun_prop_dhcp_option_error: tun_builder_set_proxy_auto_config_url

Post by TinCanTech » Fri Jul 29, 2022 7:07 pm

yanggis wrote:
Fri Jul 29, 2022 4:12 pm
here is the option:
push "dhcp-option PROXY_AUTO_CONFIG_URL
Maybe you should verify that such an option exists, first ..

yanggis
OpenVpn Newbie
Posts: 8
Joined: Sun Jun 15, 2014 1:45 pm

Re: exception setting dhcp-option for proxy: tun_prop_dhcp_option_error: tun_builder_set_proxy_auto_config_url

Post by yanggis » Sat Jul 30, 2022 1:52 am

Thanks for the reply. I'm sure the option for OpenVPN exists already. Just not sure if it is implemented on Android client App.

TinCanTech wrote:
Fri Jul 29, 2022 7:07 pm
yanggis wrote:
Fri Jul 29, 2022 4:12 pm
here is the option:
push "dhcp-option PROXY_AUTO_CONFIG_URL
Maybe you should verify that such an option exists, first ..

TinCanTech
OpenVPN Protagonist
Posts: 11137
Joined: Fri Jun 03, 2016 1:17 pm

Re: exception setting dhcp-option for proxy: tun_prop_dhcp_option_error: tun_builder_set_proxy_auto_config_url

Post by TinCanTech » Sat Jul 30, 2022 8:31 am

yanggis wrote:
Sat Jul 30, 2022 1:52 am
I'm sure the option for OpenVPN exists
As I pointed out, wanting something to exist is not the same as verifying that it exists.

yanggis
OpenVpn Newbie
Posts: 8
Joined: Sun Jun 15, 2014 1:45 pm

Re: exception setting dhcp-option for proxy: tun_prop_dhcp_option_error: tun_builder_set_proxy_auto_config_url

Post by yanggis » Sat Jul 30, 2022 10:50 am

I didn't want anything.
If you are an expert in Android OpenVPN client App, just answer my question directly.
If not, keep away from my post. I just need a real answer instead of some ridiculous posts.
TinCanTech wrote:
Sat Jul 30, 2022 8:31 am
yanggis wrote:
Sat Jul 30, 2022 1:52 am
I'm sure the option for OpenVPN exists
As I pointed out, wanting something to exist is not the same as verifying that it exists.

TinCanTech
OpenVPN Protagonist
Posts: 11137
Joined: Fri Jun 03, 2016 1:17 pm

Re: exception setting dhcp-option for proxy: tun_prop_dhcp_option_error: tun_builder_set_proxy_auto_config_url

Post by TinCanTech » Sat Jul 30, 2022 11:19 am

This has nothing to do with Android.

yanggis
OpenVpn Newbie
Posts: 8
Joined: Sun Jun 15, 2014 1:45 pm

Re: exception setting dhcp-option for proxy: tun_prop_dhcp_option_error: tun_builder_set_proxy_auto_config_url

Post by yanggis » Sat Jul 30, 2022 2:49 pm

wanting something to exist is not the same as verifying that it exists.

Just check this link:
https://community.openvpn.net/openvpn/ticket/1472
TinCanTech wrote:
Sat Jul 30, 2022 11:19 am
This has nothing to do with Android.

TinCanTech
OpenVPN Protagonist
Posts: 11137
Joined: Fri Jun 03, 2016 1:17 pm

Re: exception setting dhcp-option for proxy: tun_prop_dhcp_option_error: tun_builder_set_proxy_auto_config_url

Post by TinCanTech » Sat Jul 30, 2022 3:24 pm

But you are trying to --push a DHCP Option from a server, so it is doubly not supported.

And if you read the manual for --dhcp-option you could have saved everybody's time.

Post Reply