I use the dhcp-option PROXY_HTTP parameter to set the proxy on the opevpn client, and an error is reported:
Options error: Unrecognized option or missing or extra parameter(s) in client.conf:26: dhcp-option (2.4.6),
client
proto udp
remote myopenvpnsevice 1194
resolv-retry infinite
nobind
dev tun0
ca /etc/storage/openvpn/client/ca.crt
tls-auth /etc/storage/openvpn/client/ta.key 1
auth SHA1
cipher AES-256-GCM
compress lzo
auth-user-pass secret
persist-key
script-security 2
writepid /var/run/openvpn_cli.pid
up ovpnc.script
down ovpnc.script
ns-cert-type server
nice 0
verb 4
reneg-sec 36000
resolv-retry infinite
key-direction 1
dhcp-option PROXY_HTTPS 10.144.5.14 3128 # Options error: Unrecognized option or missing or extra parameter(s)
#push "dhcp-option PROXY_HTTPS 10.144.5.14 3128" # No error, but no effect
The startup command I use is:
/usr/sbin/openvpn --daemon openvpn-cli --cd /etc/openvpn/client --config client.conf
#Don't doubt this command, everything else works normally except dhcp-option
When I delete the dhcp-option PROXY_HTTP parameter, other configurations can work normally, but I now need dhcp-option PROXY_HTTP, and I add an error, how can I solve this problem?
In addition, I also tried to use push "dhcp-option PROXY_HTTP 10.144.5.14 3128", which did not work, because all the configurations are in client.conf, and push should not be recognized.
What should I do?