mirror of
https://github.com/sharevb/it-tools.git
synced 2026-11-20 21:23:08 +03:00
i18n: update translations for iptables and fstab generator tools
This commit is contained in:
1 parent
fad759efda
commit
cba443dc39
25 files changed
+213
-131
No files matched your search
+1
-1
@@ -4962,7 +4962,7 @@ tools:
|
||||
label-source-port: "منفذ المصدر:"
|
||||
label-destination-port: "ميناء الوجهة:"
|
||||
label-chain: "سلسلة:"
|
||||
label-rule-order: "ترتيب القواعد:"
|
||||
label-rule-order: "موضع الإدراج (فارغ = إلحاق بالنهاية):"
|
||||
title-generated-iptables-command: أمر iptables المُولَّد
|
||||
tag-expression: تعبير
|
||||
tag-meaning: معنى
|
||||
|
||||
+1
-1
@@ -4912,7 +4912,7 @@ tools:
|
||||
label-source-port: "Kildeport:"
|
||||
label-destination-port: "Destinationshavn:"
|
||||
label-chain: "Kæde:"
|
||||
label-rule-order: "Regelrækkefølge:"
|
||||
label-rule-order: "Indsættelsesposition (tom = tilføj sidst):"
|
||||
title-generated-iptables-command: Genereret iptables-kommando
|
||||
tag-expression: Udtryk
|
||||
tag-meaning: Mening
|
||||
|
||||
+1
-1
@@ -5200,7 +5200,7 @@ tools:
|
||||
label-source-port: "Quellport:"
|
||||
label-destination-port: "Zielhafen:"
|
||||
label-chain: "Kette:"
|
||||
label-rule-order: "Regelreihenfolge:"
|
||||
label-rule-order: "Einfügeposition (leer = anhängen):"
|
||||
title-generated-iptables-command: Generierter iptables-Befehl
|
||||
tag-expression: Ausdruck
|
||||
tag-meaning: Bedeutung
|
||||
|
||||
+1
-1
@@ -4560,7 +4560,7 @@ tools:
|
||||
label-source-port: "Θύρα πηγής:"
|
||||
label-destination-port: "Λιμάνι προορισμού:"
|
||||
label-chain: "Αλυσίδα:"
|
||||
label-rule-order: "Σειρά κανόνων:"
|
||||
label-rule-order: "Θέση εισαγωγής (κενό = προσθήκη στο τέλος):"
|
||||
title-generated-iptables-command: Δημιουργήθηκε εντολή iptables
|
||||
tag-expression: Εκφραση
|
||||
tag-meaning: Εννοια
|
||||
|
||||
+1
-1
@@ -4430,7 +4430,7 @@ tools:
|
||||
label-source-port: "Source Port:"
|
||||
label-destination-port: "Destination Port:"
|
||||
label-chain: "Chain:"
|
||||
label-rule-order: "Rule Order:"
|
||||
label-rule-order: "Insert position (empty = append):"
|
||||
title-generated-iptables-command: Generated iptables command
|
||||
tag-expression: Expression
|
||||
tag-meaning: Meaning
|
||||
|
||||
+1
-1
@@ -4498,7 +4498,7 @@ tools:
|
||||
label-source-port: "Puerto de origen:"
|
||||
label-destination-port: "Puerto de destino:"
|
||||
label-chain: "Cadena:"
|
||||
label-rule-order: "Orden de reglas:"
|
||||
label-rule-order: "Posición de inserción (vacío = añadir al final):"
|
||||
title-generated-iptables-command: Comando iptables generado
|
||||
tag-expression: Expresión
|
||||
tag-meaning: Significado
|
||||
|
||||
+1
-1
@@ -3328,7 +3328,7 @@ tools:
|
||||
label-prerouting: Prurotinage
|
||||
label-protocol: "Protocole :"
|
||||
label-reject: REJETER
|
||||
label-rule-order: "Ordre des règles :"
|
||||
label-rule-order: "Position d'insertion (vide = ajouter à la fin) :"
|
||||
label-source-ip: "IP de source :"
|
||||
label-source-port: "Port source :"
|
||||
label-tcp: TCP
|
||||
|
||||
+1
-1
@@ -5733,7 +5733,7 @@ tools:
|
||||
label-source-port: 'Port Foinse:'
|
||||
label-destination-port: 'Calafort Ceann Scríbe:'
|
||||
label-chain: 'Slabhra:'
|
||||
label-rule-order: 'Ord Rialacha:'
|
||||
label-rule-order: 'Suíomh ionsáite (folamh = cuir leis ag an deireadh):'
|
||||
title-generated-iptables-command: Gineadh ordú iptables
|
||||
tag-expression: Léiriú
|
||||
tag-meaning: Brí
|
||||
|
||||
+1
-1
@@ -4503,7 +4503,7 @@ tools:
|
||||
label-source-port: "स्रोत पोर्ट:"
|
||||
label-destination-port: "गंतव्य बंदरगाह:"
|
||||
label-chain: "जंजीर:"
|
||||
label-rule-order: "नियम क्रम:"
|
||||
label-rule-order: "सम्मिलन स्थान (खाली = अंत में जोड़ें):"
|
||||
title-generated-iptables-command: iptables कमांड जनरेट किया गया
|
||||
tag-expression: अभिव्यक्ति
|
||||
tag-meaning: अर्थ
|
||||
|
||||
+1
-1
@@ -5019,7 +5019,7 @@ tools:
|
||||
label-source-port: "Porta di origine:"
|
||||
label-destination-port: "Porto di destinazione:"
|
||||
label-chain: "Catena:"
|
||||
label-rule-order: "Ordine delle regole:"
|
||||
label-rule-order: "Posizione di inserimento (vuoto = aggiungi alla fine):"
|
||||
title-generated-iptables-command: Comando iptables generato
|
||||
tag-expression: Espressione
|
||||
tag-meaning: Senso
|
||||
|
||||
+1
-1
@@ -4687,7 +4687,7 @@ tools:
|
||||
label-source-port: "소스 포트:"
|
||||
label-destination-port: "목적지 항구:"
|
||||
label-chain: "체인:"
|
||||
label-rule-order: "규칙 순서:"
|
||||
label-rule-order: "삽입 위치 (비우면 끝에 추가):"
|
||||
title-generated-iptables-command: 생성된 iptables 명령
|
||||
tag-expression: 표현
|
||||
tag-meaning: 의미
|
||||
|
||||
+1
-1
@@ -4973,7 +4973,7 @@ tools:
|
||||
label-source-port: "Bronpoort:"
|
||||
label-destination-port: "Bestemmingshaven:"
|
||||
label-chain: "Ketting:"
|
||||
label-rule-order: "Regelvolgorde:"
|
||||
label-rule-order: "Invoegpositie (leeg = toevoegen aan het einde):"
|
||||
title-generated-iptables-command: Gegenereerde iptables-opdracht
|
||||
tag-expression: Uitdrukking
|
||||
tag-meaning: Betekenis
|
||||
|
||||
+1
-1
@@ -4985,7 +4985,7 @@ tools:
|
||||
label-source-port: "Kildeport:"
|
||||
label-destination-port: "Destinasjonshavn:"
|
||||
label-chain: "Kjede:"
|
||||
label-rule-order: "Regelrekkefølge:"
|
||||
label-rule-order: "Innsettingsposisjon (tom = legg til på slutten):"
|
||||
title-generated-iptables-command: Genererte iptables-kommandoen
|
||||
tag-expression: Uttrykk
|
||||
tag-meaning: Betydning
|
||||
|
||||
+1
-1
@@ -4467,7 +4467,7 @@ tools:
|
||||
label-source-port: "Port źródłowy:"
|
||||
label-destination-port: "Port docelowy:"
|
||||
label-chain: "Łańcuch:"
|
||||
label-rule-order: "Kolejność zasad:"
|
||||
label-rule-order: "Pozycja wstawienia (puste = dodaj na końcu):"
|
||||
title-generated-iptables-command: Wygenerowano polecenie iptables
|
||||
tag-expression: Wyrażenie
|
||||
tag-meaning: Oznaczający
|
||||
|
||||
+1
-1
@@ -4459,7 +4459,7 @@ tools:
|
||||
label-source-port: "Porta de origem:"
|
||||
label-destination-port: "Porto de destino:"
|
||||
label-chain: "Corrente:"
|
||||
label-rule-order: "Ordem das regras:"
|
||||
label-rule-order: "Posição de inserção (vazio = adicionar ao final):"
|
||||
title-generated-iptables-command: Comando iptables gerado
|
||||
tag-expression: Expressão
|
||||
tag-meaning: Significado
|
||||
|
||||
+1
-1
@@ -5671,7 +5671,7 @@ tools:
|
||||
label-source-port: "Исходный порт:"
|
||||
label-destination-port: "Порт назначения:"
|
||||
label-chain: "Цепь:"
|
||||
label-rule-order: "Порядок правил:"
|
||||
label-rule-order: "Позиция вставки (пусто = добавить в конец):"
|
||||
title-generated-iptables-command: Сгенерированная команда iptables
|
||||
tag-expression: Выражение
|
||||
tag-meaning: Значение
|
||||
|
||||
+1
-1
@@ -4705,7 +4705,7 @@ tools:
|
||||
label-source-port: "Kaynak Portu:"
|
||||
label-destination-port: "Hedef Liman:"
|
||||
label-chain: "Zincir:"
|
||||
label-rule-order: "Kural Sırası:"
|
||||
label-rule-order: "Ekleme konumu (boş = sona ekle):"
|
||||
title-generated-iptables-command: Oluşturulan iptables komutu
|
||||
tag-expression: İfade
|
||||
tag-meaning: Anlam
|
||||
|
||||
+1
-1
@@ -5642,7 +5642,7 @@ tools:
|
||||
label-source-port: "Порт джерела:"
|
||||
label-destination-port: "Порт призначення:"
|
||||
label-chain: "Ланцюг:"
|
||||
label-rule-order: "Порядок правил:"
|
||||
label-rule-order: "Позиція вставки (пусто = додати в кінець):"
|
||||
title-generated-iptables-command: Згенерована команда iptables
|
||||
tag-expression: Вираз
|
||||
tag-meaning: Значення
|
||||
|
||||
+1
-1
@@ -4978,7 +4978,7 @@ tools:
|
||||
label-source-port: "Cổng nguồn:"
|
||||
label-destination-port: "Cảng đích:"
|
||||
label-chain: "Xích:"
|
||||
label-rule-order: "Thứ tự quy tắc:"
|
||||
label-rule-order: "Vị trí chèn (để trống = thêm vào cuối):"
|
||||
title-generated-iptables-command: Đã tạo lệnh iptables
|
||||
tag-expression: Sự biểu lộ
|
||||
tag-meaning: Nghĩa
|
||||
|
||||
+66
-66
@@ -1626,28 +1626,28 @@ tools:
|
||||
label-bibytes-ib: Bibytes(iB)
|
||||
label-kilobytes-kb: 千字节(KB)
|
||||
label-kilobits-kbit: 千比特(Kbit)
|
||||
label-kibibytes-kib: 千比字节(Kibibytes)
|
||||
label-kibibytes-kib: 千字节(KiB)
|
||||
label-megabytes-mb: 兆字节(MB)
|
||||
label-megabits-mbit: 兆比特(Mbit)
|
||||
label-mebibytes-mib: 兆比字节(Mebibytes)
|
||||
label-mebibytes-mib: 兆字节(MiB)
|
||||
label-gigabytes-gb: 吉字节(GB)
|
||||
label-gigabits-gbit: 吉比特(Gbit)
|
||||
label-gibibytes-gib: 吉比字节(Gibibytes)
|
||||
label-gibibytes-gib: 吉字节(GiB)
|
||||
label-terabytes-tb: 太字节(TB)
|
||||
label-terabits-tbit: 太比特(Tbit)
|
||||
label-tebibytes-tib: 太比字节(Tebibytes)
|
||||
label-tebibytes-tib: 太字节(TiB)
|
||||
label-petabytes-pb: 拍字节(PB)
|
||||
label-petabits-pbit: 拍比特(Pbit)
|
||||
label-pebibytes-pib: 拍比字节(Pebibytes)
|
||||
label-pebibytes-pib: 拍字节(PiB)
|
||||
label-exabytes-eb: 艾字节(EB)
|
||||
label-exabits-ebit: 艾比特(Ebit)
|
||||
label-exbibytes-eib: 艾比字节(Exbibytes)
|
||||
label-exbibytes-eib: 艾字节(EiB)
|
||||
label-zettabytes-zb: 泽字节(ZB)
|
||||
label-zettabits-zbit: 泽比特(Zbit)
|
||||
label-zebibytes-zib: 泽比字节(Zebibytes)
|
||||
label-zebibytes-zib: 泽字节(ZiB)
|
||||
label-yottabytes-yb: 尧字节(YB)
|
||||
label-yottabits-ybit: 尧比特(Ybit)
|
||||
label-yobibytes-yib: 尧比字节(Yobibytes)
|
||||
label-yobibytes-yib: 尧字节(YiB)
|
||||
label-input-size: 输入大小:
|
||||
placeholder-put-your-number-here-ex-1024: 在此输入数字(示例:1024)
|
||||
placeholder-select-input-unit: 选择输入单位
|
||||
@@ -1657,7 +1657,7 @@ tools:
|
||||
placeholder-precision: 精度...
|
||||
label-output-value: 输出值
|
||||
placeholder-output-value-will-be-here: 输出值将显示在此处...
|
||||
tag-1mib-1024kib-1mb-1000kb-1gib-1024mib-1gb-1000mb: 1MiB = 1024KiB;1MB = 1000kB;1GiB = 1024MiB;1GB = 1000MB;
|
||||
tag-1mib-1024kib-1mb-1000kb-1gib-1024mib-1gb-1000mb: 1MiB = 1024KiB;1MB = 1000KB;1GiB = 1024MiB;1GB = 1000MB;
|
||||
tag-see-here-for-details: 详情请查看此处
|
||||
tag-show-unit: 显示单位?
|
||||
data-transfer-rate-converter:
|
||||
@@ -1667,23 +1667,23 @@ tools:
|
||||
label-bytes-b: 字节(B)
|
||||
label-bibytes-ib: Bibytes(iB)
|
||||
label-kilobytes-kb: 千字节(KB)
|
||||
label-kibibytes-kib: 千比字节(Kibibytes)
|
||||
label-kibibytes-kib: 千字节(KiB)
|
||||
label-megabytes-mb: 兆字节(MB)
|
||||
label-mebibytes-mib: 兆比字节(Mebibytes)
|
||||
label-mebibytes-mib: 兆字节(MiB)
|
||||
label-gigabytes-gb: 吉字节(GB)
|
||||
label-gigabits-gbit: 吉比特(Gbit)
|
||||
label-gibibytes-gib: 吉比字节(Gibibytes)
|
||||
label-gibibytes-gib: 吉字节(GiB)
|
||||
label-terabytes-tb: 太字节(TB)
|
||||
label-terabits-tbit: 太比特(Tbit)
|
||||
label-petabytes-pb: 拍字节(PB)
|
||||
label-petabits-pbit: 拍比特(Pbit)
|
||||
label-exabytes-eb: 艾字节(EB)
|
||||
label-exabits-ebit: 艾比特(Ebit)
|
||||
label-exbibytes-eib: 艾比字节(Exbibytes)
|
||||
label-exbibytes-eib: 艾字节(EiB)
|
||||
label-zettabytes-zb: 泽字节(ZB)
|
||||
label-zettabits-zbit: 泽比特(Zbit)
|
||||
label-yottabytes-yb: 尧字节(YB)
|
||||
label-yobibytes-yib: 尧比字节(Yobibytes)
|
||||
label-yobibytes-yib: 尧字节(YiB)
|
||||
label-bits-bit: 比特(bit)
|
||||
label-kilobits-kbit: 千比特(Kbit)
|
||||
label-megabits-mbit: 兆比特(Mbit)
|
||||
@@ -1707,11 +1707,11 @@ tools:
|
||||
title-amount-transferable: 可传输量
|
||||
label-amount-transferable: 可传输量:
|
||||
placeholder-amount-transferable-will-be-here: 可传输量将显示在此处...
|
||||
tag-1mib-1024kib-1mb-1000kb-1gib-1024mib-1gb-1000mb: 1MiB = 1024KiB;1MB = 1000kB;1GiB = 1024MiB;1GB = 1000MB;
|
||||
tag-1mib-1024kib-1mb-1000kb-1gib-1024mib-1gb-1000mb: 1MiB = 1024KiB;1MB = 1000KB;1GiB = 1024MiB;1GB = 1000MB;
|
||||
tag-see-here-for-details: 详情请查看此处
|
||||
label-tebibytes-tib: 太字节 (TiB)
|
||||
label-pebibytes-pib: 皮字节(PiB)
|
||||
label-zebibytes-zib: 泽比字节 (ZiB)
|
||||
label-tebibytes-tib: 太字节(TiB)
|
||||
label-pebibytes-pib: 拍字节(PiB)
|
||||
label-zebibytes-zib: 泽字节(ZiB)
|
||||
date-duration-calculator:
|
||||
title: 日期+持续时间计算器
|
||||
description: 从特定日期添加/减去持续时间。
|
||||
@@ -2167,17 +2167,17 @@ tools:
|
||||
description: |
|
||||
存储设备制造商以十进制形式报告容量(如GB),而操作系统和其他软件使用二进制形式(GiB),尽管仍错误地使用十进制单位(GiB)。此工具将十进制形式的容量转换为各种二进制形式。
|
||||
texts:
|
||||
label-kb: 千字节
|
||||
label-kb: KB
|
||||
label-mb: MB
|
||||
label-gb: 英国
|
||||
label-tb: 结核病
|
||||
label-pb: 铅
|
||||
label-kib: 基布
|
||||
label-mib: 信息局
|
||||
label-gib: 吉布
|
||||
label-tib: 硼化钛
|
||||
label-pib: 派布
|
||||
tag-1mib-1024kib-1mb-1000kb-1gib-1024mib-1gb-1000mb: 1MiB = 1024KiB;1MB = 1000kB;1GiB = 1024MiB;1GB = 1000MB;
|
||||
label-gb: GB
|
||||
label-tb: TB
|
||||
label-pb: PB
|
||||
label-kib: KiB
|
||||
label-mib: MiB
|
||||
label-gib: GiB
|
||||
label-tib: TiB
|
||||
label-pib: PiB
|
||||
tag-1mib-1024kib-1mb-1000kb-1gib-1024mib-1gb-1000mb: 1MiB = 1024KiB;1MB = 1000KB;1GiB = 1024MiB;1GB = 1000MB;
|
||||
tag-see-here-for-details: 详情请查看此处
|
||||
column-decimal: 小数
|
||||
column-binary: 二进制
|
||||
@@ -4245,51 +4245,51 @@ tools:
|
||||
label-your-html-to-minify-can-paste-from-clipboard: 您的HTML(可从剪贴板粘贴):
|
||||
label-output-minified-html: 压缩后的HTML:
|
||||
iptables-generator:
|
||||
title: iptables生成器
|
||||
description: 生成iptables命令行
|
||||
title: iptables 生成器
|
||||
description: 生成 iptables 命令行
|
||||
texts:
|
||||
label-accept: 接受
|
||||
label-drop: 降低
|
||||
label-reject: 拒绝
|
||||
label-accept: ACCEPT(接受)
|
||||
label-drop: DROP(丢弃)
|
||||
label-reject: REJECT(拒绝)
|
||||
label-tcp: TCP
|
||||
label-udp: UDP
|
||||
label-icmp: ICMP
|
||||
label-ip: 知识产权
|
||||
label-input: 输入
|
||||
label-output: 输出
|
||||
label-forward: 向前
|
||||
label-prerouting: 预路由
|
||||
label-action: 操作:
|
||||
label-ip: IP(任意协议)
|
||||
label-input: INPUT
|
||||
label-output: OUTPUT
|
||||
label-forward: FORWARD
|
||||
label-prerouting: PREROUTING
|
||||
label-action: 动作:
|
||||
label-protocol: 协议:
|
||||
label-source-ip: 源IP:
|
||||
label-destination-ip: 目标IP:
|
||||
label-source-port: 源端口:
|
||||
label-destination-port: 目标端口:
|
||||
label-source-ip: 源 IP:
|
||||
label-destination-ip: 目标 IP:
|
||||
label-source-port: 源端口(仅 TCP/UDP):
|
||||
label-destination-port: 目标端口(仅 TCP/UDP):
|
||||
label-chain: 链:
|
||||
label-rule-order: 规则顺序:
|
||||
title-generated-iptables-command: 生成的iptables命令
|
||||
label-rule-order: 插入位置(留空则追加到链尾):
|
||||
title-generated-iptables-command: 生成的 iptables 命令
|
||||
tag-expression: 表达式
|
||||
tag-meaning: 含义
|
||||
tag-iptables-l: iptables -L
|
||||
tag-list-all-rules-in-the-selected-chain: 列出所选链的所有规则
|
||||
tag-list-all-rules-in-the-selected-chain: 列出 filter 表中所有链的规则
|
||||
tag-iptables-t-nat-n-l: iptables -t nat -n -L
|
||||
tag-list-all-nat-rules: 列出所有NAT规则
|
||||
tag-iptables-l-n-line-numbers: iptables -L -n --行号
|
||||
tag-list-all-rules-including-their-line-number: 列出所有规则(含行号)
|
||||
tag-list-all-nat-rules: 以数字形式列出所有 NAT 规则
|
||||
tag-iptables-l-n-line-numbers: iptables -L -n --line-numbers
|
||||
tag-list-all-rules-including-their-line-number: 以数字形式列出所有规则(含行号)
|
||||
tag-iptables-f: iptables -F
|
||||
tag-delete-existing-rules: 删除现有规则
|
||||
tag-iptables-d-input-2: iptables -D 输入 2
|
||||
tag-delete-the-second-rule-in-the-input-chain: 删除INPUT链的第二条规则
|
||||
tag-iptables-t-nat-d-prerouting-2: iptables -t nat -D 预路由 2
|
||||
tag-delete-the-second-rule-in-the-nat-table: 删除NAT表的第二条规则
|
||||
tag-delete-existing-rules: 清空现有规则
|
||||
tag-iptables-d-input-2: iptables -D INPUT 2
|
||||
tag-delete-the-second-rule-in-the-input-chain: 删除 INPUT 链中的第二条规则
|
||||
tag-iptables-t-nat-d-prerouting-2: iptables -t nat -D PREROUTING 2
|
||||
tag-delete-the-second-rule-in-the-nat-table: 删除 nat 表 PREROUTING 链中的第二条规则
|
||||
tag-iptables-a-input-s-lt-ip-address-gt-j-drop: iptables -A INPUT -s "<ip address>" -j DROP
|
||||
tag-block-a-specific-ip-address: 阻止特定IP地址
|
||||
tag-block-a-specific-ip-address: 屏蔽指定 IP 地址
|
||||
tag-iptables-a-input-p-tcp-dport-80-m-limit-limit-25-minute-limit-burst-100-j-accept:
|
||||
iptables -A INPUT -p tcp --dport 80 -m limit --limit 25/minute
|
||||
--limit-burst 100 -j ACCEPT
|
||||
tag-limit-connections-to-25-per-minute-on-port-80-after-100-connections-have-been-reached: 在80端口达到100次连接后,限制每分钟25次连接
|
||||
tag-iptables-n-mychain: iptables -N 我的链
|
||||
tag-create-a-new-chain-called-mychain: 创建名为"MYCHAIN"的新链
|
||||
iptables -A INPUT -p tcp --dport 80 -m limit --limit 25/minute --limit-burst 100 -j ACCEPT
|
||||
tag-limit-connections-to-25-per-minute-on-port-80-after-100-connections-have-been-reached:
|
||||
达到 100 次突发连接后,将 80 端口的连接限制为每分钟 25 次
|
||||
tag-iptables-n-mychain: iptables -N MYCHAIN
|
||||
tag-create-a-new-chain-called-mychain: 创建名为 "MYCHAIN" 的新链
|
||||
json-query:
|
||||
title: JSON查询
|
||||
description: 在JSON内容上运行JSON查询语言
|
||||
@@ -8804,22 +8804,22 @@ tools:
|
||||
description: 为各种操作系统生成关机命令
|
||||
externalAccess: 无效的
|
||||
texts:
|
||||
label-windows: 视窗
|
||||
label-windows: Windows
|
||||
label-linux: Linux
|
||||
label-macos: macOS
|
||||
label-delay: 延迟:
|
||||
label-specific-time: 具体时间
|
||||
label-platform: 平台:
|
||||
label-shutdown-time: 关机时间:
|
||||
label-force: 力量
|
||||
label-force: 强制
|
||||
label-reboot: 重启
|
||||
label-logoff: 注销
|
||||
label-cancel: 取消
|
||||
label-hibernate: 冬眠
|
||||
label-hibernate: 休眠
|
||||
title-generated-command: 生成的命令
|
||||
tag-nbsp-h-nbsp: " h "
|
||||
tag-nbsp-m-nbsp: 和
|
||||
tag-nbsp-s: 和
|
||||
tag-nbsp-h-nbsp: 小时
|
||||
tag-nbsp-m-nbsp: 分钟
|
||||
tag-nbsp-s: 秒
|
||||
random-line-picker:
|
||||
title: 随机行选择器
|
||||
description: 从文本输入中随机选择行
|
||||
|
||||
@@ -36,40 +36,41 @@ const fileSystems = [
|
||||
'swap',
|
||||
];
|
||||
|
||||
// `key` maps to `tools.fstab-generator.options.<key>` in this tool's locales/*.yml files.
|
||||
const defaultOptions = [
|
||||
{ value: 'defaults', description: 'Standard mount options (rw, suid, dev, exec, auto, nouser, async).' },
|
||||
{ value: 'noatime', description: 'Prevents access time updates for better performance.' },
|
||||
{ value: 'nodiratime', description: 'Prevents directory access time updates.' },
|
||||
{ value: 'relatime', description: 'Updates access time only when modified or accessed after reboot.' },
|
||||
{ value: 'ro', description: 'Mount filesystem as read-only.' },
|
||||
{ value: 'rw', description: 'Mount filesystem as read/write.' },
|
||||
{ value: 'sync', description: 'Writes synchronously for better integrity.' },
|
||||
{ value: 'async', description: 'Writes asynchronously for better performance.' },
|
||||
{ value: 'user', description: 'Allow normal users to mount the filesystem.' },
|
||||
{ value: 'nouser', description: 'Only root can mount.' },
|
||||
{ value: 'exec', description: 'Allows execution of binaries.' },
|
||||
{ value: 'noexec', description: 'Disables execution of binaries (security measure).' },
|
||||
{ value: 'errors=remount-ro', description: 'Remount as read-only upon errors.' },
|
||||
{ value: 'auto', description: 'Mount automatically at boot.' },
|
||||
{ value: 'noauto', description: 'Requires manual mount.' },
|
||||
{ value: 'dev', description: 'Interpret character or block special devices on the file system.' },
|
||||
{ value: 'nodev', description: 'Do not interpret character or block special devices on the file system.' },
|
||||
{ value: 'suid', description: 'Permit the operation of suid, and sgid bits.' },
|
||||
{ value: 'nosuid', description: 'Block the operation of suid, and sgid bits.' },
|
||||
{ value: 'defaults', key: 'defaults' },
|
||||
{ value: 'noatime', key: 'noatime' },
|
||||
{ value: 'nodiratime', key: 'nodiratime' },
|
||||
{ value: 'relatime', key: 'relatime' },
|
||||
{ value: 'ro', key: 'ro' },
|
||||
{ value: 'rw', key: 'rw' },
|
||||
{ value: 'sync', key: 'sync' },
|
||||
{ value: 'async', key: 'async' },
|
||||
{ value: 'user', key: 'user' },
|
||||
{ value: 'nouser', key: 'nouser' },
|
||||
{ value: 'exec', key: 'exec' },
|
||||
{ value: 'noexec', key: 'noexec' },
|
||||
{ value: 'errors=remount-ro', key: 'errors-remount-ro' },
|
||||
{ value: 'auto', key: 'auto' },
|
||||
{ value: 'noauto', key: 'noauto' },
|
||||
{ value: 'dev', key: 'dev' },
|
||||
{ value: 'nodev', key: 'nodev' },
|
||||
{ value: 'suid', key: 'suid' },
|
||||
{ value: 'nosuid', key: 'nosuid' },
|
||||
];
|
||||
|
||||
const nfsOptions = [
|
||||
{ value: 'vers=3', description: 'Use NFS protocol version 3.' },
|
||||
{ value: 'soft', description: 'Fail after timeout if server is unreachable.' },
|
||||
{ value: 'hard', description: 'Retry indefinitely if server is unreachable.' },
|
||||
{ value: 'rsize=8192,wsize=8192', description: 'Tunable read/write buffer sizes.' },
|
||||
{ value: 'vers=3', key: 'vers3' },
|
||||
{ value: 'soft', key: 'soft' },
|
||||
{ value: 'hard', key: 'hard' },
|
||||
{ value: 'rsize=8192,wsize=8192', key: 'rsize8192-wsize8192' },
|
||||
];
|
||||
|
||||
const cifsOptions = [{ value: 'sec=ntlm', description: 'Use NTLM security protocol.' }];
|
||||
const cifsOptions = [{ value: 'sec=ntlm', key: 'sec-ntlm' }];
|
||||
|
||||
const tmpfsOptions = [
|
||||
{ value: 'size=512M', description: 'Define tmpfs size limit.' },
|
||||
{ value: 'mode=1777', description: 'Set permissions on tmpfs mount.' },
|
||||
{ value: 'size=512M', key: 'size512m' },
|
||||
{ value: 'mode=1777', key: 'mode1777' },
|
||||
];
|
||||
|
||||
const filesystemOptions = computed(() => {
|
||||
@@ -133,7 +134,12 @@ const fstabLine = computed(() => {
|
||||
)
|
||||
"
|
||||
multiple
|
||||
:options="filesystemOptions.map((o) => ({ value: o.value, label: `${o.description} (${o.value})` }))"
|
||||
:options="
|
||||
filesystemOptions.map((o) => ({
|
||||
value: o.value,
|
||||
label: `${t('tools.fstab-generator.options.' + o.key)} (${o.value})`,
|
||||
}))
|
||||
"
|
||||
/>
|
||||
</NFormItem>
|
||||
|
||||
|
||||
@@ -0,0 +1,29 @@
|
||||
tools:
|
||||
fstab-generator:
|
||||
options:
|
||||
defaults: Standard mount options (rw, suid, dev, exec, auto, nouser, async).
|
||||
noatime: Prevents access time updates for better performance.
|
||||
nodiratime: Prevents directory access time updates.
|
||||
relatime: Updates access time only when modified or accessed after reboot.
|
||||
ro: Mount filesystem as read-only.
|
||||
rw: Mount filesystem as read/write.
|
||||
sync: Writes synchronously for better integrity.
|
||||
async: Writes asynchronously for better performance.
|
||||
user: Allow normal users to mount the filesystem.
|
||||
nouser: Only root can mount.
|
||||
exec: Allows execution of binaries.
|
||||
noexec: Disables execution of binaries (security measure).
|
||||
errors-remount-ro: Remount as read-only upon errors.
|
||||
auto: Mount automatically at boot.
|
||||
noauto: Requires manual mount.
|
||||
dev: Interpret character or block special devices on the file system.
|
||||
nodev: Do not interpret character or block special devices on the file system.
|
||||
suid: Permit the operation of suid, and sgid bits.
|
||||
nosuid: Block the operation of suid, and sgid bits.
|
||||
vers3: Use NFS protocol version 3.
|
||||
soft: Fail after timeout if server is unreachable.
|
||||
hard: Retry indefinitely if server is unreachable.
|
||||
rsize8192-wsize8192: Tunable read/write buffer sizes.
|
||||
sec-ntlm: Use NTLM security protocol.
|
||||
size512m: Define tmpfs size limit.
|
||||
mode1777: Set permissions on tmpfs mount.
|
||||
@@ -0,0 +1,29 @@
|
||||
tools:
|
||||
fstab-generator:
|
||||
options:
|
||||
defaults: 标准挂载选项(rw, suid, dev, exec, auto, nouser, async)。
|
||||
noatime: 不更新访问时间,以提升性能。
|
||||
nodiratime: 不更新目录的访问时间。
|
||||
relatime: 仅在文件被修改或重启后访问时才更新访问时间。
|
||||
ro: 以只读方式挂载文件系统。
|
||||
rw: 以读写方式挂载文件系统。
|
||||
sync: 同步写入,以提升数据完整性。
|
||||
async: 异步写入,以提升性能。
|
||||
user: 允许普通用户挂载该文件系统。
|
||||
nouser: 仅 root 可以挂载。
|
||||
exec: 允许执行二进制文件。
|
||||
noexec: 禁止执行二进制文件(安全措施)。
|
||||
errors-remount-ro: 发生错误时以只读方式重新挂载。
|
||||
auto: 开机时自动挂载。
|
||||
noauto: 需要手动挂载。
|
||||
dev: 解析文件系统上的字符设备或块设备。
|
||||
nodev: 不解析文件系统上的字符设备或块设备。
|
||||
suid: 允许 suid 和 sgid 位的生效。
|
||||
nosuid: 阻止 suid 和 sgid 位的生效。
|
||||
vers3: 使用 NFS 协议版本 3。
|
||||
soft: 服务器不可达时超时后失败。
|
||||
hard: 服务器不可达时无限重试。
|
||||
rsize8192-wsize8192: 可调的读写缓冲区大小。
|
||||
sec-ntlm: 使用 NTLM 安全协议。
|
||||
size512m: 定义 tmpfs 大小限制。
|
||||
mode1777: 设置 tmpfs 挂载点的权限。
|
||||
@@ -30,11 +30,22 @@ const sourcePort = ref<number | null>(null);
|
||||
const destinationPort = ref<number | null>(null);
|
||||
const ruleOrder = ref<number | null>(null);
|
||||
const chain = ref('INPUT');
|
||||
const command = computed(() => {
|
||||
let cmd = `iptables -A ${chain.value}`;
|
||||
if (ruleOrder.value) {
|
||||
cmd += ` ${ruleOrder.value}`;
|
||||
|
||||
// ports only exist on transport protocols, `--sport`/`--dport` are rejected by iptables otherwise
|
||||
const portProtocols = ['tcp', 'udp'];
|
||||
const isPortSupported = computed(() => portProtocols.includes(protocol.value));
|
||||
|
||||
watch(protocol, (newProtocol) => {
|
||||
if (!portProtocols.includes(newProtocol)) {
|
||||
sourcePort.value = null;
|
||||
destinationPort.value = null;
|
||||
}
|
||||
});
|
||||
|
||||
const command = computed(() => {
|
||||
// -A appends and takes no rule number, inserting at a given position requires -I
|
||||
const insertAt = ruleOrder.value && ruleOrder.value > 0 ? ruleOrder.value : null;
|
||||
let cmd = insertAt === null ? `iptables -A ${chain.value}` : `iptables -I ${chain.value} ${insertAt}`;
|
||||
if (protocol.value) {
|
||||
cmd += ` -p ${protocol.value}`;
|
||||
}
|
||||
@@ -44,11 +55,13 @@ const command = computed(() => {
|
||||
if (destinationIP.value) {
|
||||
cmd += ` -d ${destinationIP.value}`;
|
||||
}
|
||||
if (sourcePort.value !== null) {
|
||||
cmd += ` --sport ${sourcePort.value}`;
|
||||
}
|
||||
if (destinationPort.value !== null) {
|
||||
cmd += ` --dport ${destinationPort.value}`;
|
||||
if (isPortSupported.value) {
|
||||
if (sourcePort.value !== null) {
|
||||
cmd += ` --sport ${sourcePort.value}`;
|
||||
}
|
||||
if (destinationPort.value !== null) {
|
||||
cmd += ` --dport ${destinationPort.value}`;
|
||||
}
|
||||
}
|
||||
cmd += ` -j ${action.value}`;
|
||||
return cmd;
|
||||
@@ -70,16 +83,16 @@ const command = computed(() => {
|
||||
<NInput v-model:value="destinationIP" />
|
||||
</NFormItem>
|
||||
<NFormItem :label="t('tools.iptables-generator.texts.label-source-port')">
|
||||
<n-input-number-i18n v-model:value="sourcePort" />
|
||||
<n-input-number-i18n v-model:value="sourcePort" :disabled="!isPortSupported" />
|
||||
</NFormItem>
|
||||
<NFormItem :label="t('tools.iptables-generator.texts.label-destination-port')">
|
||||
<n-input-number-i18n v-model:value="destinationPort" />
|
||||
<n-input-number-i18n v-model:value="destinationPort" :disabled="!isPortSupported" />
|
||||
</NFormItem>
|
||||
<NFormItem :label="t('tools.iptables-generator.texts.label-chain')">
|
||||
<NSelect v-model:value="chain" :options="chainOptions" />
|
||||
</NFormItem>
|
||||
<NFormItem :label="t('tools.iptables-generator.texts.label-rule-order')">
|
||||
<n-input-number-i18n v-model:value="ruleOrder" />
|
||||
<n-input-number-i18n v-model:value="ruleOrder" :min="1" />
|
||||
</NFormItem>
|
||||
</NForm>
|
||||
|
||||
|
||||
@@ -149,6 +149,10 @@ function buildMacCommand() {
|
||||
return `sudo shutdown ${args.join(' ')}`;
|
||||
}
|
||||
|
||||
// Some translations keep ` ` entities for spacing around the unit label,
|
||||
// they would be displayed as plain text, so they are converted to real spaces.
|
||||
const unitLabel = (key: string) => t(`tools.shutdown-command-generator.texts.${key}`).replaceAll(' ', ' ').trim();
|
||||
|
||||
// --- Final Command ----------------------------------------------------------
|
||||
|
||||
const command = computed(() => {
|
||||
@@ -183,13 +187,14 @@ const command = computed(() => {
|
||||
|
||||
<NSpace v-if="mode === 'delay'" justify="center" mb-1>
|
||||
<NFormItem :label="t('tools.shutdown-command-generator.texts.label-delay')" label-placement="left" mb-1>
|
||||
<NInputNumber v-model:value="delayHours" :min="0" />{{
|
||||
t('tools.shutdown-command-generator.texts.tag-nbsp-h-nbsp')
|
||||
}}<NInputNumber v-model:value="delayMinutes" :min="0" />{{
|
||||
t('tools.shutdown-command-generator.texts.tag-nbsp-m-nbsp')
|
||||
}}<NInputNumber v-model:value="delaySeconds" :min="0" />{{
|
||||
t('tools.shutdown-command-generator.texts.tag-nbsp-s')
|
||||
}}
|
||||
<div flex items-center gap-2>
|
||||
<NInputNumber v-model:value="delayHours" :min="0" />
|
||||
<span>{{ unitLabel('tag-nbsp-h-nbsp') }}</span>
|
||||
<NInputNumber v-model:value="delayMinutes" :min="0" />
|
||||
<span>{{ unitLabel('tag-nbsp-m-nbsp') }}</span>
|
||||
<NInputNumber v-model:value="delaySeconds" :min="0" />
|
||||
<span>{{ unitLabel('tag-nbsp-s') }}</span>
|
||||
</div>
|
||||
</NFormItem>
|
||||
</NSpace>
|
||||
|
||||
|
||||
Reference in new issue
Block a user