diff options
author | Jaymin Patel <jem.patel@gmail.com> | 2023-10-22 12:09:57 +0530 |
---|---|---|
committer | Jo-Philipp Wich <jo@mein.io> | 2023-11-10 13:16:34 +0100 |
commit | 9f652445355258497fd7f8c7f06dd75f58cd64ce (patch) | |
tree | 17a23de32f15cc4f11f12fdac3a8e5375c889942 /applications/luci-app-libreswan/htdocs/luci-static/resources/view/libreswan/proposals.js | |
parent | 5d3558f3f7eb96ea879e5d1c13a7baa1de5e7d25 (diff) |
luci-app-libreswan: Add LuCI for Libreswan
LuCI Support for IPSec VPN (Libreswan)
Signed-off-by: Jaymin Patel <jem.patel@gmail.com>
[fix '15h' label typo]
Signed-off-by: Jo-Philipp Wich <jo@mein.io>
Diffstat (limited to 'applications/luci-app-libreswan/htdocs/luci-static/resources/view/libreswan/proposals.js')
-rw-r--r-- | applications/luci-app-libreswan/htdocs/luci-static/resources/view/libreswan/proposals.js | 56 |
1 files changed, 56 insertions, 0 deletions
diff --git a/applications/luci-app-libreswan/htdocs/luci-static/resources/view/libreswan/proposals.js b/applications/luci-app-libreswan/htdocs/luci-static/resources/view/libreswan/proposals.js new file mode 100644 index 0000000000..8569e05caa --- /dev/null +++ b/applications/luci-app-libreswan/htdocs/luci-static/resources/view/libreswan/proposals.js @@ -0,0 +1,56 @@ +'use strict'; +'require view'; +'require ui'; +'require form'; + +return view.extend({ + render: function() { + var m, s, o; + + m = new form.Map('libreswan', _('IPSec Proposals')); + + s = m.section(form.GridSection, 'crypto_proposal'); + s.anonymous = false; + s.addremove = true; + s.nodescriptions = true; + s.addbtntitle = _('Add Proposal'); + + o = s.tab('general', _('General')); + + o = s.taboption('general', form.MultiValue, 'hash_algorithm', _('Hash Algorithm'), ('* = %s').format(_('Unsafe'))); + o.default = 'md5'; + o.value('md5', _('MD5*')); + o.value('sha1', _('SHA1*')); + o.value('sha256', _('SHA256')); + o.value('sha384', _('SHA384')); + o.value('sha512', _('SHA512')); + + o = s.taboption('general', form.MultiValue, 'encryption_algorithm', _('Encryption Method'), ('* = %s').format(_('Unsafe'))); + o.default = 'aes'; + o.value('3des', _('3DES*')) + o.value('aes', _('AES')) + o.value('aes_ctr', _('AES_CTR')); + o.value('aes_cbc', _('AES_CBC')); + o.value('aes128', _('AES128')); + o.value('aes192', _('AES192')); + o.value('aes256', _('AES256')); + o.value('camellia_cbc', _('CAMELLIA_CBC')); + + o = s.taboption('general', form.MultiValue, 'dh_group', _('DH Group'), + ('* = %s <a href="%s">RFC8247</a>.').format(_('Unsafe, See'), 'https://www.rfc-editor.org/rfc/rfc8247#section-2.4')); + o.default = 'modp1536'; + o.value('modp1536', _('DH Group 5*')); + o.value('modp2048', _('DH Group 14')); + o.value('modp3072', _('DH Group 15')); + o.value('modp4096', _('DH Group 16')); + o.value('modp6144', _('DH Group 17')); + o.value('modp8192', _('DH Group 18')); + o.value('dh19', _('DH Group 19')); + o.value('dh20', _('DH Group 20')); + o.value('dh21', _('DH Group 21')); + o.value('dh22', _('DH Group 22*')); + o.value('dh31', _('DH Group 31')); + + return m.render(); + } +}); |