Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

exception setting dhcp-option for proxy: tun_prop_dhcp_option_error: tun_builder_set_proxy_auto_config_url #230

Closed
yanggis opened this issue Jul 29, 2022 · 2 comments

Comments

@yanggis
Copy link

yanggis commented Jul 29, 2022

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

@ordex
Copy link
Member

ordex commented Jul 29, 2022

Hi @yanggis - your client is OpenVPN Connect for Android, so you should ask for support directly on https://support.openvpn.net
This repository is just for the OpenVPN3 library, but the dhcp-options are a client specific feature.

From my understanding the client does not implement a parser for this specific option and so you get an exception.

@yanggis
Copy link
Author

yanggis commented Jul 29, 2022

@ordex OK, noted. Thanks.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants