diff options
author | Sergey Ponomarev <stokito@gmail.com> | 2023-12-22 23:27:54 +0200 |
---|---|---|
committer | Nuno Goncalves <nunojpg@gmail.com> | 2023-12-27 17:31:33 +0000 |
commit | d1d1bd60c94e3e23d3bec3895250e0cd812ff250 (patch) | |
tree | 08bd6315bd815ccc8fab1eaa826c1c6681067379 /net | |
parent | f54c3e326d4f9e549cb61054a562b203cb56cd51 (diff) |
sshtunnel: ProxyCommand option
The ProxyCommand may have spaces so it must be quoted.
So we must use the procd_append_param.
Currently the option is not supported by Dropbear.
But it has -J instead which in OpenSSH means ProxyJump.
So we can't use it to avoid conflict.
Signed-off-by: Sergey Ponomarev <stokito@gmail.com>
Diffstat (limited to 'net')
-rw-r--r-- | net/sshtunnel/files/sshtunnel.init | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/net/sshtunnel/files/sshtunnel.init b/net/sshtunnel/files/sshtunnel.init index 8b8f97f93..195cc7824 100644 --- a/net/sshtunnel/files/sshtunnel.init +++ b/net/sshtunnel/files/sshtunnel.init @@ -52,7 +52,8 @@ validate_server_section() { 'ServerAliveInterval:min(0)' \ 'StrictHostKeyChecking:or("yes", "no", "accept-new"):accept-new' \ 'TCPKeepAlive:or("yes", "no")' \ - 'VerifyHostKeyDNS:or("yes", "no")' + 'VerifyHostKeyDNS:or("yes", "no")' \ + 'ProxyCommand:string(1)' } validate_tunnelR_section() { @@ -198,6 +199,9 @@ load_server() { procd_open_instance "$server" procd_set_param command "$PROG" $ARGS + # ProxyCommand must be quoted + [ -n "$ProxyCommand" ] && procd_append_param command -o "ProxyCommand=$ProxyCommand" + procd_set_param stdout 1 procd_set_param stderr 1 procd_set_param respawn 0 "$retrydelay" 1 |