# Reconnect after a temporary network down time (in seconds)
#option reconnect_timeout '30'
+ # Shell command line for using a vpnc-compatible config script (default: "/lib/netifd/vpnc-script")
+ # option script '/lib/netifd/vpnc-script'
+
# For second factor auth:
# when a fixed 2FA password can be used
proto_config_add_string "csd_wrapper"
proto_config_add_string "proxy"
proto_config_add_array 'form_entry:regex("[^:]+:[^=]+=.*")'
+ proto_config_add_string "script"
no_device=1
available=1
}
token_secret \
usergroup \
username \
+ script \
ifname="vpn-$config"
[ -n "$port" ] && port=":$port"
[ -z "$uri" ] && uri="$server$port"
- append_args "$uri" -i "$ifname" --non-inter --syslog --script /lib/netifd/vpnc-script
+ append_args "$uri" -i "$ifname" --non-inter --syslog
+ [ -n "$script" ] && append_args --script "$script"
[ "$pfs" = 1 ] && append_args --pfs
[ "$no_dtls" = 1 ] && append_args --no-dtls
[ -n "$mtu" ] && append_args --mtu "$mtu"