Files
lemana-vpn/templates/openconnect-lite-config.toml

33 lines
902 B
TOML

on_disconnect = "sudo /usr/local/sbin/lemana-vpn-dns-cleanup >/dev/null 2>&1 || true"
[default_profile]
address = "vpn.lemanapro.ru"
user_group = ""
name = "Default-K"
[credentials]
username = "{{USERNAME}}"
[auto_fill_rules]
[[auto_fill_rules."https://employee.auth.lemanapro.ru/*"]]
selector = "span#input-error"
action = "stop"
[[auto_fill_rules."https://employee.auth.lemanapro.ru/*"]]
selector = "input#username"
fill = "username"
[[auto_fill_rules."https://employee.auth.lemanapro.ru/*"]]
selector = "input#password"
fill = "password"
[[auto_fill_rules."https://employee.auth.lemanapro.ru/*"]]
selector = "input#otp, input[name=otp], form input:not(#username):not(#password):not([type=hidden]):not([type=submit]):not([type=button])"
fill = "totp"
[[auto_fill_rules."https://employee.auth.lemanapro.ru/*"]]
selector = "input[type=submit], button[type=submit], #kc-login"
action = "click"