Merge pull request #4844 from oofnikj/4510_backport_gre

luci-proto-gre: backport to 19.07
This commit is contained in:
Florian Eckert 2021-03-11 08:04:23 +01:00 committed by GitHub
commit b4025cf242
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
35 changed files with 881 additions and 2 deletions

View file

@ -2759,6 +2759,20 @@ msgstr ""
msgid "Key #%d"
msgstr ""
#: protocols/luci-proto-gre/htdocs/luci-static/resources/protocol/gre.js:92
#: protocols/luci-proto-gre/htdocs/luci-static/resources/protocol/gretap.js:97
#: protocols/luci-proto-gre/htdocs/luci-static/resources/protocol/grev6.js:94
#: protocols/luci-proto-gre/htdocs/luci-static/resources/protocol/grev6tap.js:99
msgid "Key for incoming packets (optional)."
msgstr ""
#: protocols/luci-proto-gre/htdocs/luci-static/resources/protocol/gre.js:96
#: protocols/luci-proto-gre/htdocs/luci-static/resources/protocol/gretap.js:101
#: protocols/luci-proto-gre/htdocs/luci-static/resources/protocol/grev6.js:98
#: protocols/luci-proto-gre/htdocs/luci-static/resources/protocol/grev6tap.js:103
msgid "Key for outgoing packets (optional)."
msgstr ""
#: modules/luci-mod-status/htdocs/luci-static/resources/view/status/processes.js:54
msgid "Kill"
msgstr ""

View file

@ -2822,6 +2822,20 @@ msgstr "Clau"
msgid "Key #%d"
msgstr "Clau #%d"
#: protocols/luci-proto-gre/htdocs/luci-static/resources/protocol/gre.js:92
#: protocols/luci-proto-gre/htdocs/luci-static/resources/protocol/gretap.js:97
#: protocols/luci-proto-gre/htdocs/luci-static/resources/protocol/grev6.js:94
#: protocols/luci-proto-gre/htdocs/luci-static/resources/protocol/grev6tap.js:99
msgid "Key for incoming packets (optional)."
msgstr ""
#: protocols/luci-proto-gre/htdocs/luci-static/resources/protocol/gre.js:96
#: protocols/luci-proto-gre/htdocs/luci-static/resources/protocol/gretap.js:101
#: protocols/luci-proto-gre/htdocs/luci-static/resources/protocol/grev6.js:98
#: protocols/luci-proto-gre/htdocs/luci-static/resources/protocol/grev6tap.js:103
msgid "Key for outgoing packets (optional)."
msgstr ""
#: modules/luci-mod-status/htdocs/luci-static/resources/view/status/processes.js:54
msgid "Kill"
msgstr "Mata"

View file

@ -2874,6 +2874,20 @@ msgstr "Klíč"
msgid "Key #%d"
msgstr "Klíč #%d"
#: protocols/luci-proto-gre/htdocs/luci-static/resources/protocol/gre.js:92
#: protocols/luci-proto-gre/htdocs/luci-static/resources/protocol/gretap.js:97
#: protocols/luci-proto-gre/htdocs/luci-static/resources/protocol/grev6.js:94
#: protocols/luci-proto-gre/htdocs/luci-static/resources/protocol/grev6tap.js:99
msgid "Key for incoming packets (optional)."
msgstr ""
#: protocols/luci-proto-gre/htdocs/luci-static/resources/protocol/gre.js:96
#: protocols/luci-proto-gre/htdocs/luci-static/resources/protocol/gretap.js:101
#: protocols/luci-proto-gre/htdocs/luci-static/resources/protocol/grev6.js:98
#: protocols/luci-proto-gre/htdocs/luci-static/resources/protocol/grev6tap.js:103
msgid "Key for outgoing packets (optional)."
msgstr ""
#: modules/luci-mod-status/htdocs/luci-static/resources/view/status/processes.js:54
msgid "Kill"
msgstr "Zabít"

View file

@ -2907,6 +2907,20 @@ msgstr "Schlüssel"
msgid "Key #%d"
msgstr "Schlüssel Nr. %d"
#: protocols/luci-proto-gre/htdocs/luci-static/resources/protocol/gre.js:92
#: protocols/luci-proto-gre/htdocs/luci-static/resources/protocol/gretap.js:97
#: protocols/luci-proto-gre/htdocs/luci-static/resources/protocol/grev6.js:94
#: protocols/luci-proto-gre/htdocs/luci-static/resources/protocol/grev6tap.js:99
msgid "Key for incoming packets (optional)."
msgstr "Schlüssel für eingehende Pakete (optional)."
#: protocols/luci-proto-gre/htdocs/luci-static/resources/protocol/gre.js:96
#: protocols/luci-proto-gre/htdocs/luci-static/resources/protocol/gretap.js:101
#: protocols/luci-proto-gre/htdocs/luci-static/resources/protocol/grev6.js:98
#: protocols/luci-proto-gre/htdocs/luci-static/resources/protocol/grev6tap.js:103
msgid "Key for outgoing packets (optional)."
msgstr "Schlüssel für ausgehende Pakete (optional)."
#: modules/luci-mod-status/htdocs/luci-static/resources/view/status/processes.js:54
msgid "Kill"
msgstr "Töten"

View file

@ -2839,6 +2839,20 @@ msgstr "Κλειδί"
msgid "Key #%d"
msgstr "Κλειδί #%d"
#: protocols/luci-proto-gre/htdocs/luci-static/resources/protocol/gre.js:92
#: protocols/luci-proto-gre/htdocs/luci-static/resources/protocol/gretap.js:97
#: protocols/luci-proto-gre/htdocs/luci-static/resources/protocol/grev6.js:94
#: protocols/luci-proto-gre/htdocs/luci-static/resources/protocol/grev6tap.js:99
msgid "Key for incoming packets (optional)."
msgstr ""
#: protocols/luci-proto-gre/htdocs/luci-static/resources/protocol/gre.js:96
#: protocols/luci-proto-gre/htdocs/luci-static/resources/protocol/gretap.js:101
#: protocols/luci-proto-gre/htdocs/luci-static/resources/protocol/grev6.js:98
#: protocols/luci-proto-gre/htdocs/luci-static/resources/protocol/grev6tap.js:103
msgid "Key for outgoing packets (optional)."
msgstr ""
#: modules/luci-mod-status/htdocs/luci-static/resources/view/status/processes.js:54
msgid "Kill"
msgstr "Σκότωμα"

View file

@ -2810,6 +2810,20 @@ msgstr "Key"
msgid "Key #%d"
msgstr ""
#: protocols/luci-proto-gre/htdocs/luci-static/resources/protocol/gre.js:92
#: protocols/luci-proto-gre/htdocs/luci-static/resources/protocol/gretap.js:97
#: protocols/luci-proto-gre/htdocs/luci-static/resources/protocol/grev6.js:94
#: protocols/luci-proto-gre/htdocs/luci-static/resources/protocol/grev6tap.js:99
msgid "Key for incoming packets (optional)."
msgstr ""
#: protocols/luci-proto-gre/htdocs/luci-static/resources/protocol/gre.js:96
#: protocols/luci-proto-gre/htdocs/luci-static/resources/protocol/gretap.js:101
#: protocols/luci-proto-gre/htdocs/luci-static/resources/protocol/grev6.js:98
#: protocols/luci-proto-gre/htdocs/luci-static/resources/protocol/grev6tap.js:103
msgid "Key for outgoing packets (optional)."
msgstr ""
#: modules/luci-mod-status/htdocs/luci-static/resources/view/status/processes.js:54
msgid "Kill"
msgstr "Kill"

View file

@ -2902,6 +2902,20 @@ msgstr "Clave"
msgid "Key #%d"
msgstr "Clave #%d"
#: protocols/luci-proto-gre/htdocs/luci-static/resources/protocol/gre.js:92
#: protocols/luci-proto-gre/htdocs/luci-static/resources/protocol/gretap.js:97
#: protocols/luci-proto-gre/htdocs/luci-static/resources/protocol/grev6.js:94
#: protocols/luci-proto-gre/htdocs/luci-static/resources/protocol/grev6tap.js:99
msgid "Key for incoming packets (optional)."
msgstr "Clave para paquetes entrantes (opcional)."
#: protocols/luci-proto-gre/htdocs/luci-static/resources/protocol/gre.js:96
#: protocols/luci-proto-gre/htdocs/luci-static/resources/protocol/gretap.js:101
#: protocols/luci-proto-gre/htdocs/luci-static/resources/protocol/grev6.js:98
#: protocols/luci-proto-gre/htdocs/luci-static/resources/protocol/grev6tap.js:103
msgid "Key for outgoing packets (optional)."
msgstr "Clave para paquetes salientes (opcional)."
#: modules/luci-mod-status/htdocs/luci-static/resources/view/status/processes.js:54
msgid "Kill"
msgstr "Matar"

View file

@ -2919,6 +2919,20 @@ msgstr "Clé"
msgid "Key #%d"
msgstr "Clé n° %d"
#: protocols/luci-proto-gre/htdocs/luci-static/resources/protocol/gre.js:92
#: protocols/luci-proto-gre/htdocs/luci-static/resources/protocol/gretap.js:97
#: protocols/luci-proto-gre/htdocs/luci-static/resources/protocol/grev6.js:94
#: protocols/luci-proto-gre/htdocs/luci-static/resources/protocol/grev6tap.js:99
msgid "Key for incoming packets (optional)."
msgstr "Clé pour les paquets entrants (optionnel)."
#: protocols/luci-proto-gre/htdocs/luci-static/resources/protocol/gre.js:96
#: protocols/luci-proto-gre/htdocs/luci-static/resources/protocol/gretap.js:101
#: protocols/luci-proto-gre/htdocs/luci-static/resources/protocol/grev6.js:98
#: protocols/luci-proto-gre/htdocs/luci-static/resources/protocol/grev6tap.js:103
msgid "Key for outgoing packets (optional)."
msgstr "Clé pour les paquets sortants (optionnel)."
#: modules/luci-mod-status/htdocs/luci-static/resources/view/status/processes.js:54
msgid "Kill"
msgstr "Forcer l'arrêt"

View file

@ -2784,6 +2784,20 @@ msgstr ""
msgid "Key #%d"
msgstr ""
#: protocols/luci-proto-gre/htdocs/luci-static/resources/protocol/gre.js:92
#: protocols/luci-proto-gre/htdocs/luci-static/resources/protocol/gretap.js:97
#: protocols/luci-proto-gre/htdocs/luci-static/resources/protocol/grev6.js:94
#: protocols/luci-proto-gre/htdocs/luci-static/resources/protocol/grev6tap.js:99
msgid "Key for incoming packets (optional)."
msgstr ""
#: protocols/luci-proto-gre/htdocs/luci-static/resources/protocol/gre.js:96
#: protocols/luci-proto-gre/htdocs/luci-static/resources/protocol/gretap.js:101
#: protocols/luci-proto-gre/htdocs/luci-static/resources/protocol/grev6.js:98
#: protocols/luci-proto-gre/htdocs/luci-static/resources/protocol/grev6tap.js:103
msgid "Key for outgoing packets (optional)."
msgstr ""
#: modules/luci-mod-status/htdocs/luci-static/resources/view/status/processes.js:54
msgid "Kill"
msgstr ""

View file

@ -2761,6 +2761,20 @@ msgstr ""
msgid "Key #%d"
msgstr ""
#: protocols/luci-proto-gre/htdocs/luci-static/resources/protocol/gre.js:92
#: protocols/luci-proto-gre/htdocs/luci-static/resources/protocol/gretap.js:97
#: protocols/luci-proto-gre/htdocs/luci-static/resources/protocol/grev6.js:94
#: protocols/luci-proto-gre/htdocs/luci-static/resources/protocol/grev6tap.js:99
msgid "Key for incoming packets (optional)."
msgstr ""
#: protocols/luci-proto-gre/htdocs/luci-static/resources/protocol/gre.js:96
#: protocols/luci-proto-gre/htdocs/luci-static/resources/protocol/gretap.js:101
#: protocols/luci-proto-gre/htdocs/luci-static/resources/protocol/grev6.js:98
#: protocols/luci-proto-gre/htdocs/luci-static/resources/protocol/grev6tap.js:103
msgid "Key for outgoing packets (optional)."
msgstr ""
#: modules/luci-mod-status/htdocs/luci-static/resources/view/status/processes.js:54
msgid "Kill"
msgstr ""

View file

@ -2905,6 +2905,20 @@ msgstr "Kulcs"
msgid "Key #%d"
msgstr "%d. kulcs"
#: protocols/luci-proto-gre/htdocs/luci-static/resources/protocol/gre.js:92
#: protocols/luci-proto-gre/htdocs/luci-static/resources/protocol/gretap.js:97
#: protocols/luci-proto-gre/htdocs/luci-static/resources/protocol/grev6.js:94
#: protocols/luci-proto-gre/htdocs/luci-static/resources/protocol/grev6tap.js:99
msgid "Key for incoming packets (optional)."
msgstr ""
#: protocols/luci-proto-gre/htdocs/luci-static/resources/protocol/gre.js:96
#: protocols/luci-proto-gre/htdocs/luci-static/resources/protocol/gretap.js:101
#: protocols/luci-proto-gre/htdocs/luci-static/resources/protocol/grev6.js:98
#: protocols/luci-proto-gre/htdocs/luci-static/resources/protocol/grev6tap.js:103
msgid "Key for outgoing packets (optional)."
msgstr ""
#: modules/luci-mod-status/htdocs/luci-static/resources/view/status/processes.js:54
msgid "Kill"
msgstr "Kilövés"

View file

@ -2842,6 +2842,20 @@ msgstr "Chiave"
msgid "Key #%d"
msgstr "Chiave #%d"
#: protocols/luci-proto-gre/htdocs/luci-static/resources/protocol/gre.js:92
#: protocols/luci-proto-gre/htdocs/luci-static/resources/protocol/gretap.js:97
#: protocols/luci-proto-gre/htdocs/luci-static/resources/protocol/grev6.js:94
#: protocols/luci-proto-gre/htdocs/luci-static/resources/protocol/grev6tap.js:99
msgid "Key for incoming packets (optional)."
msgstr ""
#: protocols/luci-proto-gre/htdocs/luci-static/resources/protocol/gre.js:96
#: protocols/luci-proto-gre/htdocs/luci-static/resources/protocol/gretap.js:101
#: protocols/luci-proto-gre/htdocs/luci-static/resources/protocol/grev6.js:98
#: protocols/luci-proto-gre/htdocs/luci-static/resources/protocol/grev6tap.js:103
msgid "Key for outgoing packets (optional)."
msgstr ""
#: modules/luci-mod-status/htdocs/luci-static/resources/view/status/processes.js:54
msgid "Kill"
msgstr "Uccidi"

View file

@ -2871,7 +2871,21 @@ msgstr "キー"
#: modules/luci-mod-network/htdocs/luci-static/resources/view/network/wireless.js:1385
#: modules/luci-mod-network/htdocs/luci-static/resources/view/network/wireless.js:1397
msgid "Key #%d"
msgstr "キー#%d"
msgstr "キー #%d"
#: protocols/luci-proto-gre/htdocs/luci-static/resources/protocol/gre.js:92
#: protocols/luci-proto-gre/htdocs/luci-static/resources/protocol/gretap.js:97
#: protocols/luci-proto-gre/htdocs/luci-static/resources/protocol/grev6.js:94
#: protocols/luci-proto-gre/htdocs/luci-static/resources/protocol/grev6tap.js:99
msgid "Key for incoming packets (optional)."
msgstr ""
#: protocols/luci-proto-gre/htdocs/luci-static/resources/protocol/gre.js:96
#: protocols/luci-proto-gre/htdocs/luci-static/resources/protocol/gretap.js:101
#: protocols/luci-proto-gre/htdocs/luci-static/resources/protocol/grev6.js:98
#: protocols/luci-proto-gre/htdocs/luci-static/resources/protocol/grev6tap.js:103
msgid "Key for outgoing packets (optional)."
msgstr ""
#: modules/luci-mod-status/htdocs/luci-static/resources/view/status/processes.js:54
msgid "Kill"

View file

@ -2815,6 +2815,20 @@ msgstr ""
msgid "Key #%d"
msgstr ""
#: protocols/luci-proto-gre/htdocs/luci-static/resources/protocol/gre.js:92
#: protocols/luci-proto-gre/htdocs/luci-static/resources/protocol/gretap.js:97
#: protocols/luci-proto-gre/htdocs/luci-static/resources/protocol/grev6.js:94
#: protocols/luci-proto-gre/htdocs/luci-static/resources/protocol/grev6tap.js:99
msgid "Key for incoming packets (optional)."
msgstr ""
#: protocols/luci-proto-gre/htdocs/luci-static/resources/protocol/gre.js:96
#: protocols/luci-proto-gre/htdocs/luci-static/resources/protocol/gretap.js:101
#: protocols/luci-proto-gre/htdocs/luci-static/resources/protocol/grev6.js:98
#: protocols/luci-proto-gre/htdocs/luci-static/resources/protocol/grev6tap.js:103
msgid "Key for outgoing packets (optional)."
msgstr ""
#: modules/luci-mod-status/htdocs/luci-static/resources/view/status/processes.js:54
msgid "Kill"
msgstr "강제 종료"

View file

@ -2759,6 +2759,20 @@ msgstr ""
msgid "Key #%d"
msgstr ""
#: protocols/luci-proto-gre/htdocs/luci-static/resources/protocol/gre.js:92
#: protocols/luci-proto-gre/htdocs/luci-static/resources/protocol/gretap.js:97
#: protocols/luci-proto-gre/htdocs/luci-static/resources/protocol/grev6.js:94
#: protocols/luci-proto-gre/htdocs/luci-static/resources/protocol/grev6tap.js:99
msgid "Key for incoming packets (optional)."
msgstr ""
#: protocols/luci-proto-gre/htdocs/luci-static/resources/protocol/gre.js:96
#: protocols/luci-proto-gre/htdocs/luci-static/resources/protocol/gretap.js:101
#: protocols/luci-proto-gre/htdocs/luci-static/resources/protocol/grev6.js:98
#: protocols/luci-proto-gre/htdocs/luci-static/resources/protocol/grev6tap.js:103
msgid "Key for outgoing packets (optional)."
msgstr ""
#: modules/luci-mod-status/htdocs/luci-static/resources/view/status/processes.js:54
msgid "Kill"
msgstr ""

View file

@ -2780,6 +2780,20 @@ msgstr "Kunci"
msgid "Key #%d"
msgstr ""
#: protocols/luci-proto-gre/htdocs/luci-static/resources/protocol/gre.js:92
#: protocols/luci-proto-gre/htdocs/luci-static/resources/protocol/gretap.js:97
#: protocols/luci-proto-gre/htdocs/luci-static/resources/protocol/grev6.js:94
#: protocols/luci-proto-gre/htdocs/luci-static/resources/protocol/grev6tap.js:99
msgid "Key for incoming packets (optional)."
msgstr ""
#: protocols/luci-proto-gre/htdocs/luci-static/resources/protocol/gre.js:96
#: protocols/luci-proto-gre/htdocs/luci-static/resources/protocol/gretap.js:101
#: protocols/luci-proto-gre/htdocs/luci-static/resources/protocol/grev6.js:98
#: protocols/luci-proto-gre/htdocs/luci-static/resources/protocol/grev6tap.js:103
msgid "Key for outgoing packets (optional)."
msgstr ""
#: modules/luci-mod-status/htdocs/luci-static/resources/view/status/processes.js:54
msgid "Kill"
msgstr "Tamatkan"

View file

@ -2818,6 +2818,20 @@ msgstr "Nøkkel"
msgid "Key #%d"
msgstr "Nøkkel #%d"
#: protocols/luci-proto-gre/htdocs/luci-static/resources/protocol/gre.js:92
#: protocols/luci-proto-gre/htdocs/luci-static/resources/protocol/gretap.js:97
#: protocols/luci-proto-gre/htdocs/luci-static/resources/protocol/grev6.js:94
#: protocols/luci-proto-gre/htdocs/luci-static/resources/protocol/grev6tap.js:99
msgid "Key for incoming packets (optional)."
msgstr ""
#: protocols/luci-proto-gre/htdocs/luci-static/resources/protocol/gre.js:96
#: protocols/luci-proto-gre/htdocs/luci-static/resources/protocol/gretap.js:101
#: protocols/luci-proto-gre/htdocs/luci-static/resources/protocol/grev6.js:98
#: protocols/luci-proto-gre/htdocs/luci-static/resources/protocol/grev6tap.js:103
msgid "Key for outgoing packets (optional)."
msgstr ""
#: modules/luci-mod-status/htdocs/luci-static/resources/view/status/processes.js:54
msgid "Kill"
msgstr "Drep"

View file

@ -2890,6 +2890,20 @@ msgstr "Klucz"
msgid "Key #%d"
msgstr "Klucz #%d"
#: protocols/luci-proto-gre/htdocs/luci-static/resources/protocol/gre.js:92
#: protocols/luci-proto-gre/htdocs/luci-static/resources/protocol/gretap.js:97
#: protocols/luci-proto-gre/htdocs/luci-static/resources/protocol/grev6.js:94
#: protocols/luci-proto-gre/htdocs/luci-static/resources/protocol/grev6tap.js:99
msgid "Key for incoming packets (optional)."
msgstr "Klucz do pakietów przychodzących (opcjonalnie)."
#: protocols/luci-proto-gre/htdocs/luci-static/resources/protocol/gre.js:96
#: protocols/luci-proto-gre/htdocs/luci-static/resources/protocol/gretap.js:101
#: protocols/luci-proto-gre/htdocs/luci-static/resources/protocol/grev6.js:98
#: protocols/luci-proto-gre/htdocs/luci-static/resources/protocol/grev6tap.js:103
msgid "Key for outgoing packets (optional)."
msgstr "Klucz do pakietów wychodzących (opcjonalnie)."
#: modules/luci-mod-status/htdocs/luci-static/resources/view/status/processes.js:54
msgid "Kill"
msgstr "Zabij"

View file

@ -2908,6 +2908,20 @@ msgstr "Chave"
msgid "Key #%d"
msgstr "Chave #%d"
#: protocols/luci-proto-gre/htdocs/luci-static/resources/protocol/gre.js:92
#: protocols/luci-proto-gre/htdocs/luci-static/resources/protocol/gretap.js:97
#: protocols/luci-proto-gre/htdocs/luci-static/resources/protocol/grev6.js:94
#: protocols/luci-proto-gre/htdocs/luci-static/resources/protocol/grev6tap.js:99
msgid "Key for incoming packets (optional)."
msgstr "Chave para os pacotes da entrada (opcional)."
#: protocols/luci-proto-gre/htdocs/luci-static/resources/protocol/gre.js:96
#: protocols/luci-proto-gre/htdocs/luci-static/resources/protocol/gretap.js:101
#: protocols/luci-proto-gre/htdocs/luci-static/resources/protocol/grev6.js:98
#: protocols/luci-proto-gre/htdocs/luci-static/resources/protocol/grev6tap.js:103
msgid "Key for outgoing packets (optional)."
msgstr "Chave para os pacotes da saída (optional)."
#: modules/luci-mod-status/htdocs/luci-static/resources/view/status/processes.js:54
msgid "Kill"
msgstr "Matar"

View file

@ -2945,6 +2945,20 @@ msgstr "Chave"
msgid "Key #%d"
msgstr "Chave #%d"
#: protocols/luci-proto-gre/htdocs/luci-static/resources/protocol/gre.js:92
#: protocols/luci-proto-gre/htdocs/luci-static/resources/protocol/gretap.js:97
#: protocols/luci-proto-gre/htdocs/luci-static/resources/protocol/grev6.js:94
#: protocols/luci-proto-gre/htdocs/luci-static/resources/protocol/grev6tap.js:99
msgid "Key for incoming packets (optional)."
msgstr "Chave para os pacotes da entrada (opcional)."
#: protocols/luci-proto-gre/htdocs/luci-static/resources/protocol/gre.js:96
#: protocols/luci-proto-gre/htdocs/luci-static/resources/protocol/gretap.js:101
#: protocols/luci-proto-gre/htdocs/luci-static/resources/protocol/grev6.js:98
#: protocols/luci-proto-gre/htdocs/luci-static/resources/protocol/grev6tap.js:103
msgid "Key for outgoing packets (optional)."
msgstr "Chave para os pacotes da saída (optional)."
#: modules/luci-mod-status/htdocs/luci-static/resources/view/status/processes.js:54
msgid "Kill"
msgstr "Matar"

View file

@ -2793,6 +2793,20 @@ msgstr ""
msgid "Key #%d"
msgstr ""
#: protocols/luci-proto-gre/htdocs/luci-static/resources/protocol/gre.js:92
#: protocols/luci-proto-gre/htdocs/luci-static/resources/protocol/gretap.js:97
#: protocols/luci-proto-gre/htdocs/luci-static/resources/protocol/grev6.js:94
#: protocols/luci-proto-gre/htdocs/luci-static/resources/protocol/grev6tap.js:99
msgid "Key for incoming packets (optional)."
msgstr ""
#: protocols/luci-proto-gre/htdocs/luci-static/resources/protocol/gre.js:96
#: protocols/luci-proto-gre/htdocs/luci-static/resources/protocol/gretap.js:101
#: protocols/luci-proto-gre/htdocs/luci-static/resources/protocol/grev6.js:98
#: protocols/luci-proto-gre/htdocs/luci-static/resources/protocol/grev6tap.js:103
msgid "Key for outgoing packets (optional)."
msgstr ""
#: modules/luci-mod-status/htdocs/luci-static/resources/view/status/processes.js:54
msgid "Kill"
msgstr "Opreste"

View file

@ -2901,6 +2901,20 @@ msgstr "Пароль (ключ)"
msgid "Key #%d"
msgstr "Ключ №%d"
#: protocols/luci-proto-gre/htdocs/luci-static/resources/protocol/gre.js:92
#: protocols/luci-proto-gre/htdocs/luci-static/resources/protocol/gretap.js:97
#: protocols/luci-proto-gre/htdocs/luci-static/resources/protocol/grev6.js:94
#: protocols/luci-proto-gre/htdocs/luci-static/resources/protocol/grev6tap.js:99
msgid "Key for incoming packets (optional)."
msgstr "Ключ для входящих пакетов (опционально)."
#: protocols/luci-proto-gre/htdocs/luci-static/resources/protocol/gre.js:96
#: protocols/luci-proto-gre/htdocs/luci-static/resources/protocol/gretap.js:101
#: protocols/luci-proto-gre/htdocs/luci-static/resources/protocol/grev6.js:98
#: protocols/luci-proto-gre/htdocs/luci-static/resources/protocol/grev6tap.js:103
msgid "Key for outgoing packets (optional)."
msgstr "Ключ для исходящих пакетов (опционально)."
#: modules/luci-mod-status/htdocs/luci-static/resources/view/status/processes.js:54
msgid "Kill"
msgstr "Принудительно завершить"

View file

@ -2803,6 +2803,20 @@ msgstr "Kľúč"
msgid "Key #%d"
msgstr "Kľúč #%d"
#: protocols/luci-proto-gre/htdocs/luci-static/resources/protocol/gre.js:92
#: protocols/luci-proto-gre/htdocs/luci-static/resources/protocol/gretap.js:97
#: protocols/luci-proto-gre/htdocs/luci-static/resources/protocol/grev6.js:94
#: protocols/luci-proto-gre/htdocs/luci-static/resources/protocol/grev6tap.js:99
msgid "Key for incoming packets (optional)."
msgstr ""
#: protocols/luci-proto-gre/htdocs/luci-static/resources/protocol/gre.js:96
#: protocols/luci-proto-gre/htdocs/luci-static/resources/protocol/gretap.js:101
#: protocols/luci-proto-gre/htdocs/luci-static/resources/protocol/grev6.js:98
#: protocols/luci-proto-gre/htdocs/luci-static/resources/protocol/grev6tap.js:103
msgid "Key for outgoing packets (optional)."
msgstr ""
#: modules/luci-mod-status/htdocs/luci-static/resources/view/status/processes.js:54
msgid "Kill"
msgstr "Ukončiť"

View file

@ -2781,6 +2781,20 @@ msgstr "Nyckel"
msgid "Key #%d"
msgstr "Nyckel #%d"
#: protocols/luci-proto-gre/htdocs/luci-static/resources/protocol/gre.js:92
#: protocols/luci-proto-gre/htdocs/luci-static/resources/protocol/gretap.js:97
#: protocols/luci-proto-gre/htdocs/luci-static/resources/protocol/grev6.js:94
#: protocols/luci-proto-gre/htdocs/luci-static/resources/protocol/grev6tap.js:99
msgid "Key for incoming packets (optional)."
msgstr ""
#: protocols/luci-proto-gre/htdocs/luci-static/resources/protocol/gre.js:96
#: protocols/luci-proto-gre/htdocs/luci-static/resources/protocol/gretap.js:101
#: protocols/luci-proto-gre/htdocs/luci-static/resources/protocol/grev6.js:98
#: protocols/luci-proto-gre/htdocs/luci-static/resources/protocol/grev6tap.js:103
msgid "Key for outgoing packets (optional)."
msgstr ""
#: modules/luci-mod-status/htdocs/luci-static/resources/view/status/processes.js:54
msgid "Kill"
msgstr "Döda"

View file

@ -2750,6 +2750,20 @@ msgstr ""
msgid "Key #%d"
msgstr ""
#: protocols/luci-proto-gre/htdocs/luci-static/resources/protocol/gre.js:92
#: protocols/luci-proto-gre/htdocs/luci-static/resources/protocol/gretap.js:97
#: protocols/luci-proto-gre/htdocs/luci-static/resources/protocol/grev6.js:94
#: protocols/luci-proto-gre/htdocs/luci-static/resources/protocol/grev6tap.js:99
msgid "Key for incoming packets (optional)."
msgstr ""
#: protocols/luci-proto-gre/htdocs/luci-static/resources/protocol/gre.js:96
#: protocols/luci-proto-gre/htdocs/luci-static/resources/protocol/gretap.js:101
#: protocols/luci-proto-gre/htdocs/luci-static/resources/protocol/grev6.js:98
#: protocols/luci-proto-gre/htdocs/luci-static/resources/protocol/grev6tap.js:103
msgid "Key for outgoing packets (optional)."
msgstr ""
#: modules/luci-mod-status/htdocs/luci-static/resources/view/status/processes.js:54
msgid "Kill"
msgstr ""

View file

@ -2802,6 +2802,20 @@ msgstr ""
msgid "Key #%d"
msgstr ""
#: protocols/luci-proto-gre/htdocs/luci-static/resources/protocol/gre.js:92
#: protocols/luci-proto-gre/htdocs/luci-static/resources/protocol/gretap.js:97
#: protocols/luci-proto-gre/htdocs/luci-static/resources/protocol/grev6.js:94
#: protocols/luci-proto-gre/htdocs/luci-static/resources/protocol/grev6tap.js:99
msgid "Key for incoming packets (optional)."
msgstr ""
#: protocols/luci-proto-gre/htdocs/luci-static/resources/protocol/gre.js:96
#: protocols/luci-proto-gre/htdocs/luci-static/resources/protocol/gretap.js:101
#: protocols/luci-proto-gre/htdocs/luci-static/resources/protocol/grev6.js:98
#: protocols/luci-proto-gre/htdocs/luci-static/resources/protocol/grev6tap.js:103
msgid "Key for outgoing packets (optional)."
msgstr ""
#: modules/luci-mod-status/htdocs/luci-static/resources/view/status/processes.js:54
msgid "Kill"
msgstr ""

View file

@ -2920,6 +2920,20 @@ msgstr "Ключ"
msgid "Key #%d"
msgstr "Ключ #%d"
#: protocols/luci-proto-gre/htdocs/luci-static/resources/protocol/gre.js:92
#: protocols/luci-proto-gre/htdocs/luci-static/resources/protocol/gretap.js:97
#: protocols/luci-proto-gre/htdocs/luci-static/resources/protocol/grev6.js:94
#: protocols/luci-proto-gre/htdocs/luci-static/resources/protocol/grev6tap.js:99
msgid "Key for incoming packets (optional)."
msgstr ""
#: protocols/luci-proto-gre/htdocs/luci-static/resources/protocol/gre.js:96
#: protocols/luci-proto-gre/htdocs/luci-static/resources/protocol/gretap.js:101
#: protocols/luci-proto-gre/htdocs/luci-static/resources/protocol/grev6.js:98
#: protocols/luci-proto-gre/htdocs/luci-static/resources/protocol/grev6tap.js:103
msgid "Key for outgoing packets (optional)."
msgstr ""
#: modules/luci-mod-status/htdocs/luci-static/resources/view/status/processes.js:54
msgid "Kill"
msgstr "Знищити"

View file

@ -2859,6 +2859,20 @@ msgstr "Phím "
msgid "Key #%d"
msgstr "Phím %d"
#: protocols/luci-proto-gre/htdocs/luci-static/resources/protocol/gre.js:92
#: protocols/luci-proto-gre/htdocs/luci-static/resources/protocol/gretap.js:97
#: protocols/luci-proto-gre/htdocs/luci-static/resources/protocol/grev6.js:94
#: protocols/luci-proto-gre/htdocs/luci-static/resources/protocol/grev6tap.js:99
msgid "Key for incoming packets (optional)."
msgstr ""
#: protocols/luci-proto-gre/htdocs/luci-static/resources/protocol/gre.js:96
#: protocols/luci-proto-gre/htdocs/luci-static/resources/protocol/gretap.js:101
#: protocols/luci-proto-gre/htdocs/luci-static/resources/protocol/grev6.js:98
#: protocols/luci-proto-gre/htdocs/luci-static/resources/protocol/grev6tap.js:103
msgid "Key for outgoing packets (optional)."
msgstr ""
#: modules/luci-mod-status/htdocs/luci-static/resources/view/status/processes.js:54
msgid "Kill"
msgstr "Hủy"

View file

@ -2811,6 +2811,20 @@ msgstr "密钥"
msgid "Key #%d"
msgstr "密码 #%d"
#: protocols/luci-proto-gre/htdocs/luci-static/resources/protocol/gre.js:92
#: protocols/luci-proto-gre/htdocs/luci-static/resources/protocol/gretap.js:97
#: protocols/luci-proto-gre/htdocs/luci-static/resources/protocol/grev6.js:94
#: protocols/luci-proto-gre/htdocs/luci-static/resources/protocol/grev6tap.js:99
msgid "Key for incoming packets (optional)."
msgstr ""
#: protocols/luci-proto-gre/htdocs/luci-static/resources/protocol/gre.js:96
#: protocols/luci-proto-gre/htdocs/luci-static/resources/protocol/gretap.js:101
#: protocols/luci-proto-gre/htdocs/luci-static/resources/protocol/grev6.js:98
#: protocols/luci-proto-gre/htdocs/luci-static/resources/protocol/grev6tap.js:103
msgid "Key for outgoing packets (optional)."
msgstr ""
#: modules/luci-mod-status/htdocs/luci-static/resources/view/status/processes.js:54
msgid "Kill"
msgstr "强制关闭"

View file

@ -2814,7 +2814,21 @@ msgstr "金鑰"
#: modules/luci-mod-network/htdocs/luci-static/resources/view/network/wireless.js:1385
#: modules/luci-mod-network/htdocs/luci-static/resources/view/network/wireless.js:1397
msgid "Key #%d"
msgstr "金鑰 #%d"
msgstr "鑰匙 #%d"
#: protocols/luci-proto-gre/htdocs/luci-static/resources/protocol/gre.js:92
#: protocols/luci-proto-gre/htdocs/luci-static/resources/protocol/gretap.js:97
#: protocols/luci-proto-gre/htdocs/luci-static/resources/protocol/grev6.js:94
#: protocols/luci-proto-gre/htdocs/luci-static/resources/protocol/grev6tap.js:99
msgid "Key for incoming packets (optional)."
msgstr ""
#: protocols/luci-proto-gre/htdocs/luci-static/resources/protocol/gre.js:96
#: protocols/luci-proto-gre/htdocs/luci-static/resources/protocol/gretap.js:101
#: protocols/luci-proto-gre/htdocs/luci-static/resources/protocol/grev6.js:98
#: protocols/luci-proto-gre/htdocs/luci-static/resources/protocol/grev6tap.js:103
msgid "Key for outgoing packets (optional)."
msgstr ""
#: modules/luci-mod-status/htdocs/luci-static/resources/view/status/processes.js:54
msgid "Kill"

View file

@ -0,0 +1,21 @@
#
# Based on luci-proto-ipip.
# Credited author of luci-proto-ipip is Roger Pueyo Centelles <roger.pueyo@guifi.net>
# Copyright 2016 Roger Pueyo Centelles <roger.pueyo@guifi.net>
#
# Modified by Jan Betik <jan.betik@svine.su>
# Copyright 2020 Jan Betik <jan.betik@svine.su>
#
# This is free software, licensed under the Apache License, Version 2.0 .
#
include $(TOPDIR)/rules.mk
LUCI_TITLE:=Support for GRE tunnels (RFC2784)
LUCI_DEPENDS:=+gre
PKG_MAINTAINER:=Jan Betik <jan.betik@svine.su>
include ../../luci.mk
# call BuildPackage - OpenWrt buildroot signature

View file

@ -0,0 +1,106 @@
'use strict';
'require form';
'require network';
'require tools.widgets as widgets';
network.registerPatternVirtual(/^gre4-.+$/);
return network.registerProtocol('gre', {
getI18n: function() {
return _('GRE tunnel over IPv4');
},
getIfname: function() {
return this._ubus('l3_device') || 'gre4-%s'.format(this.sid);
},
getOpkgPackage: function() {
return 'gre';
},
isFloating: function() {
return true;
},
isVirtual: function() {
return true;
},
getDevices: function() {
return null;
},
containsDevice: function(ifname) {
return (network.getIfnameOf(ifname) == this.getIfname());
},
renderFormOptions: function(s) {
var o;
// -- general ---------------------------------------------------------------------
o = s.taboption('general', form.Value, 'peeraddr', _("Remote IPv4 address or FQDN"), _("The IPv4 address or the fully-qualified domain name of the remote tunnel end."));
o.optional = false;
o.datatype = 'or(hostname,ip4addr("nomask"))';
o = s.taboption('general', form.Value, 'ipaddr', _("Local IPv4 address"), _("The local IPv4 address over which the tunnel is created (optional)."));
o.optional = true;
o.datatype = 'ip4addr("nomask")';
o.load = function(section_id) {
return network.getWANNetworks().then(L.bind(function(nets) {
if (nets.length)
this.placeholder = nets[0].getIPAddr();
return form.Value.prototype.load.apply(this, [section_id]);
}, this));
};
// -- advanced ---------------------------------------------------------------------
o = s.taboption('advanced', widgets.NetworkSelect, 'tunlink', _("Bind interface"), _("Bind the tunnel to this interface (optional)."));
o.exclude = s.section;
o.nocreate = true;
o.optional = true;
o = s.taboption('advanced', form.Value, 'mtu', _("Override MTU"), _("Specify an MTU (Maximum Transmission Unit) other than the default (1280 bytes) (optional)."));
o.optional = true;
o.placeholder = 1280;
o.datatype = 'range(68, 9200)';
o = s.taboption('advanced', form.Value, 'ttl', _("Override TTL"), _("Specify a TTL (Time to Live) for the encapsulating packet other than the default (64) (optional)."));
o.optional = true;
o.placeholder = 64;
o.datatype = 'min(1)';
o = s.taboption('advanced', form.Value, 'tos', _("Override TOS"), _("Specify a TOS (Type of Service). Can be <code>inherit</code> (the outer header inherits the value of the inner header), or an hexadecimal value <code>00..FF</code> (optional)."));
o.optional = true;
o.validate = function(section_id, value) {
if (value.length > 0 && !value.match(/^[a-f0-9]{1,2}$/i) && !value.match(/^inherit$/i))
return _("Invalid TOS value, expected 00..FF or inherit");
return true;
};
o = s.taboption('advanced', form.Flag, 'df', _("Don't Fragment"), _("Enable the DF (Don't Fragment) flag of the encapsulating packets."));
o.default = o.enabled;
o = s.taboption('advanced', form.Flag, 'nohostroute', _("No host route"), _("Do not create host route to peer (optional)."));
o.optional = true;
o = s.taboption('advanced', form.Flag, 'multicast', _("Multicast"), _("Enable support for multicast traffic (optional)."));
o.optional = true;
o = s.taboption('advanced', form.Value, 'ikey', _("Incoming key"), _("Key for incoming packets (optional)."));
o.optional = true;
o.datatype = 'integer';
o = s.taboption('advanced', form.Value, 'okey', _("Outgoing key"), _("Key for outgoing packets (optional)."));
o.optional = true;
o.datatype = 'integer';
s.taboption('advanced', form.Flag, 'icsum', _("Incoming checksum"), _("Require incoming checksum (optional)."));
s.taboption('advanced', form.Flag, 'ocsum', _("Outgoing checksum"), _("Compute outgoing checksum (optional)."));
s.taboption('advanced', form.Flag, 'iseqno', _("Incoming serialization"), _("Require incoming packets serialization (optional)."));
s.taboption('advanced', form.Flag, 'oseqno', _("Outgoing serialization"), _("Perform outgoing packets serialization (optional)."));
}
});

View file

@ -0,0 +1,111 @@
'use strict';
'require form';
'require network';
'require tools.widgets as widgets';
network.registerPatternVirtual(/^gre4t-.+$/);
return network.registerProtocol('gretap', {
getI18n: function() {
return _('GRETAP tunnel over IPv4');
},
getIfname: function() {
return this._ubus('l3_device') || 'gre4t-%s'.format(this.sid);
},
getOpkgPackage: function() {
return 'gre';
},
isFloating: function() {
return true;
},
isVirtual: function() {
return true;
},
getDevices: function() {
return null;
},
containsDevice: function(ifname) {
return (network.getIfnameOf(ifname) == this.getIfname());
},
renderFormOptions: function(s) {
var o;
// -- general ---------------------------------------------------------------------
o = s.taboption('general', form.Value, 'peeraddr', _("Remote IPv4 address or FQDN"), _("The IPv4 address or the fully-qualified domain name of the remote tunnel end."));
o.optional = false;
o.datatype = 'or(hostname,ip4addr("nomask"))';
o = s.taboption('general', form.Value, 'ipaddr', _("Local IPv4 address"), _("The local IPv4 address over which the tunnel is created (optional)."));
o.optional = true;
o.datatype = 'ip4addr("nomask")';
o.load = function(section_id) {
return network.getWANNetworks().then(L.bind(function(nets) {
if (nets.length)
this.placeholder = nets[0].getIPAddr();
return form.Value.prototype.load.apply(this, [section_id]);
}, this));
};
o = s.taboption('general', widgets.NetworkSelect, 'network', _("Network interface"), _("Logical network to which the tunnel will be added (bridged) (optional)."));
o.exclude = s.section;
o.nocreate = true;
o.optional = true;
// -- advanced ---------------------------------------------------------------------
o = s.taboption('advanced', widgets.NetworkSelect, 'tunlink', _("Bind interface"), _("Bind the tunnel to this interface (optional)."));
o.exclude = s.section;
o.nocreate = true;
o.optional = true;
o = s.taboption('advanced', form.Value, 'mtu', _("Override MTU"), _("Specify an MTU (Maximum Transmission Unit) other than the default (1280 bytes) (optional)."));
o.optional = true;
o.placeholder = 1280;
o.datatype = 'range(68, 9200)';
o = s.taboption('advanced', form.Value, 'ttl', _("Override TTL"), _("Specify a TTL (Time to Live) for the encapsulating packet other than the default (64) (optional)."));
o.optional = true;
o.placeholder = 64;
o.datatype = 'min(1)';
o = s.taboption('advanced', form.Value, 'tos', _("Override TOS"), _("Specify a TOS (Type of Service). Can be <code>inherit</code> (the outer header inherits the value of the inner header) or an hexadecimal value <code>00..FF</code> (optional)."));
o.optional = true;
o.validate = function(section_id, value) {
if (value.length > 0 && !value.match(/^[a-f0-9]{1,2}$/i) && !value.match(/^inherit$/i))
return _("Invalid TOS value, expected 00..FF or inherit");
return true;
};
o = s.taboption('advanced', form.Flag, 'df', _("Don't Fragment"), _("Enable the DF (Don't Fragment) flag of the encapsulating packets."));
o.default = o.enabled;
o = s.taboption('advanced', form.Flag, 'nohostroute', _("No host route"), _("Do not create host route to peer (optional)."));
o.optional = true;
o = s.taboption('advanced', form.Flag, 'multicast', _("Multicast"), _("Enable support for multicast traffic (optional)."));
o.optional = true;
o = s.taboption('advanced', form.Value, 'ikey', _("Incoming key"), _("Key for incoming packets (optional)."));
o.optional = true;
o.datatype = 'integer';
o = s.taboption('advanced', form.Value, 'okey', _("Outgoing key"), _("Key for outgoing packets (optional)."));
o.optional = true;
o.datatype = 'integer';
s.taboption('advanced', form.Flag, 'icsum', _("Incoming checksum"), _("Require incoming checksum (optional)."));
s.taboption('advanced', form.Flag, 'ocsum', _("Outgoing checksum"), _("Compute outgoing checksum (optional)."));
s.taboption('advanced', form.Flag, 'iseqno', _("Incoming serialization"), _("Require incoming packets serialization (optional)."));
s.taboption('advanced', form.Flag, 'oseqno', _("Outgoing serialization"), _("Perform outgoing packets serialization (optional)."));
}
});

View file

@ -0,0 +1,108 @@
'use strict';
'require form';
'require network';
'require tools.widgets as widgets';
network.registerPatternVirtual(/^gre6-.+$/);
return network.registerProtocol('grev6', {
getI18n: function() {
return _('GRE tunnel over IPv6');
},
getIfname: function() {
return this._ubus('l3_device') || 'gre6-%s'.format(this.sid);
},
getOpkgPackage: function() {
return 'gre';
},
isFloating: function() {
return true;
},
isVirtual: function() {
return true;
},
getDevices: function() {
return null;
},
containsDevice: function(ifname) {
return (network.getIfnameOf(ifname) == this.getIfname());
},
renderFormOptions: function(s) {
var o;
// -- general ---------------------------------------------------------------------
o = s.taboption('general', form.Value, 'peer6addr', _("Remote IPv6 address or FQDN"), _("The IPv6 address or the fully-qualified domain name of the remote tunnel end."));
o.optional = false;
o.datatype = 'or(hostname,ip6addr("nomask"))';
o = s.taboption('general', form.Value, 'ip6addr', _("Local IPv6 address"), _("The local IPv6 address over which the tunnel is created (optional)."));
o.optional = true;
o.datatype = 'ip6addr("nomask")';
o.load = function(section_id) {
return network.getWAN6Networks().then(L.bind(function(nets) {
if (Array.isArray(nets) && nets.length)
this.placeholder = nets[0].getIP6Addr();
return form.Value.prototype.load.apply(this, [section_id]);
}, this));
};
o = s.taboption('general', widgets.NetworkSelect, 'weakif', _("Source interface"), _("Logical network from which to select the local endpoint if local IPv6 address is empty and no WAN IPv6 is available (optional)."));
o.exclude = s.section;
o.nocreate = true;
o.optional = true;
// -- advanced ---------------------------------------------------------------------
o = s.taboption('advanced', widgets.NetworkSelect, 'tunlink', _("Bind interface"), _("Bind the tunnel to this interface (optional)."));
o.exclude = s.section;
o.nocreate = true;
o.optional = true;
o = s.taboption('advanced', form.Value, 'mtu', _("Override MTU"), _("Specify an MTU (Maximum Transmission Unit) other than the default (1280 bytes) (optional)."));
o.optional = true;
o.placeholder = 1280;
o.datatype = 'range(68, 9200)';
o = s.taboption('advanced', form.Value, 'ttl', _("Override TTL"), _("Specify a TTL (Time to Live) for the encapsulating packet other than the default (64) (optional)."));
o.optional = true;
o.placeholder = 64;
o.datatype = 'min(1)';
o = s.taboption('advanced', form.Value, 'tos', _("Traffic Class"), _("Specify a Traffic Class. Can be <code>inherit</code> (the outer header inherits the value of the inner header) or an hexadecimal value <code>00..FF</code> (optional)."));
o.optional = true;
o.validate = function(section_id, value) {
if (value.length > 0 && !value.match(/^[a-f0-9]{1,2}$/i) && !value.match(/^inherit$/i))
return _("Invalid Traffic Class value, expected 00..FF or inherit");
return true;
};
o = s.taboption('advanced', form.Flag, 'nohostroute', _("No host route"), _("Do not create host route to peer (optional)."));
o.optional = true;
o = s.taboption('advanced', form.Flag, 'multicast', _("Multicast"), _("Enable support for multicast traffic (optional)."));
o.optional = true;
o = s.taboption('advanced', form.Value, 'ikey', _("Incoming key"), _("Key for incoming packets (optional)."));
o.optional = true;
o.datatype = 'integer';
o = s.taboption('advanced', form.Value, 'okey', _("Outgoing key"), _("Key for outgoing packets (optional)."));
o.optional = true;
o.datatype = 'integer';
s.taboption('advanced', form.Flag, 'icsum', _("Incoming checksum"), _("Require incoming checksum (optional)."));
s.taboption('advanced', form.Flag, 'ocsum', _("Outgoing checksum"), _("Compute outgoing checksum (optional)."));
s.taboption('advanced', form.Flag, 'iseqno', _("Incoming serialization"), _("Require incoming packets serialization (optional)."));
s.taboption('advanced', form.Flag, 'oseqno', _("Outgoing serialization"), _("Perform outgoing packets serialization (optional)."));
}
});

View file

@ -0,0 +1,113 @@
'use strict';
'require form';
'require network';
'require tools.widgets as widgets';
network.registerPatternVirtual(/^gre6t-.+$/);
return network.registerProtocol('grev6tap', {
getI18n: function() {
return _('GRETAP tunnel over IPv6');
},
getIfname: function() {
return this._ubus('l3_device') || 'gre6t-%s'.format(this.sid);
},
getOpkgPackage: function() {
return 'gre';
},
isFloating: function() {
return true;
},
isVirtual: function() {
return true;
},
getDevices: function() {
return null;
},
containsDevice: function(ifname) {
return (network.getIfnameOf(ifname) == this.getIfname());
},
renderFormOptions: function(s) {
var o;
// -- general ---------------------------------------------------------------------
o = s.taboption('general', form.Value, 'peer6addr', _("Remote IPv6 address or FQDN"), _("The IPv6 address or the fully-qualified domain name of the remote tunnel end."));
o.optional = false;
o.datatype = 'or(hostname,ip6addr("nomask"))';
o.load = function(section_id) {
return network.getWAN6Networks().then(L.bind(function(nets) {
if (Array.isArray(nets) && nets.length)
this.placeholder = nets[0].getIP6Addr();
return form.Value.prototype.load.apply(this, [section_id]);
}, this));
};
o = s.taboption('general', form.Value, 'ip6addr', _("Local IPv6 address"), _("The local IPv6 address over which the tunnel is created (optional)."));
o.optional = true;
o.datatype = 'ip6addr("nomask")';
o = s.taboption('general', widgets.NetworkSelect, 'weakif', _("Source interface"), _("Logical network from which to select the local endpoint if local IPv6 address is empty and no WAN IPv6 is available (optional)."));
o.exclude = s.section;
o.nocreate = true;
o.optional = true;
o = s.taboption('general', widgets.NetworkSelect, 'network', _("Network interface"), _("Logical network to which the tunnel will be added (bridged) (optional)."));
o.exclude = s.section;
o.nocreate = true;
o.optional = true;
// -- advanced ---------------------------------------------------------------------
o = s.taboption('advanced', widgets.NetworkSelect, 'tunlink', _("Bind interface"), _("Bind the tunnel to this interface (optional)."));
o.exclude = s.section;
o.nocreate = true;
o.optional = true;
o = s.taboption('advanced', form.Value, 'mtu', _("Override MTU"), _("Specify an MTU (Maximum Transmission Unit) other than the default (1280 bytes) (optional)."));
o.optional = true;
o.placeholder = 1280;
o.datatype = 'range(68, 9200)';
o = s.taboption('advanced', form.Value, 'ttl', _("Override TTL"), _("Specify a TTL (Time to Live) for the encapsulating packet other than the default (64) (optional)."));
o.optional = true;
o.placeholder = 64;
o.datatype = 'min(1)';
o = s.taboption('advanced', form.Value, 'tos', _("Traffic Class"), _("Specify a Traffic Class. Can be <code>inherit</code> (the outer header inherits the value of the inner header) or an hexadecimal value <code>00..FF</code> (optional)."));
o.optional = true;
o.validate = function(section_id, value) {
if (value.length > 0 && !value.match(/^[a-f0-9]{1,2}$/i) && !value.match(/^inherit$/i))
return _("Invalid Traffic Class value, expected 00..FF or inherit");
return true;
};
o = s.taboption('advanced', form.Flag, 'nohostroute', _("No host route"), _("Do not create host route to peer (optional)."));
o.optional = true;
o = s.taboption('advanced', form.Flag, 'multicast', _("Multicast"), _("Enable support for multicast traffic (optional)."));
o.optional = true;
o = s.taboption('advanced', form.Value, 'ikey', _("Incoming key"), _("Key for incoming packets (optional)."));
o.optional = true;
o.datatype = 'integer';
o = s.taboption('advanced', form.Value, 'okey', _("Outgoing key"), _("Key for outgoing packets (optional)."));
o.optional = true;
o.datatype = 'integer';
s.taboption('advanced', form.Flag, 'icsum', _("Incoming checksum"), _("Require incoming checksum (optional)."));
s.taboption('advanced', form.Flag, 'ocsum', _("Outgoing checksum"), _("Compute outgoing checksum (optional)."));
s.taboption('advanced', form.Flag, 'iseqno', _("Incoming serialization"), _("Require incoming packets serialization (optional)."));
s.taboption('advanced', form.Flag, 'oseqno', _("Outgoing serialization"), _("Perform outgoing packets serialization (optional)."));
}
});