diff options
author | Michael Brown <mbrown@fensystems.co.uk> | 2022-05-28 22:57:23 +0100 |
---|---|---|
committer | Michael Brown <mbrown@fensystems.co.uk> | 2022-08-07 16:18:18 +0100 |
commit | 5c84d8ceba83b7f017f631a2fed1900b5926869a (patch) | |
tree | 707b6f8d757dfb6727c2599c22490d8c827229ad /net/openconnect | |
parent | 5dcb407a5cf033e20d4fd5e750d71521b7b24203 (diff) |
openconnect: Support use of a proxy server
Allow connection via a proxy server (required on some sites where
direct outbound HTTP(S) access is not permitted).
Signed-off-by: Michael Brown <mbrown@fensystems.co.uk>
Diffstat (limited to 'net/openconnect')
-rw-r--r-- | net/openconnect/README | 1 | ||||
-rwxr-xr-x | net/openconnect/files/openconnect.sh | 3 |
2 files changed, 4 insertions, 0 deletions
diff --git a/net/openconnect/README b/net/openconnect/README index e7c60d765..1a645773a 100644 --- a/net/openconnect/README +++ b/net/openconnect/README @@ -11,6 +11,7 @@ config interface 'MYVPN' option password 'secret' option serverhash 'AE7FF6A0426F0A0CD0A02EB9EC3C5066FAEB0B25' option defaultroute '0' + # option proxy 'http://proxy.example.com:8080' option authgroup 'DEFAULT' # usergroup option, if required by some servers # option usergroup 'USERGROUP' diff --git a/net/openconnect/files/openconnect.sh b/net/openconnect/files/openconnect.sh index 6a7d12275..449ce8bc3 100755 --- a/net/openconnect/files/openconnect.sh +++ b/net/openconnect/files/openconnect.sh @@ -32,6 +32,7 @@ proto_openconnect_init_config() { proto_config_add_string "token_script" proto_config_add_string "os" proto_config_add_string "csd_wrapper" + proto_config_add_string "proxy" proto_config_add_array 'form_entry:regex("[^:]+:[^=]+=.*")' no_device=1 available=1 @@ -57,6 +58,7 @@ proto_openconnect_setup() { password \ password2 \ port \ + proxy \ server \ serverhash \ token_mode \ @@ -131,6 +133,7 @@ proto_openconnect_setup() { [ -n "$token_secret" ] && append_args "--token-secret=$token_secret" [ -n "$os" ] && append_args "--os=$os" [ -n "$csd_wrapper" ] && [ -x "$csd_wrapper" ] && append_args "--csd-wrapper=$csd_wrapper" + [ -n "$proxy" ] && append_args "--proxy=$proxy" json_for_each_item proto_openconnect_add_form_entry form_entry |