From 3e4557ee7cc01ccb89e73e27691b2a18c8f0178f Mon Sep 17 00:00:00 2001 From: Arayuki Mago Date: Thu, 3 Oct 2024 14:31:13 +0900 Subject: [PATCH] luci-proto-ipv6: map: Add SNAT fix option for specific ISP Ensure that the multiple port ranges used with specific ISP MAP-E implementation are actually SNAT-ed correctly. Signed-off-by: Arayuki Mago --- modules/luci-base/po/ja/base.po | 16 ++++++++++++++++ modules/luci-base/po/zh_Hans/base.po | 16 ++++++++++++++++ .../htdocs/luci-static/resources/protocol/map.js | 7 +++++++ 3 files changed, 39 insertions(+) diff --git a/modules/luci-base/po/ja/base.po b/modules/luci-base/po/ja/base.po index 20b256e53e8b..b67bca6ec12a 100644 --- a/modules/luci-base/po/ja/base.po +++ b/modules/luci-base/po/ja/base.po @@ -11011,6 +11011,22 @@ msgstr "" "RFC7597の代わりに従来のMAPインターフェース識別子フォーマット(draft-ietf-" "softwire-map-00)を使用" +#: protocols/luci-proto-ipv6/htdocs/luci-static/resources/protocol/map.js:90 +msgid "Enable SNAT fix" +msgstr "SNAT修正を有効化" + +#: protocols/luci-proto-ipv6/htdocs/luci-static/resources/protocol/map.js:90 +msgid "Apply SNAT fixes with certain ISPs" +msgstr "特定ISPに対してSNAT修正を適用" + +#: protocols/luci-proto-ipv6/htdocs/luci-static/resources/protocol/map.js:92 +msgid "Exclude SNAT ports" +msgstr "SNATポートを除外" + +#: protocols/luci-proto-ipv6/htdocs/luci-static/resources/protocol/map.js:92 +msgid "List of ports to exclude from SNAT. Separate ports with spaces" +msgstr "SNATから除外するポートのリスト。スペースで区切る" + #: protocols/luci-proto-relay/htdocs/luci-static/resources/protocol/relay.js:179 msgid "Use routing table" msgstr "ルーティングテーブルを使用" diff --git a/modules/luci-base/po/zh_Hans/base.po b/modules/luci-base/po/zh_Hans/base.po index 300d876419ee..426aecbeb234 100644 --- a/modules/luci-base/po/zh_Hans/base.po +++ b/modules/luci-base/po/zh_Hans/base.po @@ -10954,6 +10954,22 @@ msgid "" msgstr "" "使用旧式 MAP 接口标识符格式(draft-ietf-softwire-map-00),而非 RFC7597" +#: protocols/luci-proto-ipv6/htdocs/luci-static/resources/protocol/map.js:90 +msgid "Enable SNAT fix" +msgstr "启用 SNAT 修复" + +#: protocols/luci-proto-ipv6/htdocs/luci-static/resources/protocol/map.js:90 +msgid "Apply SNAT fixes with certain ISPs" +msgstr "对某些 ISP 应用 SNAT 修复" + +#: protocols/luci-proto-ipv6/htdocs/luci-static/resources/protocol/map.js:92 +msgid "Exclude SNAT ports" +msgstr "排除 SNAT 端口" + +#: protocols/luci-proto-ipv6/htdocs/luci-static/resources/protocol/map.js:92 +msgid "List of ports to exclude from SNAT. Separate ports with spaces" +msgstr "要从 SNAT 中排除的端口列表。用空格分隔" + #: protocols/luci-proto-relay/htdocs/luci-static/resources/protocol/relay.js:179 msgid "Use routing table" msgstr "使用路由表" diff --git a/protocols/luci-proto-ipv6/htdocs/luci-static/resources/protocol/map.js b/protocols/luci-proto-ipv6/htdocs/luci-static/resources/protocol/map.js index 82e016921030..c5de69fb0069 100644 --- a/protocols/luci-proto-ipv6/htdocs/luci-static/resources/protocol/map.js +++ b/protocols/luci-proto-ipv6/htdocs/luci-static/resources/protocol/map.js @@ -86,5 +86,12 @@ return network.registerProtocol('map', { o.datatype = 'max(9200)'; o = s.taboption('advanced', form.Flag, 'legacymap', _('Use legacy MAP'), _('Use legacy MAP interface identifier format (draft-ietf-softwire-map-00) instead of RFC7597')); + + o = s.taboption('advanced', form.Flag, 'isp_fix', _('Enable SNAT fix'), _('Apply SNAT fixes with certain ISPs')); + + o = s.taboption('advanced', form.Value, 'dont_snat_to', _('Exclude SNAT ports'), _('List of ports to exclude from SNAT. Separate ports with spaces')); + o.depends('isp_fix', '1'); + o.datatype = 'string'; + o.placeholder = '80 443 2938'; } });