Compare commits
95 Commits
| Author | SHA1 | Date | |
|---|---|---|---|
| 7964dc7993 | |||
| 0ac5d7d461 | |||
| 826914a4f3 | |||
| 261da431e7 | |||
| 94b33abf5e | |||
| 8325056ccc | |||
| 81a1b2c907 | |||
| fc8f89fb83 | |||
| d846c7745f | |||
| 61c6fd6c02 | |||
| abe5708058 | |||
| 626339bddb | |||
| 381ae23c07 | |||
| 52382d1d7a | |||
| 68e5216d4b | |||
| ceff95b336 | |||
| 782d1c215f | |||
| e8e26cfe10 | |||
| 400d4d992e | |||
| b08df55321 | |||
| b26a8110e0 | |||
| 692f550596 | |||
| badae8b8e4 | |||
| 7f89bde99e | |||
| 326717444b | |||
| 4e4bfc75e3 | |||
| 5c97a8ba73 | |||
| cba7a160ea | |||
| 4a75e1379d | |||
| 10a140d188 | |||
| edc3c5af57 | |||
| 26708305d6 | |||
| 6a282e6ab9 | |||
| a8ba7f7247 | |||
| 502fe718d5 | |||
| 5c7aac9fd2 | |||
| 2f96d9934b | |||
| daff15463d | |||
| 5f68d261c0 | |||
| 013ea6dba9 | |||
| ab9d75757f | |||
| 9be20109af | |||
| 9430b76258 | |||
| 99f1a004d5 | |||
| 2b42b639ea | |||
| 76d5944726 | |||
| 81bd19cfb6 | |||
| 0365ca7fb6 | |||
| 529d65b3fb | |||
| cbbf5d3d25 | |||
| 7b2d234ea5 | |||
| a282ca35f1 | |||
| 0792862c0d | |||
| 6c0d8e91fa | |||
| 8892c43a7d | |||
| 7cfe04286a | |||
| 000513f212 | |||
| 6ca3da1b80 | |||
| fe394ecbe4 | |||
| ec6f0423ca | |||
| e12208af75 | |||
| 2d9c75fd81 | |||
| 0c54b1c3da | |||
| be7943dc9b | |||
| 303c2f1e39 | |||
| 0b32ab899c | |||
| ef463d3d85 | |||
| c10daa2fd4 | |||
| cb8aa45cde | |||
| 54e0a1e886 | |||
| 71a452080e | |||
| 5be7fb3038 | |||
| 59f0c8b0d2 | |||
| e1ed93674d | |||
| 6b65a8099b | |||
| c1dd494d0f | |||
| bf9e8a6e21 | |||
| 371d7617ff | |||
| 0b435d9ed8 | |||
| 07f89d15a9 | |||
| b5318086d2 | |||
| b7f9b7c830 | |||
| 2e4f386f49 | |||
| 9ead985798 | |||
| 6326ee31c4 | |||
| 984dc95550 | |||
| cd0a9b8e33 | |||
| 90b9ba15ec | |||
| 0abc419db7 | |||
| b185d7a63d | |||
| 4bb880c4b7 | |||
| b0ba9e43f9 | |||
| ddb01fb968 | |||
| 22812e0632 | |||
| 4d84e1d9d3 |
@@ -27,17 +27,17 @@ jobs:
|
||||
|
||||
steps:
|
||||
- name: Checkout repository
|
||||
uses: actions/checkout@v4
|
||||
uses: actions/checkout@v6
|
||||
|
||||
- name: Initialize CodeQL
|
||||
uses: github/codeql-action/init@v3
|
||||
uses: github/codeql-action/init@v4
|
||||
with:
|
||||
languages: ${{ matrix.language }}
|
||||
|
||||
- name: Autobuild
|
||||
uses: github/codeql-action/autobuild@v3
|
||||
uses: github/codeql-action/autobuild@v4
|
||||
|
||||
- name: Perform CodeQL Analysis
|
||||
uses: github/codeql-action/analyze@v3
|
||||
uses: github/codeql-action/analyze@v4
|
||||
with:
|
||||
category: "/language:${{matrix.language}}"
|
||||
|
||||
@@ -18,10 +18,10 @@ jobs:
|
||||
os: ubuntu-latest
|
||||
- platform: linux/arm64
|
||||
os: ubuntu-24.04-arm
|
||||
- platform: linux/arm/v7
|
||||
os: ubuntu-24.04-arm
|
||||
# - platform: linux/arm/v7
|
||||
# os: ubuntu-24.04-arm
|
||||
steps:
|
||||
- uses: actions/checkout@v4
|
||||
- uses: actions/checkout@v6
|
||||
|
||||
- name: Prepare
|
||||
run: |
|
||||
@@ -69,7 +69,7 @@ jobs:
|
||||
touch "${{ runner.temp }}/digests/${digest#sha256:}"
|
||||
|
||||
- name: Upload digest
|
||||
uses: actions/upload-artifact@v4
|
||||
uses: actions/upload-artifact@v6
|
||||
with:
|
||||
name: digests-${{ env.PLATFORM_PAIR }}
|
||||
path: ${{ runner.temp }}/digests/*
|
||||
@@ -85,7 +85,7 @@ jobs:
|
||||
needs: docker-build
|
||||
steps:
|
||||
- name: Download digests
|
||||
uses: actions/download-artifact@v4
|
||||
uses: actions/download-artifact@v7
|
||||
with:
|
||||
path: ${{ runner.temp }}/digests
|
||||
pattern: digests-*
|
||||
@@ -98,6 +98,13 @@ jobs:
|
||||
username: ${{ github.actor }}
|
||||
password: ${{ secrets.GITHUB_TOKEN }}
|
||||
|
||||
- name: Login to Codeberg
|
||||
uses: docker/login-action@v3
|
||||
with:
|
||||
registry: codeberg.org
|
||||
username: ${{ secrets.CODEBERG_USER }}
|
||||
password: ${{ secrets.CODEBERG_PASS }}
|
||||
|
||||
- name: Set up Docker Buildx
|
||||
uses: docker/setup-buildx-action@v3
|
||||
|
||||
@@ -107,6 +114,7 @@ jobs:
|
||||
with:
|
||||
images: |
|
||||
ghcr.io/wg-easy/wg-easy
|
||||
codeberg.org/wg-easy/wg-easy
|
||||
flavor: |
|
||||
latest=false
|
||||
tags: |
|
||||
@@ -130,10 +138,10 @@ jobs:
|
||||
contents: write
|
||||
needs: docker-merge
|
||||
steps:
|
||||
- uses: actions/checkout@v4
|
||||
- uses: actions/checkout@v6
|
||||
|
||||
- name: Setup Python
|
||||
uses: actions/setup-python@v5
|
||||
uses: actions/setup-python@v6
|
||||
with:
|
||||
python-version: 3.11.9
|
||||
cache: "pip"
|
||||
|
||||
@@ -25,10 +25,10 @@ jobs:
|
||||
os: ubuntu-latest
|
||||
- platform: linux/arm64
|
||||
os: ubuntu-24.04-arm
|
||||
- platform: linux/arm/v7
|
||||
os: ubuntu-24.04-arm
|
||||
# - platform: linux/arm/v7
|
||||
# os: ubuntu-24.04-arm
|
||||
steps:
|
||||
- uses: actions/checkout@v4
|
||||
- uses: actions/checkout@v6
|
||||
with:
|
||||
ref: master
|
||||
|
||||
@@ -78,7 +78,7 @@ jobs:
|
||||
touch "${{ runner.temp }}/digests/${digest#sha256:}"
|
||||
|
||||
- name: Upload digest
|
||||
uses: actions/upload-artifact@v4
|
||||
uses: actions/upload-artifact@v6
|
||||
with:
|
||||
name: digests-${{ env.PLATFORM_PAIR }}
|
||||
path: ${{ runner.temp }}/digests/*
|
||||
@@ -94,7 +94,7 @@ jobs:
|
||||
needs: docker-build
|
||||
steps:
|
||||
- name: Download digests
|
||||
uses: actions/download-artifact@v4
|
||||
uses: actions/download-artifact@v7
|
||||
with:
|
||||
path: ${{ runner.temp }}/digests
|
||||
pattern: digests-*
|
||||
@@ -107,6 +107,13 @@ jobs:
|
||||
username: ${{ github.actor }}
|
||||
password: ${{ secrets.GITHUB_TOKEN }}
|
||||
|
||||
- name: Login to Codeberg
|
||||
uses: docker/login-action@v3
|
||||
with:
|
||||
registry: codeberg.org
|
||||
username: ${{ secrets.CODEBERG_USER }}
|
||||
password: ${{ secrets.CODEBERG_PASS }}
|
||||
|
||||
- name: Set up Docker Buildx
|
||||
uses: docker/setup-buildx-action@v3
|
||||
|
||||
@@ -116,6 +123,7 @@ jobs:
|
||||
with:
|
||||
images: |
|
||||
ghcr.io/wg-easy/wg-easy
|
||||
codeberg.org/wg-easy/wg-easy
|
||||
flavor: |
|
||||
latest=false
|
||||
tags: |
|
||||
@@ -139,12 +147,12 @@ jobs:
|
||||
contents: write
|
||||
needs: docker-merge
|
||||
steps:
|
||||
- uses: actions/checkout@v4
|
||||
- uses: actions/checkout@v6
|
||||
with:
|
||||
ref: master
|
||||
|
||||
- name: Setup Python
|
||||
uses: actions/setup-python@v5
|
||||
uses: actions/setup-python@v6
|
||||
with:
|
||||
python-version: 3.11.9
|
||||
cache: "pip"
|
||||
|
||||
@@ -21,10 +21,10 @@ jobs:
|
||||
os: ubuntu-latest
|
||||
- platform: linux/arm64
|
||||
os: ubuntu-24.04-arm
|
||||
- platform: linux/arm/v7
|
||||
os: ubuntu-24.04-arm
|
||||
# - platform: linux/arm/v7
|
||||
# os: ubuntu-24.04-arm
|
||||
steps:
|
||||
- uses: actions/checkout@v4
|
||||
- uses: actions/checkout@v6
|
||||
|
||||
- name: Prepare
|
||||
run: |
|
||||
|
||||
@@ -26,10 +26,10 @@ jobs:
|
||||
os: ubuntu-latest
|
||||
- platform: linux/arm64
|
||||
os: ubuntu-24.04-arm
|
||||
- platform: linux/arm/v7
|
||||
os: ubuntu-24.04-arm
|
||||
# - platform: linux/arm/v7
|
||||
# os: ubuntu-24.04-arm
|
||||
steps:
|
||||
- uses: actions/checkout@v4
|
||||
- uses: actions/checkout@v6
|
||||
|
||||
- name: Prepare
|
||||
run: |
|
||||
@@ -77,7 +77,7 @@ jobs:
|
||||
touch "${{ runner.temp }}/digests/${digest#sha256:}"
|
||||
|
||||
- name: Upload digest
|
||||
uses: actions/upload-artifact@v4
|
||||
uses: actions/upload-artifact@v6
|
||||
with:
|
||||
name: digests-${{ env.PLATFORM_PAIR }}
|
||||
path: ${{ runner.temp }}/digests/*
|
||||
@@ -95,7 +95,7 @@ jobs:
|
||||
needs: docker-build
|
||||
steps:
|
||||
- name: Download digests
|
||||
uses: actions/download-artifact@v4
|
||||
uses: actions/download-artifact@v7
|
||||
with:
|
||||
path: ${{ runner.temp }}/digests
|
||||
pattern: digests-*
|
||||
@@ -108,6 +108,13 @@ jobs:
|
||||
username: ${{ github.actor }}
|
||||
password: ${{ secrets.GITHUB_TOKEN }}
|
||||
|
||||
- name: Login to Codeberg
|
||||
uses: docker/login-action@v3
|
||||
with:
|
||||
registry: codeberg.org
|
||||
username: ${{ secrets.CODEBERG_USER }}
|
||||
password: ${{ secrets.CODEBERG_PASS }}
|
||||
|
||||
- name: Set up Docker Buildx
|
||||
uses: docker/setup-buildx-action@v3
|
||||
|
||||
@@ -117,6 +124,7 @@ jobs:
|
||||
with:
|
||||
images: |
|
||||
ghcr.io/wg-easy/wg-easy
|
||||
codeberg.org/wg-easy/wg-easy
|
||||
flavor: |
|
||||
latest=false
|
||||
tags: |
|
||||
@@ -144,10 +152,10 @@ jobs:
|
||||
contents: write
|
||||
needs: docker-merge
|
||||
steps:
|
||||
- uses: actions/checkout@v4
|
||||
- uses: actions/checkout@v6
|
||||
|
||||
- name: Setup Python
|
||||
uses: actions/setup-python@v5
|
||||
uses: actions/setup-python@v6
|
||||
with:
|
||||
python-version: 3.11.9
|
||||
cache: "pip"
|
||||
|
||||
@@ -14,7 +14,7 @@ jobs:
|
||||
|
||||
steps:
|
||||
- name: Checkout repository
|
||||
uses: actions/checkout@v4
|
||||
uses: actions/checkout@v6
|
||||
|
||||
- uses: pnpm/action-setup@v4
|
||||
name: Install pnpm
|
||||
@@ -22,9 +22,9 @@ jobs:
|
||||
run_install: false
|
||||
|
||||
- name: Setup Node
|
||||
uses: actions/setup-node@v4
|
||||
uses: actions/setup-node@v6
|
||||
with:
|
||||
node-version: "lts/*"
|
||||
node-version: "lts/jod"
|
||||
check-latest: true
|
||||
cache: "pnpm"
|
||||
|
||||
@@ -47,7 +47,7 @@ jobs:
|
||||
|
||||
steps:
|
||||
- name: Checkout repository
|
||||
uses: actions/checkout@v4
|
||||
uses: actions/checkout@v6
|
||||
|
||||
- uses: pnpm/action-setup@v4
|
||||
name: Install pnpm
|
||||
@@ -55,9 +55,9 @@ jobs:
|
||||
run_install: false
|
||||
|
||||
- name: Setup Node
|
||||
uses: actions/setup-node@v4
|
||||
uses: actions/setup-node@v6
|
||||
with:
|
||||
node-version: "lts/*"
|
||||
node-version: "lts/jod"
|
||||
check-latest: true
|
||||
cache: "pnpm"
|
||||
|
||||
|
||||
@@ -15,13 +15,16 @@ jobs:
|
||||
runs-on: ubuntu-latest
|
||||
if: github.repository_owner == 'wg-easy'
|
||||
permissions:
|
||||
actions: write
|
||||
issues: write
|
||||
pull-requests: write
|
||||
|
||||
steps:
|
||||
- uses: actions/stale@v9
|
||||
- uses: actions/stale@v10
|
||||
with:
|
||||
# Stale after 30 days of inactivity
|
||||
days-before-issue-stale: 30
|
||||
# Close after 14 days of being stale
|
||||
days-before-issue-close: 14
|
||||
stale-issue-label: "stale"
|
||||
stale-issue-message: "This issue is stale because it has been open for 30 days with no activity."
|
||||
@@ -32,3 +35,9 @@ jobs:
|
||||
close-pr-message: "This PR was closed because it has been inactive for 14 days since being marked as stale."
|
||||
repo-token: ${{ secrets.GITHUB_TOKEN }}
|
||||
operations-per-run: 100
|
||||
# Ignore Feature requests (https://github.com/actions/stale/issues/1293)
|
||||
only-issue-types: "Bug"
|
||||
# Ignore confirmed bugs
|
||||
exempt-issue-labels: "status: confirmed"
|
||||
# Ignore PRs with milestones
|
||||
exempt-all-pr-milestones: true
|
||||
|
||||
Vendored
-2
@@ -3,8 +3,6 @@
|
||||
"aaron-bond.better-comments",
|
||||
"dbaeumer.vscode-eslint",
|
||||
"antfu.goto-alias",
|
||||
"visualstudioexptteam.vscodeintellicode",
|
||||
"Nuxtr.nuxtr-vscode",
|
||||
"esbenp.prettier-vscode",
|
||||
"yoavbls.pretty-ts-errors",
|
||||
"bradlc.vscode-tailwindcss",
|
||||
|
||||
Vendored
-3
@@ -3,9 +3,6 @@
|
||||
"editor.useTabStops": false,
|
||||
"editor.defaultFormatter": "esbenp.prettier-vscode",
|
||||
"editor.formatOnSave": true,
|
||||
"nuxtr.vueFiles.style.addStyleTag": false,
|
||||
"nuxtr.piniaFiles.defaultTemplate": "setup",
|
||||
"nuxtr.monorepoMode.DirectoryName": "src",
|
||||
"editor.codeActionsOnSave": {
|
||||
"source.fixAll.eslint": "always"
|
||||
},
|
||||
|
||||
+41
-5
@@ -5,9 +5,45 @@ All notable changes to this project will be documented in this file.
|
||||
The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.1.0/),
|
||||
and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html).
|
||||
|
||||
## [Unreleased]
|
||||
|
||||
## [15.2.0] - 2026-01-12
|
||||
|
||||
### Added
|
||||
|
||||
- AmneziaWG integration (https://github.com/wg-easy/wg-easy/pull/2102, https://github.com/wg-easy/wg-easy/pull/2226)
|
||||
- Search / filter box (https://github.com/wg-easy/wg-easy/pull/2170)
|
||||
- `INIT_ALLOWED_IPS` env var (https://github.com/wg-easy/wg-easy/pull/2164)
|
||||
- Show client endpoint (https://github.com/wg-easy/wg-easy/pull/2058)
|
||||
- Add option to view and copy config (https://github.com/wg-easy/wg-easy/pull/2289)
|
||||
|
||||
### Fixed
|
||||
|
||||
- Fix download as conf.txt (https://github.com/wg-easy/wg-easy/pull/2269)
|
||||
- Clean filename for OTL download (https://github.com/wg-easy/wg-easy/pull/2253)
|
||||
- Text color in admin menu in light mode (https://github.com/wg-easy/wg-easy/pull/2307)
|
||||
|
||||
### Changed
|
||||
|
||||
- Allow lower MTU (https://github.com/wg-easy/wg-easy/pull/2228)
|
||||
- Use /32 and /128 for client Cidr (https://github.com/wg-easy/wg-easy/pull/2217)
|
||||
- Return client id on create (https://github.com/wg-easy/wg-easy/pull/2190)
|
||||
- Publish on Codeberg (https://github.com/wg-easy/wg-easy/pull/2160)
|
||||
- Allow empty DNS (https://github.com/wg-easy/wg-easy/pull/2052, https://github.com/wg-easy/wg-easy/pull/2057)
|
||||
- Don't include keys in API responses (https://github.com/wg-easy/wg-easy/pull/2015)
|
||||
- Try all QR ecc levels (https://github.com/wg-easy/wg-easy/pull/2288)
|
||||
- Update OneTimeLink expiry on reuse (https://github.com/wg-easy/wg-easy/pull/2370)
|
||||
- Removed ARMv7 support (https://github.com/wg-easy/wg-easy/pull/2369)
|
||||
|
||||
### Docs
|
||||
|
||||
- Add AdGuard Home (https://github.com/wg-easy/wg-easy/pull/2175)
|
||||
- Add Routed (No NAT) docs (https://github.com/wg-easy/wg-easy/pull/2181, https://github.com/wg-easy/wg-easy/pull/2380)
|
||||
- Add AmneziaWG docs (https://github.com/wg-easy/wg-easy/pull/2108, https://github.com/wg-easy/wg-easy/pull/2292)
|
||||
|
||||
## [15.1.0] - 2025-07-01
|
||||
|
||||
## Added
|
||||
### Added
|
||||
|
||||
- Added Ukrainian language (#1906)
|
||||
- Add French language (#1924)
|
||||
@@ -18,12 +54,12 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
|
||||
- Add Chinese Simplified (#1990)
|
||||
- Add option to disable ipv6 (#1951)
|
||||
|
||||
## Fixed
|
||||
### Fixed
|
||||
|
||||
- Updated container launch commands (#1989)
|
||||
- update screenshot (962bfa2)
|
||||
|
||||
## Changed
|
||||
### Changed
|
||||
|
||||
- Updated dependencies
|
||||
|
||||
@@ -32,11 +68,11 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
|
||||
We're super excited to announce v15!
|
||||
This update is an entire rewrite to make it even easier to set up your own VPN.
|
||||
|
||||
## Breaking Changes
|
||||
### Breaking Changes
|
||||
|
||||
As the whole setup has changed, we recommend to start from scratch. And import your existing configs.
|
||||
|
||||
## Major Changes
|
||||
### Major Changes
|
||||
|
||||
- Almost all Environment variables removed
|
||||
- New and Improved UI
|
||||
|
||||
+15
-2
@@ -1,4 +1,4 @@
|
||||
FROM docker.io/library/node:lts-alpine AS build
|
||||
FROM docker.io/library/node:jod-alpine AS build
|
||||
WORKDIR /app
|
||||
|
||||
# update corepack
|
||||
@@ -14,9 +14,15 @@ RUN pnpm install
|
||||
COPY src ./
|
||||
RUN pnpm build
|
||||
|
||||
# Build amneziawg-tools
|
||||
RUN apk add linux-headers build-base git && \
|
||||
git clone https://github.com/amnezia-vpn/amneziawg-tools.git && \
|
||||
cd amneziawg-tools/src && \
|
||||
make
|
||||
|
||||
# Copy build result to a new image.
|
||||
# This saves a lot of disk space.
|
||||
FROM docker.io/library/node:lts-alpine
|
||||
FROM docker.io/library/node:jod-alpine
|
||||
WORKDIR /app
|
||||
|
||||
HEALTHCHECK --interval=1m --timeout=5s --retries=3 CMD /usr/bin/timeout 5s /bin/sh -c "/usr/bin/wg show | /bin/grep -q interface || exit 1"
|
||||
@@ -32,6 +38,10 @@ RUN cd /app/server && \
|
||||
# cli
|
||||
COPY --from=build /app/cli/cli.sh /usr/local/bin/cli
|
||||
RUN chmod +x /usr/local/bin/cli
|
||||
# Copy amneziawg-tools
|
||||
COPY --from=build /app/amneziawg-tools/src/wg /usr/bin/awg
|
||||
COPY --from=build /app/amneziawg-tools/src/wg-quick/linux.bash /usr/bin/awg-quick
|
||||
RUN chmod +x /usr/bin/awg /usr/bin/awg-quick
|
||||
|
||||
# Install Linux packages
|
||||
RUN apk add --no-cache \
|
||||
@@ -44,6 +54,9 @@ RUN apk add --no-cache \
|
||||
iptables-legacy \
|
||||
wireguard-tools
|
||||
|
||||
RUN mkdir -p /etc/amnezia
|
||||
RUN ln -s /etc/wireguard /etc/amnezia/amneziawg
|
||||
|
||||
# Use iptables-legacy
|
||||
RUN update-alternatives --install /usr/sbin/iptables iptables /usr/sbin/iptables-legacy 10 --slave /usr/sbin/iptables-restore iptables-restore /usr/sbin/iptables-legacy-restore --slave /usr/sbin/iptables-save iptables-save /usr/sbin/iptables-legacy-save
|
||||
RUN update-alternatives --install /usr/sbin/ip6tables ip6tables /usr/sbin/ip6tables-legacy 10 --slave /usr/sbin/ip6tables-restore ip6tables-restore /usr/sbin/ip6tables-legacy-restore --slave /usr/sbin/ip6tables-save ip6tables-save /usr/sbin/ip6tables-legacy-save
|
||||
|
||||
+1
-1
@@ -1,4 +1,4 @@
|
||||
FROM docker.io/library/node:lts-alpine
|
||||
FROM docker.io/library/node:jod-alpine
|
||||
WORKDIR /app
|
||||
|
||||
# update corepack
|
||||
|
||||
@@ -68,11 +68,11 @@ And log in again.
|
||||
|
||||
The easiest way to run WireGuard Easy is with Docker Compose.
|
||||
|
||||
Just download [`docker-compose.yml`](docker-compose.yml) and execute `sudo docker compose up -d`.
|
||||
Just follow [these steps](https://wg-easy.github.io/wg-easy/latest/examples/tutorials/basic-installation/) in the detailed documentation.
|
||||
|
||||
Now setup a reverse proxy to be able to access the Web UI securely from the internet.
|
||||
You can also install WireGuard Easy with the [docker run command](https://wg-easy.github.io/wg-easy/latest/examples/tutorials/docker-run/) or via [podman](https://wg-easy.github.io/wg-easy/latest/examples/tutorials/podman-nft/).
|
||||
|
||||
If you want to access the Web UI over HTTP, change the env var `INSECURE` to `true`. This is not recommended. Only use this for testing
|
||||
Now [setup a reverse proxy](https://wg-easy.github.io/wg-easy/latest/examples/tutorials/basic-installation/#setup-reverse-proxy) to be able to access the Web UI securely from the internet. This step is optional, just make sure to follow the guide [here](https://wg-easy.github.io/wg-easy/latest/examples/tutorials/reverse-proxyless/) if you decide not to do it.
|
||||
|
||||
## Donate
|
||||
|
||||
|
||||
@@ -0,0 +1,79 @@
|
||||
---
|
||||
title: AmneziaWG
|
||||
---
|
||||
|
||||
## Introduction
|
||||
|
||||
**AmneziaWG** is a modified version of the WireGuard protocol with enhanced traffic obfuscation capabilities. AmneziaWG's primary goal is to counter deep packet inspection (DPI) systems and bypass VPN blocking.
|
||||
|
||||
AmneziaWG adds multi-level transport-layer obfuscation by:
|
||||
|
||||
- Modifying packet headers
|
||||
- Randomizing handshake message sizes
|
||||
- Disguising traffic to resemble popular UDP protocols
|
||||
|
||||
These measures make it harder for third parties to analyze or identify your traffic, enhancing both privacy and security.
|
||||
|
||||
## Activating AmneziaWG
|
||||
|
||||
You must install the [AmneziaWG kernel module](https://github.com/amnezia-vpn/amneziawg-linux-kernel-module) on the host system.
|
||||
|
||||
Experimental support for AmneziaWG can be enabled by setting the `EXPERIMENTAL_AWG` environment variable to `true`. Starting from wg-easy version 16, this setting will be enabled by default. This feature is still under development and may change in future releases.
|
||||
|
||||
When enabled, wg-easy will automatically detect whether the AmneziaWG kernel module is available. If it is not, the system will fall back to the standard WireGuard module.
|
||||
|
||||
To override this automatic detection, set the `OVERRIDE_AUTO_AWG` environment variable. By default, this variable is unset.
|
||||
|
||||
Possible values:
|
||||
|
||||
- `awg` — Force use of AmneziaWG
|
||||
- `wg` — Force use of standard WireGuard
|
||||
|
||||
## AmneziaWG Parameters
|
||||
|
||||
Parameter descriptions can be found in the [AmneziaWG documentation](https://docs.amnezia.org/documentation/amnezia-wg) and on the [kernel module page](https://github.com/amnezia-vpn/amneziawg-linux-kernel-module).
|
||||
|
||||
All parameters except I1-I5 will be set at first startup. For information on how to set I1-I5 parameters, refer to the [AmneziaWG documentation](https://docs.amnezia.org/documentation/instructions/new-amneziawg-selfhosted/#how-to-extract-a-protocol-signature-for-amneziawg-15-manually).
|
||||
|
||||
If a parameter is not set, it will not be added to the configuration. If all AmneziaWG-specific parameters are absent, AmneziaWG will be fully compatible with standard WireGuard.
|
||||
|
||||
### Parameter Compatibility Table
|
||||
|
||||
| Parameter | Can differ between server and client | Configurable on server | Configurable on client |
|
||||
| --------- | ------------------------------------ | ---------------------- | ----------------------- |
|
||||
| Jc | ✅ Yes | ✅ | ✅ |
|
||||
| Jmin | ✅ Yes | ✅ | ✅ |
|
||||
| Jmax | ✅ Yes | ✅ | ✅ |
|
||||
| S1-S4 | ❌ No, must match | ✅ | ❌ (copied from server) |
|
||||
| H1-H4 | ❌ No, must match | ✅ | ❌ (copied from server) |
|
||||
| I1-I5 | ✅ Yes | ✅ | ✅ |
|
||||
|
||||
## Client Applications
|
||||
|
||||
To be able to connect to wg-easy if AmneziaWG is enabled, you must have an AmneziaWG-compatible client. Currently, only WG Tunnel and Amnezia VPN supports AmneziaWG 1.5/2.0! AmneziaWG clients require building from source code.
|
||||
|
||||
Android:
|
||||
|
||||
- [Amnezia VPN](https://play.google.com/store/apps/details?id=org.amnezia.vpn) - Amnezia VPN Official Client
|
||||
- [AmneziaWG](https://play.google.com/store/apps/details?id=org.amnezia.awg) - AmneziaWG Official Client
|
||||
- [WG Tunnel](https://play.google.com/store/apps/details?id=com.zaneschepke.wireguardautotunnel) - Third Party Client
|
||||
|
||||
iOS and macOS:
|
||||
|
||||
- [Amnezia VPN](https://apps.apple.com/us/app/amneziavpn/id1600529900) - Amnezia VPN Official Client
|
||||
- [AmneziaWG](https://apps.apple.com/us/app/amneziawg/id6478942365) - AmneziaWG Official Client
|
||||
|
||||
Windows:
|
||||
|
||||
- [Amnezia VPN](https://amnezia.org/downloads) - Amnezia VPN Official Client
|
||||
- [AmneziaWG](https://github.com/amnezia-vpn/amneziawg-windows-client/releases) - AmneziaWG Official Client
|
||||
|
||||
Linux:
|
||||
|
||||
- [Amnezia VPN](https://amnezia.org/downloads) - Amnezia VPN Official Client
|
||||
- [amneziawg-tools](https://github.com/amnezia-vpn/amneziawg-tools) - AmneziaWG Tools
|
||||
|
||||
OpenWRT:
|
||||
|
||||
- [AmneziaWG OpenWRT](https://github.com/Slava-Shchipunov/awg-openwrt) - AmneziaWG OpenWRT Packages
|
||||
- [AmneziaWG OpenWRT](https://github.com/lolo6oT/awg-openwrt) - AmneziaWG OpenWRT Packages
|
||||
@@ -0,0 +1,9 @@
|
||||
---
|
||||
title: Experimental Configuration
|
||||
---
|
||||
|
||||
There are several experimental features that can be enabled by setting the appropriate environment variables. These features are not guaranteed to be stable and may change in future releases.
|
||||
|
||||
| Env | Default | Example | Description | Notes | More Info |
|
||||
| ---------------- | ------- | ------- | -------------------------------------- | --------------------------------------- | ------------------------ |
|
||||
| EXPERIMENTAL_AWG | false | true | Enables experimental AmneziaWG support | Planned to be enabled by default in v16 | [See here](./amnezia.md) |
|
||||
@@ -6,18 +6,19 @@ If you want to run the setup without any user interaction, e.g. with a tool like
|
||||
|
||||
These will only be used during the first start of the container. After that, the setup will be disabled.
|
||||
|
||||
| Env | Example | Description | Group |
|
||||
| ---------------- | ----------------- | --------------------------------------------------------- | ----- |
|
||||
| `INIT_ENABLED` | `true` | Enables the below env vars | 0 |
|
||||
| `INIT_USERNAME` | `admin` | Sets admin username | 1 |
|
||||
| `INIT_PASSWORD` | `Se!ureP%ssw` | Sets admin password | 1 |
|
||||
| `INIT_HOST` | `vpn.example.com` | Host clients will connect to | 1 |
|
||||
| `INIT_PORT` | `51820` | Port clients will connect to and wireguard will listen on | 1 |
|
||||
| `INIT_DNS` | `1.1.1.1,8.8.8.8` | Sets global dns setting | 2 |
|
||||
| `INIT_IPV4_CIDR` | `10.8.0.0/24` | Sets IPv4 cidr | 3 |
|
||||
| `INIT_IPV6_CIDR` | `2001:0DB8::/32` | Sets IPv6 cidr | 3 |
|
||||
| Env | Example | Description | Group |
|
||||
| ------------------ | ---------------------------- | --------------------------------------------------------- | ----- |
|
||||
| `INIT_ENABLED` | `true` | Enables the below env vars | 0 |
|
||||
| `INIT_USERNAME` | `admin` | Sets admin username | 1 |
|
||||
| `INIT_PASSWORD` | `Se!ureP%ssw` | Sets admin password | 1 |
|
||||
| `INIT_HOST` | `vpn.example.com` | Host clients will connect to | 1 |
|
||||
| `INIT_PORT` | `51820` | Port clients will connect to and wireguard will listen on | 1 |
|
||||
| `INIT_DNS` | `1.1.1.1,8.8.8.8` | Sets global dns setting | 2 |
|
||||
| `INIT_IPV4_CIDR` | `10.8.0.0/24` | Sets IPv4 cidr | 3 |
|
||||
| `INIT_IPV6_CIDR` | `2001:0DB8::/32` | Sets IPv6 cidr | 3 |
|
||||
| `INIT_ALLOWED_IPS` | `10.8.0.0/24,2001:0DB8::/32` | Sets global Allowed IPs | 4 |
|
||||
|
||||
/// warning | Variables have to be used together
|
||||
/// warning | Variables have to be used together
|
||||
|
||||
If variables are in the same group, you have to set all of them. For example, if you set `INIT_IPV4_CIDR`, you also have to set `INIT_IPV6_CIDR`.
|
||||
|
||||
|
||||
@@ -7,7 +7,7 @@ This guide will help you migrate from `v14` to version `v15` of `wg-easy`.
|
||||
## Changes
|
||||
|
||||
- This is a complete rewrite of the `wg-easy` project, therefore the configuration files and the way you interact with the project have changed.
|
||||
- If you use armv6, you unfortunately won't be able to migrate to `v15`.
|
||||
- If you use armv6 or armv7, you unfortunately won't be able to migrate to `v15`.
|
||||
- If you are connecting to the Web UI via HTTP, you need to set the `INSECURE` environment variable to `true` in the new container.
|
||||
|
||||
## Migration
|
||||
|
||||
@@ -2,8 +2,176 @@
|
||||
title: AdGuard Home
|
||||
---
|
||||
|
||||
It seems like the Docs on how to setup AdGuard Home are not available yet.
|
||||
This tutorial is a follow-up to the official [Traefik tutorial](./traefik.md). It will guide you through integrating AdGuard Home with your existing `wg-easy` and Traefik setup to provide network-wide DNS ad-blocking.
|
||||
|
||||
Feel free to create a PR and add them here.
|
||||
## Prerequisites
|
||||
|
||||
<!-- TODO -->
|
||||
- A working [wg-easy](./basic-installation.md) and [Traefik](./traefik.md) setup from the previous guides.
|
||||
|
||||
/// warning | Important: Following this guide will reset your WireGuard configuration.
|
||||
The process involves re-creating the `wg-easy` container and its data, which means **all existing WireGuard clients and settings will be deleted.**
|
||||
|
||||
You will need to create your clients again after completing this guide.
|
||||
///
|
||||
|
||||
## Add `adguard` configuration
|
||||
|
||||
1. Create a directory for the configuration files:
|
||||
|
||||
```shell
|
||||
sudo mkdir -p /etc/docker/containers/adguard
|
||||
```
|
||||
|
||||
2. Create volumes for persistent data:
|
||||
|
||||
```shell
|
||||
sudo mkdir -p /etc/docker/volumes/adguard/adguard_work
|
||||
sudo mkdir -p /etc/docker/volumes/adguard/adguard_conf
|
||||
sudo chmod -R 700 /etc/docker/volumes/adguard
|
||||
```
|
||||
|
||||
3. Create the `docker-compose.yml` file.
|
||||
|
||||
File: `/etc/docker/containers/adguard/docker-compose.yml`
|
||||
|
||||
```yaml
|
||||
services:
|
||||
adguard:
|
||||
image: adguard/adguardhome:v0.107.64
|
||||
container_name: adguard
|
||||
restart: unless-stopped
|
||||
volumes:
|
||||
- /etc/docker/volumes/adguard/adguard_work:/opt/adguardhome/work
|
||||
- /etc/docker/volumes/adguard/adguard_conf:/opt/adguardhome/conf
|
||||
networks:
|
||||
wg:
|
||||
interface_name: eth0
|
||||
ipv4_address: 10.42.42.43
|
||||
ipv6_address: fdcc:ad94:bacf:61a3::2b
|
||||
traefik:
|
||||
interface_name: eth1
|
||||
labels:
|
||||
- 'traefik.enable=true'
|
||||
- 'traefik.http.routers.adguard.rule=Host(`adguard.$example.com$`)'
|
||||
- 'traefik.http.routers.adguard.entrypoints=websecure'
|
||||
- 'traefik.http.routers.adguard.service=adguard'
|
||||
- 'traefik.http.services.adguard.loadbalancer.server.port=3000'
|
||||
- 'traefik.docker.network=traefik'
|
||||
|
||||
networks:
|
||||
wg:
|
||||
external: true
|
||||
traefik:
|
||||
external: true
|
||||
```
|
||||
|
||||
## Update `wg-easy` configuration
|
||||
|
||||
Modify the corresponding sections of your existing `wg-easy` compose file to match the updated version below.
|
||||
|
||||
File: `/etc/docker/containers/wg-easy/docker-compose.yml`
|
||||
|
||||
```yaml
|
||||
services:
|
||||
wg-easy:
|
||||
ports:
|
||||
- "51820:51820/udp"
|
||||
...
|
||||
networks:
|
||||
wg:
|
||||
interface_name: eth0
|
||||
...
|
||||
traefik:
|
||||
interface_name: eth1
|
||||
...
|
||||
...
|
||||
environment:
|
||||
# Unattended Setup
|
||||
- INIT_ENABLED=true
|
||||
# Replace $username$ with your username
|
||||
- INIT_USERNAME=$username$
|
||||
# Replace $password$ with your unhashed password
|
||||
- INIT_PASSWORD=$password$
|
||||
# Replace $example.com$ with your domain
|
||||
- INIT_HOST=wg-easy.$example.com$
|
||||
- INIT_PORT=51820
|
||||
- INIT_DNS=10.42.42.43,fdcc:ad94:bacf:61a3::2b
|
||||
- INIT_IPV4_CIDR=10.8.0.0/24
|
||||
- INIT_IPV6_CIDR=fd42:42:42::/64
|
||||
...
|
||||
|
||||
networks:
|
||||
wg:
|
||||
# Prevents Docker Compose from prefixing the network name.
|
||||
name: wg
|
||||
...
|
||||
...
|
||||
```
|
||||
|
||||
## Setup Wireguard
|
||||
|
||||
1. Restart `wg-easy`:
|
||||
|
||||
```shell
|
||||
cd /etc/docker/containers/wg-easy
|
||||
sudo docker compose down -v
|
||||
sudo docker compose up -d
|
||||
```
|
||||
|
||||
2. Edit Wireguard's Hooks.
|
||||
|
||||
In the Admin Panel of your WireGuard server, go to the Hooks tab and replace it with:
|
||||
|
||||
**_PostUp_**
|
||||
|
||||
```shell
|
||||
iptables -A INPUT -p udp -m udp --dport {{port}} -j ACCEPT; ip6tables -A INPUT -p udp -m udp --dport {{port}} -j ACCEPT; iptables -t nat -A PREROUTING -i wg0 -p udp --dport 53 -j DNAT --to-destination 10.42.42.43; iptables -t nat -A PREROUTING -i wg0 -p tcp --dport 53 -j DNAT --to-destination 10.42.42.43; ip6tables -t nat -A PREROUTING -i wg0 -p udp --dport 53 -j DNAT --to-destination fdcc:ad94:bacf:61a3::2b; ip6tables -t nat -A PREROUTING -i wg0 -p tcp --dport 53 -j DNAT --to-destination fdcc:ad94:bacf:61a3::2b; iptables -A FORWARD -i wg0 -j ACCEPT; iptables -A FORWARD -o wg0 -j ACCEPT; ip6tables -A FORWARD -i wg0 -j ACCEPT; ip6tables -A FORWARD -o wg0 -j ACCEPT; iptables -t nat -A POSTROUTING -s {{ipv4Cidr}} -o {{device}} -j MASQUERADE; ip6tables -t nat -A POSTROUTING -s {{ipv6Cidr}} -o {{device}} -j MASQUERADE;
|
||||
```
|
||||
|
||||
**_PostDown_**
|
||||
|
||||
```shell
|
||||
iptables -D INPUT -p udp -m udp --dport {{port}} -j ACCEPT || true; ip6tables -D INPUT -p udp -m udp --dport {{port}} -j ACCEPT || true; iptables -t nat -D PREROUTING -i wg0 -p udp --dport 53 -j DNAT --to-destination 10.42.42.43 || true; iptables -t nat -D PREROUTING -i wg0 -p tcp --dport 53 -j DNAT --to-destination 10.42.42.43 || true; ip6tables -t nat -D PREROUTING -i wg0 -p udp --dport 53 -j DNAT --to-destination fdcc:ad94:bacf:61a3::2b || true; ip6tables -t nat -D PREROUTING -i wg0 -p tcp --dport 53 -j DNAT --to-destination fdcc:ad94:bacf:61a3::2b || true; iptables -D FORWARD -i wg0 -j ACCEPT || true; iptables -D FORWARD -o wg0 -j ACCEPT || true; ip6tables -D FORWARD -i wg0 -j ACCEPT || true; ip6tables -D FORWARD -o wg0 -j ACCEPT || true; iptables -t nat -D POSTROUTING -s {{ipv4Cidr}} -o {{device}} -j MASQUERADE || true; ip6tables -t nat -D POSTROUTING -s {{ipv6Cidr}} -o {{device}} -j MASQUERADE || true;
|
||||
```
|
||||
|
||||
3. Restart `wg-easy` to apply changes:
|
||||
|
||||
```shell
|
||||
sudo docker restart wg-easy
|
||||
```
|
||||
|
||||
## Setup Adguard Home
|
||||
|
||||
1. Start `adguard` service:
|
||||
|
||||
```shell
|
||||
cd /etc/docker/containers/adguard
|
||||
sudo docker compose up -d
|
||||
```
|
||||
|
||||
2. Navigate to `https://adguard.$example.com$` to begin the AdGuard Home setup.
|
||||
|
||||
/// warning | Important: Configure AdGuard Home Admin Web Interface Port
|
||||
During the initial AdGuard Home setup on the `Step 2/5` page, you **must** set the **Admin Web Interface Port** to **3000**. Do not use the default port 80, as it will not work with the Traefik configuration.
|
||||
|
||||
After completing the setup, the AdGuard UI might appear unresponsive. This is expected. **Simply reload the page**, and the panel will display correctly.
|
||||
///
|
||||
|
||||
> If you accidentally left it default (80), you will need to manually edit the `docker-compose.yml` file for AdGuard Home (`/etc/docker/containers/adguard/docker-compose.yml`) and change the line `traefik.http.services.adguard.loadbalancer.server.port=3000` to `traefik.http.services.adguard.loadbalancer.server.port=80`. After making this change, restart AdGuard Home by navigating to `/etc/docker/containers/adguard` and running `sudo docker compose up -d`.
|
||||
|
||||
## Final System Checks
|
||||
|
||||
### Firewall
|
||||
|
||||
Ensure the ports `80/tcp`, `443/tcp`, `443/udp`, and `51820/udp` are open.
|
||||
|
||||
### Optional: Optimizing UDP Buffer Sizes
|
||||
|
||||
AdGuard Home, as a DNS server, handles a large volume of UDP packets. To ensure optimal performance, it is recommended to increase the system's UDP buffer sizes. You can apply these settings using your system's `sysctl` configuration (e.g., by creating a file in `/etc/sysctl.d/`).
|
||||
|
||||
```shell
|
||||
net.core.rmem_max = 7500000
|
||||
net.core.wmem_max = 7500000
|
||||
```
|
||||
|
||||
After adding these settings, remember to apply them (e.g., by running `sudo sysctl --system` or rebooting)
|
||||
|
||||
@@ -8,7 +8,7 @@ title: Basic Installation
|
||||
|
||||
1. You need to have a host that you can manage
|
||||
2. You need to have a domain name or a public IP address
|
||||
3. You need a supported architecture (x86_64, arm64, armv7)
|
||||
3. You need a supported architecture (x86_64, arm64)
|
||||
4. You need curl installed on your host
|
||||
|
||||
## Install Docker
|
||||
|
||||
@@ -7,7 +7,7 @@ title: Caddy
|
||||
This guide is opinionated. If you use other conventions or folder layouts, feel free to change the commands and paths.
|
||||
///
|
||||
|
||||
We're using [Caddy](https://caddyserver.com/) here as reserve proxy to serve `wg-easy` on [https://wg-easy.example.com](https://wg-easy.example.com) via TLS.
|
||||
We're using [Caddy](https://caddyserver.com/) here as reverse proxy to serve `wg-easy` on [https://wg-easy.example.com](https://wg-easy.example.com) via TLS.
|
||||
|
||||
## Create a docker composition for `caddy`
|
||||
|
||||
|
||||
@@ -7,9 +7,9 @@ To setup the IPv6 Network, simply run once:
|
||||
```shell
|
||||
docker network create \
|
||||
-d bridge --ipv6 \
|
||||
-d default \
|
||||
--subnet 10.42.42.0/24 \
|
||||
--subnet fdcc:ad94:bacf:61a3::/64 wg \
|
||||
--subnet fdcc:ad94:bacf:61a3::/64 \
|
||||
wg
|
||||
```
|
||||
|
||||
<!-- ref: major version -->
|
||||
|
||||
@@ -0,0 +1,111 @@
|
||||
---
|
||||
title: Routed setup (No NAT)
|
||||
---
|
||||
|
||||
This guide shows how to run **wg-easy** with a routed setup, so packets are forwarded instead of NATed.
|
||||
|
||||
In a routed design, each WireGuard client keeps its own IPv4/IPv6 address. That means you can identify clients by their real addresses instead of seeing everything as the WireGuard server’s IP.
|
||||
|
||||
## Requirements
|
||||
|
||||
1. You know how to add static routes on your router to the WireGuard server.
|
||||
|
||||
## Docker setup
|
||||
|
||||
To make use of our own IPv4/IPv6 addresses, run the container with the `network_mode: host` option.
|
||||
|
||||
```yaml
|
||||
services:
|
||||
wg-easy:
|
||||
image: ghcr.io/wg-easy/wg-easy:15
|
||||
container_name: wg-easy
|
||||
network_mode: 'host'
|
||||
volumes:
|
||||
- ./config:/etc/wireguard
|
||||
- /lib/modules:/lib/modules:ro
|
||||
cap_add:
|
||||
- NET_ADMIN
|
||||
- SYS_MODULE
|
||||
devices:
|
||||
- /dev/net/tun:/dev/net/tun
|
||||
restart: unless-stopped
|
||||
```
|
||||
|
||||
Because we’re on the host network, remove any `ports:` and container `sysctls:` you might have had before.
|
||||
|
||||
## Kernel parameters (on the host)
|
||||
|
||||
With host networking, system sysctls must be set on the **host**. On your host, create `/etc/sysctl.d/90-wireguard.conf`:
|
||||
|
||||
```txt
|
||||
net.ipv4.ip_forward=1
|
||||
net.ipv4.conf.all.src_valid_mark=1
|
||||
net.ipv6.conf.all.disable_ipv6=0
|
||||
net.ipv6.conf.all.forwarding=1
|
||||
net.ipv6.conf.default.forwarding=1
|
||||
```
|
||||
|
||||
Apply and verify:
|
||||
|
||||
```shell
|
||||
sysctl -p /etc/sysctl.d/90-wireguard.conf
|
||||
sysctl -n net.ipv4.ip_forward # should print 1
|
||||
```
|
||||
|
||||
## Add static routes on your router
|
||||
|
||||
Pick an IPv4 and IPv6 subnet for your clients and add static routes on your router, pointing to the WireGuard server's LAN addresses.
|
||||
|
||||
### Example
|
||||
|
||||
/// note | 2001:db8::/32
|
||||
|
||||
The _documentation prefix_ `2001:db8::/32` (RFC 3849) used in this example is not meant for production use, replace it with your own ISP-assigned IPv6 prefix (GUA) or local prefix (ULA)
|
||||
///
|
||||
|
||||
I want my WireGuard clients in `192.168.0.0/24` and `2001:db8:abc:0::/64`.
|
||||
|
||||
- Routed IPv4 subnet: `192.168.0.0/24`
|
||||
- Routed IPv6 prefix: `2001:db8:abc:0::/64`
|
||||
- WireGuard server IPs: `192.168.10.118` and `2001:db8:abc:10:216:3eff:fedb:949e`
|
||||
|
||||
On your router:
|
||||
|
||||
- Route `192.168.0.0/24` → next hop `192.168.10.118`
|
||||
- Route `2001:db8:abc:0::/64` → next hop `2001:db8:abc:10:216:3eff:fedb:949e`
|
||||
|
||||
Don't forget to create the necessary firewall rules to allow these subnets to travel across your LAN. Some routers or servers may require specific Outbound NAT rules for the chosen IPv4 and IPv6 subnets to allow traffic to traverse your LAN.
|
||||
|
||||
## `wg-easy` configuration
|
||||
|
||||
In the Web UI → Admin → Interface, click Change CIDR and set the IPv4/IPv6 routed subnets you chose above. Save.
|
||||
|
||||
Then go to Admin → Hooks and add:
|
||||
|
||||
PostUp
|
||||
|
||||
```shell
|
||||
iptables -A INPUT -p udp -m udp --dport {{port}} -j ACCEPT; iptables -A FORWARD -i wg0 -j ACCEPT; iptables -A FORWARD -o wg0 -j ACCEPT; ip6tables -A INPUT -p udp -m udp --dport {{port}} -j ACCEPT; ip6tables -A FORWARD -i wg0 -j ACCEPT; ip6tables -A FORWARD -o wg0 -j ACCEPT
|
||||
```
|
||||
|
||||
PostDown
|
||||
|
||||
```shell
|
||||
iptables -D INPUT -p udp -m udp --dport {{port}} -j ACCEPT; iptables -D FORWARD -i wg0 -j ACCEPT; iptables -D FORWARD -o wg0 -j ACCEPT; ip6tables -D INPUT -p udp -m udp --dport {{port}} -j ACCEPT; ip6tables -D FORWARD -i wg0 -j ACCEPT; ip6tables -D FORWARD -o wg0 -j ACCEPT
|
||||
```
|
||||
|
||||
/// warning | Important: When using nftables use the following hooks instead.
|
||||
|
||||
PostUp
|
||||
|
||||
```shell
|
||||
nft add chain ip filter WG_EASY; nft add rule ip filter DOCKER-USER jump WG_EASY; nft add rule ip filter WG_EASY iifname {{device}} accept; nft add rule ip filter WG_EASY oifname {{device}} accept; nft add chain ip6 filter WG_EASY; nft add rule ip6 filter DOCKER-USER jump WG_EASY; nft add rule ip6 filter WG_EASY iifname {{device}} accept; nft add rule ip6 filter WG_EASY oifname {{device}} accept;
|
||||
```
|
||||
|
||||
PostDown
|
||||
|
||||
```shell
|
||||
nft delete rule ip filter DOCKER-USER handle $(nft -a list chain ip filter DOCKER-USER | awk '/jump WG_EASY/ {print $NF}'); nft flush chain ip filter WG_EASY; nft delete chain ip filter WG_EASY; nft delete rule ip6 filter DOCKER-USER handle $(nft -a list chain ip6 filter DOCKER-USER | awk '/jump WG_EASY/ {print $NF}'); nft flush chain ip6 filter WG_EASY; nft delete chain ip6 filter WG_EASY
|
||||
```
|
||||
|
||||
///
|
||||
@@ -144,7 +144,7 @@ sudo docker network create traefik
|
||||
sudo docker compose up -d
|
||||
```
|
||||
|
||||
You can no access the Traefik dashboard at `https://traefik.$example.com$` with the credentials you set in `traefik_dynamic.yml`.
|
||||
You can now access the Traefik dashboard at `https://traefik.$example.com$` with the credentials you set in `traefik_dynamic.yml`.
|
||||
|
||||
## Add Labels to `wg-easy`
|
||||
|
||||
@@ -166,6 +166,7 @@ services:
|
||||
- "traefik.http.routers.wg-easy.entrypoints=websecure"
|
||||
- "traefik.http.routers.wg-easy.service=wg-easy"
|
||||
- "traefik.http.services.wg-easy.loadbalancer.server.port=51821"
|
||||
- "traefik.docker.network=traefik"
|
||||
...
|
||||
|
||||
networks:
|
||||
|
||||
@@ -12,7 +12,7 @@ Before you can get started with deploying your own VPN, there are some requireme
|
||||
|
||||
1. You need to have a host that you can manage
|
||||
2. You need to have a domain name or a public IP address
|
||||
3. You need a supported architecture (x86_64, arm64, armv7)
|
||||
3. You need a supported architecture (x86_64, arm64)
|
||||
|
||||
### Host Setup
|
||||
|
||||
@@ -38,6 +38,7 @@ If you're using podman, make sure to read the related [documentation][docs-podma
|
||||
To understand which tags you should use, read this section carefully. [Our CI][github-ci] will automatically build, test and push new images to the following container registry:
|
||||
|
||||
1. GitHub Container Registry ([`ghcr.io/wg-easy/wg-easy`][ghcr-image])
|
||||
2. Codeberg Container Registry ([`codeberg.org/wg-easy/wg-easy`][codeberg-image]) (IPv6 support)
|
||||
|
||||
All workflows are using the tagging convention listed below. It is subsequently applied to all images.
|
||||
|
||||
@@ -50,12 +51,13 @@ All workflows are using the tagging convention listed below. It is subsequently
|
||||
| `edge` | push to `master` | `ghcr.io/wg-easy/wg-easy:edge` | mostly unstable, gets frequent package and code updates |
|
||||
| `development` | pull requests | `ghcr.io/wg-easy/wg-easy:development` | used for development, testing code from PRs |
|
||||
|
||||
<!-- ref: major version -->
|
||||
<!-- ref: major version (check links too) -->
|
||||
|
||||
When publishing a tag we follow the [Semantic Versioning][semver] specification. The `latest` tag is always pointing to the latest stable release. If you want to avoid breaking changes, use the major version tag (e.g. `15`).
|
||||
|
||||
[github-ci]: https://github.com/wg-easy/wg-easy/actions
|
||||
[ghcr-image]: https://github.com/wg-easy/wg-easy/pkgs/container/wg-easy
|
||||
[codeberg-image]: https://codeberg.org/wg-easy/-/packages/container/wg-easy/15
|
||||
[semver]: https://semver.org/
|
||||
|
||||
### Follow tutorials
|
||||
|
||||
+3
-2
@@ -7,10 +7,11 @@
|
||||
"build": "docker build -t wg-easy .",
|
||||
"docs:preview": "docker run --rm -it -p 8080:8080 -v ./docs:/docs squidfunk/mkdocs-material serve -a 0.0.0.0:8080",
|
||||
"scripts:version": "bash scripts/version.sh",
|
||||
"scripts:i18n": "bash scripts/i18n.sh",
|
||||
"format:check:docs": "prettier --check docs"
|
||||
},
|
||||
"devDependencies": {
|
||||
"prettier": "^3.6.2"
|
||||
"prettier": "^3.7.4"
|
||||
},
|
||||
"packageManager": "pnpm@10.12.4"
|
||||
"packageManager": "pnpm@10.28.0"
|
||||
}
|
||||
|
||||
Generated
+5
-5
@@ -9,16 +9,16 @@ importers:
|
||||
.:
|
||||
devDependencies:
|
||||
prettier:
|
||||
specifier: ^3.6.2
|
||||
version: 3.6.2
|
||||
specifier: ^3.7.4
|
||||
version: 3.7.4
|
||||
|
||||
packages:
|
||||
|
||||
prettier@3.6.2:
|
||||
resolution: {integrity: sha512-I7AIg5boAr5R0FFtJ6rCfD+LFsWHp81dolrFD8S79U9tb8Az2nGrJncnMSnys+bpQJfRUzqs9hnA81OAA3hCuQ==}
|
||||
prettier@3.7.4:
|
||||
resolution: {integrity: sha512-v6UNi1+3hSlVvv8fSaoUbggEM5VErKmmpGA7Pl3HF8V6uKY7rvClBOJlH6yNwQtfTueNkGVpOv/mtWL9L4bgRA==}
|
||||
engines: {node: '>=14'}
|
||||
hasBin: true
|
||||
|
||||
snapshots:
|
||||
|
||||
prettier@3.6.2: {}
|
||||
prettier@3.7.4: {}
|
||||
|
||||
Executable
+19
@@ -0,0 +1,19 @@
|
||||
#!/bin/bash
|
||||
|
||||
folder="src/i18n/locales"
|
||||
base_file="$folder/en.json"
|
||||
|
||||
# Get all leaf keys from the English base file
|
||||
base_keys=$(jq -r 'paths(scalars) | map(tostring) | join(".")' "$base_file")
|
||||
total=$(echo "$base_keys" | wc -l)
|
||||
|
||||
# Loop through all JSON files in the folder
|
||||
for file in "$folder"/*.json; do
|
||||
name=$(basename "$file" .json)
|
||||
translated_keys=$(jq -r 'paths(scalars) | map(tostring) | join(".")' "$file")
|
||||
done=$(comm -12 <(echo "$base_keys" | sort) <(echo "$translated_keys" | sort) | wc -l)
|
||||
percent=$((100 * done / total))
|
||||
check="[ ]"
|
||||
[ "$percent" -eq 100 ] && check="[x]"
|
||||
printf "%s %s (%d%%)\n" "- $check" "$name" "$percent"
|
||||
done
|
||||
@@ -11,10 +11,10 @@
|
||||
</template>
|
||||
|
||||
<script setup lang="ts">
|
||||
import type { VueApexChartsComponent } from 'vue3-apexcharts';
|
||||
import type { VueApexChartsComponentProps } from 'vue3-apexcharts';
|
||||
|
||||
defineProps<{
|
||||
options: VueApexChartsComponent['options'];
|
||||
series: VueApexChartsComponent['series'];
|
||||
options: VueApexChartsComponentProps['options'];
|
||||
series: VueApexChartsComponentProps['series'];
|
||||
}>();
|
||||
</script>
|
||||
|
||||
@@ -0,0 +1,29 @@
|
||||
<template>
|
||||
<div class="overflow-x-auto rounded border-2 border-red-800 py-2">
|
||||
<pre
|
||||
class="mx-2 inline-block"
|
||||
@click="selectCode"
|
||||
><code ref="codeBlock">{{ code }}</code></pre>
|
||||
</div>
|
||||
</template>
|
||||
|
||||
<script setup lang="ts">
|
||||
defineProps<{
|
||||
code: string;
|
||||
}>();
|
||||
|
||||
const codeBlock = useTemplateRef('codeBlock');
|
||||
|
||||
function selectCode() {
|
||||
// TODO: keyboard support?
|
||||
if (codeBlock.value) {
|
||||
const range = document.createRange();
|
||||
range.selectNodeContents(codeBlock.value);
|
||||
const sel = window.getSelection();
|
||||
if (sel) {
|
||||
sel.removeAllRanges();
|
||||
sel.addRange(range);
|
||||
}
|
||||
}
|
||||
}
|
||||
</script>
|
||||
@@ -0,0 +1,74 @@
|
||||
<template>
|
||||
<BaseDialog :trigger-class="triggerClass">
|
||||
<template #trigger>
|
||||
<slot />
|
||||
</template>
|
||||
<template #title>
|
||||
{{ $t('client.config') }}
|
||||
</template>
|
||||
<template #description>
|
||||
<div v-if="status === 'success'">
|
||||
<BaseCodeBlock :code="config ?? ''" />
|
||||
</div>
|
||||
<div v-else>
|
||||
<span>{{ $t('general.loading') }}</span>
|
||||
</div>
|
||||
</template>
|
||||
<template #actions>
|
||||
<DialogClose as-child>
|
||||
<BaseSecondaryButton>{{ $t('dialog.cancel') }}</BaseSecondaryButton>
|
||||
</DialogClose>
|
||||
<DialogClose as-child>
|
||||
<BasePrimaryButton @click="copyCode">
|
||||
{{ $t('copy.copy') }}
|
||||
</BasePrimaryButton>
|
||||
</DialogClose>
|
||||
</template>
|
||||
</BaseDialog>
|
||||
</template>
|
||||
|
||||
<script setup lang="ts">
|
||||
const props = defineProps<{ triggerClass?: string; clientId: number }>();
|
||||
|
||||
const toast = useToast();
|
||||
const { copied, copy, isSupported } = useClipboard({
|
||||
// fallback does not work
|
||||
legacy: false,
|
||||
});
|
||||
|
||||
const { data: config, status } = useFetch(
|
||||
`/api/client/${props.clientId}/configuration`,
|
||||
{
|
||||
responseType: 'text',
|
||||
server: false,
|
||||
}
|
||||
);
|
||||
|
||||
async function copyCode() {
|
||||
if (status.value !== 'success') {
|
||||
return;
|
||||
}
|
||||
|
||||
if (!isSupported.value) {
|
||||
toast.showToast({
|
||||
type: 'error',
|
||||
message: $t('copy.notSupported'),
|
||||
});
|
||||
return;
|
||||
}
|
||||
|
||||
await copy(config.value ?? '');
|
||||
|
||||
if (copied.value) {
|
||||
toast.showToast({
|
||||
type: 'success',
|
||||
message: $t('copy.copied'),
|
||||
});
|
||||
} else {
|
||||
toast.showToast({
|
||||
type: 'error',
|
||||
message: $t('copy.failed'),
|
||||
});
|
||||
}
|
||||
}
|
||||
</script>
|
||||
@@ -9,7 +9,7 @@
|
||||
</div>
|
||||
</template>
|
||||
<template #actions>
|
||||
<DialogClose>
|
||||
<DialogClose as-child>
|
||||
<BaseSecondaryButton>{{ $t('dialog.cancel') }}</BaseSecondaryButton>
|
||||
</DialogClose>
|
||||
</template>
|
||||
|
||||
@@ -0,0 +1,38 @@
|
||||
<template>
|
||||
<div class="relative w-60 md:mr-2">
|
||||
<div class="relative flex h-full items-center">
|
||||
<MagnifyingGlassIcon
|
||||
class="absolute left-2.5 h-4 w-4 text-gray-400 dark:text-neutral-500"
|
||||
/>
|
||||
<input
|
||||
v-model="searchQuery"
|
||||
type="text"
|
||||
:placeholder="$t('client.search')"
|
||||
class="w-full rounded bg-white py-2 pr-8 text-sm text-gray-900 shadow-sm ring-1 ring-gray-300 transition-all placeholder:text-gray-400 focus:border-transparent focus:outline-none focus:ring-2 focus:ring-red-600 dark:bg-neutral-800 dark:text-white dark:ring-neutral-700 dark:placeholder:text-neutral-500 dark:focus:ring-red-700"
|
||||
@input="updateSearch"
|
||||
/>
|
||||
<button
|
||||
v-if="searchQuery"
|
||||
class="absolute right-2 flex h-5 w-5 items-center justify-center rounded-full bg-gray-200 text-gray-600 hover:bg-gray-300 hover:text-gray-800 dark:bg-neutral-700 dark:text-neutral-300 dark:hover:bg-neutral-600 dark:hover:text-neutral-100"
|
||||
aria-label="Clear search"
|
||||
@click="clearSearch"
|
||||
>
|
||||
<IconsClose class="h-3 w-3" />
|
||||
</button>
|
||||
</div>
|
||||
</div>
|
||||
</template>
|
||||
|
||||
<script setup lang="ts">
|
||||
const clientsStore = useClientsStore();
|
||||
const searchQuery = ref('');
|
||||
|
||||
const updateSearch = useDebounceFn(() => {
|
||||
clientsStore.setSearchQuery(searchQuery.value);
|
||||
}, 300);
|
||||
|
||||
function clearSearch() {
|
||||
searchQuery.value = '';
|
||||
clientsStore.setSearchQuery('');
|
||||
}
|
||||
</script>
|
||||
@@ -21,7 +21,9 @@
|
||||
<BasePrimaryButton as="span">
|
||||
<div class="flex items-center gap-3">
|
||||
<IconsSparkles class="w-4" />
|
||||
<span>{{ $t('admin.config.suggest') }}</span>
|
||||
<span class="whitespace-nowrap">
|
||||
{{ $t('admin.config.suggest') }}
|
||||
</span>
|
||||
</div>
|
||||
</BasePrimaryButton>
|
||||
</AdminSuggestDialog>
|
||||
|
||||
@@ -0,0 +1,20 @@
|
||||
<template>
|
||||
<div class="flex items-center">
|
||||
<FormLabel :for="id">
|
||||
{{ label }}
|
||||
</FormLabel>
|
||||
<BaseTooltip v-if="description" :text="description">
|
||||
<IconsInfo class="size-4" />
|
||||
</BaseTooltip>
|
||||
</div>
|
||||
<span :id="id" class="flex flex-col justify-center">{{ data }}</span>
|
||||
</template>
|
||||
|
||||
<script lang="ts" setup>
|
||||
defineProps<{
|
||||
id: string;
|
||||
label: string;
|
||||
description?: string;
|
||||
data?: string;
|
||||
}>();
|
||||
</script>
|
||||
@@ -0,0 +1,28 @@
|
||||
<template>
|
||||
<div class="flex items-center">
|
||||
<FormLabel :for="id">
|
||||
{{ label }}
|
||||
</FormLabel>
|
||||
<BaseTooltip v-if="description" :text="description">
|
||||
<IconsInfo class="size-4" />
|
||||
</BaseTooltip>
|
||||
</div>
|
||||
<BaseInput :id="id" v-model.number="data" :name="id" type="number" />
|
||||
</template>
|
||||
|
||||
<script lang="ts" setup>
|
||||
defineProps<{ id: string; label: string; description?: string }>();
|
||||
|
||||
const data = defineModel<number | null>({
|
||||
set(value) {
|
||||
const temp = value ?? null;
|
||||
if (temp === 0) {
|
||||
return null;
|
||||
}
|
||||
if ((temp as string | null) === '') {
|
||||
return null;
|
||||
}
|
||||
return temp;
|
||||
},
|
||||
});
|
||||
</script>
|
||||
@@ -1,5 +1,5 @@
|
||||
<template>
|
||||
<div class="flex flex-shrink-0 space-x-1 md:block">
|
||||
<div class="flex flex-shrink-0 items-center space-x-2">
|
||||
<slot />
|
||||
</div>
|
||||
</template>
|
||||
|
||||
@@ -13,11 +13,12 @@
|
||||
v-for="(item, index) in menuItems"
|
||||
:key="index"
|
||||
:to="`/admin/${item.id}`"
|
||||
active-class="bg-red-800 rounded"
|
||||
class="group rounded"
|
||||
active-class="bg-red-800 active"
|
||||
>
|
||||
<BaseSecondaryButton
|
||||
as="span"
|
||||
class="w-full cursor-pointer rounded p-2 font-medium transition-colors duration-200 hover:bg-red-800 dark:text-neutral-200"
|
||||
class="w-full font-medium group-[.active]:text-white"
|
||||
>
|
||||
{{ item.name }}
|
||||
</BaseSecondaryButton>
|
||||
@@ -44,18 +45,19 @@ const { t } = useI18n();
|
||||
|
||||
const route = useRoute();
|
||||
|
||||
const menuItems = [
|
||||
const menuItems = computed(() => [
|
||||
{ id: 'general', name: t('pages.admin.general') },
|
||||
{ id: 'config', name: t('pages.admin.config') },
|
||||
{ id: 'interface', name: t('pages.admin.interface') },
|
||||
{ id: 'hooks', name: t('pages.admin.hooks') },
|
||||
];
|
||||
]);
|
||||
|
||||
const defaultItem = { id: '', name: t('pages.admin.panel') };
|
||||
|
||||
const activeMenuItem = computed(() => {
|
||||
return (
|
||||
menuItems.find((item) => route.path === `/admin/${item.id}`) ?? defaultItem
|
||||
menuItems.value.find((item) => route.path === `/admin/${item.id}`) ??
|
||||
defaultItem
|
||||
);
|
||||
});
|
||||
</script>
|
||||
|
||||
@@ -47,6 +47,61 @@
|
||||
:description="$t('admin.config.persistentKeepaliveDesc')"
|
||||
/>
|
||||
</FormGroup>
|
||||
<FormGroup v-if="globalStore.information?.isAwg">
|
||||
<FormHeading>{{ $t('awg.obfuscationParameters') }}</FormHeading>
|
||||
|
||||
<FormNullNumberField
|
||||
id="jC"
|
||||
v-model="data.defaultJC"
|
||||
:label="$t('awg.jCLabel')"
|
||||
:description="$t('awg.jCDescription')"
|
||||
/>
|
||||
<FormNullNumberField
|
||||
id="jMin"
|
||||
v-model="data.defaultJMin"
|
||||
:label="$t('awg.jMinLabel')"
|
||||
:description="$t('awg.jMinDescription')"
|
||||
/>
|
||||
<FormNullNumberField
|
||||
id="jMax"
|
||||
v-model="data.defaultJMax"
|
||||
:label="$t('awg.jMaxLabel')"
|
||||
:description="$t('awg.jMaxDescription')"
|
||||
/>
|
||||
|
||||
<div class="col-span-full text-sm">* {{ $t('awg.mtuNote') }}</div>
|
||||
|
||||
<FormNullTextField
|
||||
id="i1"
|
||||
v-model="data.defaultI1"
|
||||
:label="$t('awg.i1Label')"
|
||||
:description="$t('awg.i1Description')"
|
||||
/>
|
||||
<FormNullTextField
|
||||
id="i2"
|
||||
v-model="data.defaultI2"
|
||||
:label="$t('awg.i2Label')"
|
||||
:description="$t('awg.i2Description')"
|
||||
/>
|
||||
<FormNullTextField
|
||||
id="i3"
|
||||
v-model="data.defaultI3"
|
||||
:label="$t('awg.i3Label')"
|
||||
:description="$t('awg.i3Description')"
|
||||
/>
|
||||
<FormNullTextField
|
||||
id="i4"
|
||||
v-model="data.defaultI4"
|
||||
:label="$t('awg.i4Label')"
|
||||
:description="$t('awg.i4Description')"
|
||||
/>
|
||||
<FormNullTextField
|
||||
id="i5"
|
||||
v-model="data.defaultI5"
|
||||
:label="$t('awg.i5Label')"
|
||||
:description="$t('awg.i5Description')"
|
||||
/>
|
||||
</FormGroup>
|
||||
<FormGroup>
|
||||
<FormHeading>{{ $t('form.actions') }}</FormHeading>
|
||||
<FormPrimaryActionField type="submit" :label="$t('form.save')" />
|
||||
@@ -57,6 +112,8 @@
|
||||
</template>
|
||||
|
||||
<script lang="ts" setup>
|
||||
const globalStore = useGlobalStore();
|
||||
|
||||
const { data: _data, refresh } = await useFetch(`/api/admin/userconfig`, {
|
||||
method: 'get',
|
||||
});
|
||||
|
||||
@@ -21,6 +21,109 @@
|
||||
:description="$t('admin.interface.deviceDesc')"
|
||||
/>
|
||||
</FormGroup>
|
||||
<FormGroup v-if="globalStore.information?.isAwg">
|
||||
<FormHeading>{{ $t('awg.obfuscationParameters') }}</FormHeading>
|
||||
|
||||
<FormNullNumberField
|
||||
id="jC"
|
||||
v-model="data.jC"
|
||||
:label="$t('awg.jCLabel')"
|
||||
:description="$t('awg.jCDescription')"
|
||||
/>
|
||||
<FormNullNumberField
|
||||
id="jMin"
|
||||
v-model="data.jMin"
|
||||
:label="$t('awg.jMinLabel')"
|
||||
:description="$t('awg.jMinDescription')"
|
||||
/>
|
||||
<FormNullNumberField
|
||||
id="jMax"
|
||||
v-model="data.jMax"
|
||||
:label="$t('awg.jMaxLabel')"
|
||||
:description="$t('awg.jMaxDescription')"
|
||||
/>
|
||||
<FormNullNumberField
|
||||
id="s1"
|
||||
v-model="data.s1"
|
||||
:label="$t('awg.s1Label')"
|
||||
:description="$t('awg.s1Description')"
|
||||
/>
|
||||
<FormNullNumberField
|
||||
id="s2"
|
||||
v-model="data.s2"
|
||||
:label="$t('awg.s2Label')"
|
||||
:description="$t('awg.s2Description')"
|
||||
/>
|
||||
|
||||
<div class="col-span-full text-sm">* {{ $t('awg.mtuNote') }}</div>
|
||||
|
||||
<FormNullNumberField
|
||||
id="s3"
|
||||
v-model="data.s3"
|
||||
:label="$t('awg.s3Label')"
|
||||
:description="$t('awg.s3Description')"
|
||||
/>
|
||||
<FormNullNumberField
|
||||
id="s4"
|
||||
v-model="data.s4"
|
||||
:label="$t('awg.s4Label')"
|
||||
:description="$t('awg.s4Description')"
|
||||
/>
|
||||
<FormNullTextField
|
||||
id="i1"
|
||||
v-model="data.i1"
|
||||
:label="$t('awg.i1Label')"
|
||||
:description="$t('awg.i1Description')"
|
||||
/>
|
||||
<FormNullTextField
|
||||
id="i2"
|
||||
v-model="data.i2"
|
||||
:label="$t('awg.i2Label')"
|
||||
:description="$t('awg.i2Description')"
|
||||
/>
|
||||
<FormNullTextField
|
||||
id="i3"
|
||||
v-model="data.i3"
|
||||
:label="$t('awg.i3Label')"
|
||||
:description="$t('awg.i3Description')"
|
||||
/>
|
||||
<FormNullTextField
|
||||
id="i4"
|
||||
v-model="data.i4"
|
||||
:label="$t('awg.i4Label')"
|
||||
:description="$t('awg.i4Description')"
|
||||
/>
|
||||
<FormNullTextField
|
||||
id="i5"
|
||||
v-model="data.i5"
|
||||
:label="$t('awg.i5Label')"
|
||||
:description="$t('awg.i5Description')"
|
||||
/>
|
||||
<FormNullNumberField
|
||||
id="h1"
|
||||
v-model="data.h1"
|
||||
:label="$t('awg.h1Label')"
|
||||
:description="$t('awg.h1Description')"
|
||||
/>
|
||||
<FormNullNumberField
|
||||
id="h2"
|
||||
v-model="data.h2"
|
||||
:label="$t('awg.h2Label')"
|
||||
:description="$t('awg.h2Description')"
|
||||
/>
|
||||
<FormNullNumberField
|
||||
id="h3"
|
||||
v-model="data.h3"
|
||||
:label="$t('awg.h3Label')"
|
||||
:description="$t('awg.h3Description')"
|
||||
/>
|
||||
<FormNullNumberField
|
||||
id="h4"
|
||||
v-model="data.h4"
|
||||
:label="$t('awg.h4Label')"
|
||||
:description="$t('awg.h4Description')"
|
||||
/>
|
||||
</FormGroup>
|
||||
<FormGroup>
|
||||
<FormHeading>{{ $t('form.actions') }}</FormHeading>
|
||||
<FormPrimaryActionField type="submit" :label="$t('form.save')" />
|
||||
@@ -53,6 +156,8 @@
|
||||
</template>
|
||||
|
||||
<script setup lang="ts">
|
||||
const globalStore = useGlobalStore();
|
||||
|
||||
const { t } = useI18n();
|
||||
|
||||
const { data: _data, refresh } = await useFetch(`/api/admin/interface`, {
|
||||
|
||||
@@ -39,6 +39,12 @@
|
||||
v-model="data.ipv6Address"
|
||||
label="IPv6"
|
||||
/>
|
||||
<FormInfoField
|
||||
id="endpoint"
|
||||
:data="data.endpoint ?? $t('client.notConnected')"
|
||||
:label="$t('client.endpoint')"
|
||||
:description="$t('client.endpointDesc')"
|
||||
/>
|
||||
</FormGroup>
|
||||
<FormGroup>
|
||||
<FormHeading :description="$t('client.allowedIpsDesc')">
|
||||
@@ -76,6 +82,61 @@
|
||||
:label="$t('general.persistentKeepalive')"
|
||||
/>
|
||||
</FormGroup>
|
||||
<FormGroup v-if="globalStore.information?.isAwg">
|
||||
<FormHeading>{{ $t('awg.obfuscationParameters') }}</FormHeading>
|
||||
|
||||
<FormNullNumberField
|
||||
id="jC"
|
||||
v-model="data.jC"
|
||||
:label="$t('awg.jCLabel')"
|
||||
:description="$t('awg.jCDescription')"
|
||||
/>
|
||||
<FormNullNumberField
|
||||
id="Jmin"
|
||||
v-model="data.jMin"
|
||||
:label="$t('awg.jMinLabel')"
|
||||
:description="$t('awg.jMinDescription')"
|
||||
/>
|
||||
<FormNullNumberField
|
||||
id="Jmax"
|
||||
v-model="data.jMax"
|
||||
:label="$t('awg.jMaxLabel')"
|
||||
:description="$t('awg.jMaxDescription')"
|
||||
/>
|
||||
|
||||
<div class="col-span-full text-sm">* {{ $t('awg.mtuNote') }}</div>
|
||||
|
||||
<FormNullTextField
|
||||
id="i1"
|
||||
v-model="data.i1"
|
||||
:label="$t('awg.i1Label')"
|
||||
:description="$t('awg.i1Description')"
|
||||
/>
|
||||
<FormNullTextField
|
||||
id="i2"
|
||||
v-model="data.i2"
|
||||
:label="$t('awg.i2Label')"
|
||||
:description="$t('awg.i2Description')"
|
||||
/>
|
||||
<FormNullTextField
|
||||
id="i3"
|
||||
v-model="data.i3"
|
||||
:label="$t('awg.i3Label')"
|
||||
:description="$t('awg.i3Description')"
|
||||
/>
|
||||
<FormNullTextField
|
||||
id="i4"
|
||||
v-model="data.i4"
|
||||
:label="$t('awg.i4Label')"
|
||||
:description="$t('awg.i4Description')"
|
||||
/>
|
||||
<FormNullTextField
|
||||
id="i5"
|
||||
v-model="data.i5"
|
||||
:label="$t('awg.i5Label')"
|
||||
:description="$t('awg.i5Description')"
|
||||
/>
|
||||
</FormGroup>
|
||||
<FormGroup>
|
||||
<FormHeading :description="$t('client.hooksDescription')">
|
||||
{{ $t('client.hooks') }}
|
||||
@@ -118,13 +179,25 @@
|
||||
@delete="deleteClient"
|
||||
>
|
||||
<FormSecondaryActionField
|
||||
label="Delete"
|
||||
:label="$t('client.delete')"
|
||||
class="w-full"
|
||||
type="button"
|
||||
tabindex="-1"
|
||||
as="span"
|
||||
/>
|
||||
</ClientsDeleteDialog>
|
||||
<ClientsConfigDialog
|
||||
trigger-class="col-span-2"
|
||||
:client-id="data.id"
|
||||
>
|
||||
<FormSecondaryActionField
|
||||
:label="$t('client.viewConfig')"
|
||||
class="w-full"
|
||||
type="button"
|
||||
tabindex="-1"
|
||||
as="span"
|
||||
/>
|
||||
</ClientsConfigDialog>
|
||||
</FormGroup>
|
||||
</FormElement>
|
||||
</PanelBody>
|
||||
@@ -134,6 +207,7 @@
|
||||
|
||||
<script lang="ts" setup>
|
||||
const authStore = useAuthStore();
|
||||
const globalStore = useGlobalStore();
|
||||
authStore.update();
|
||||
|
||||
const route = useRoute();
|
||||
|
||||
@@ -4,6 +4,7 @@
|
||||
<PanelHead>
|
||||
<PanelHeadTitle :text="$t('pages.clients')" />
|
||||
<PanelHeadBoat>
|
||||
<ClientsSearch />
|
||||
<ClientsSort />
|
||||
<ClientsNew />
|
||||
</PanelHeadBoat>
|
||||
|
||||
@@ -1,5 +1,7 @@
|
||||
import VueApexCharts from 'vue3-apexcharts';
|
||||
|
||||
export default defineNuxtPlugin((nuxtApp) => {
|
||||
nuxtApp.vueApp.use(VueApexCharts);
|
||||
// https://github.com/apexcharts/vue3-apexcharts/issues/141
|
||||
// eslint-disable-next-line @typescript-eslint/no-explicit-any
|
||||
nuxtApp.vueApp.use(VueApexCharts as any);
|
||||
});
|
||||
|
||||
@@ -31,8 +31,13 @@ export const useClientsStore = defineStore('Clients', () => {
|
||||
const clients = ref<null | LocalClient[]>(null);
|
||||
const clientsPersist = ref<Record<string, ClientPersist>>({});
|
||||
|
||||
const searchParams = ref({
|
||||
filter: undefined as string | undefined,
|
||||
});
|
||||
|
||||
const { data: _clients, refresh: _refresh } = useFetch('/api/client', {
|
||||
method: 'get',
|
||||
params: searchParams,
|
||||
});
|
||||
|
||||
// TODO: rewrite
|
||||
@@ -120,6 +125,7 @@ export const useClientsStore = defineStore('Clients', () => {
|
||||
};
|
||||
});
|
||||
|
||||
// TODO: move sort to backend
|
||||
if (transformedClients !== undefined) {
|
||||
transformedClients = sortByProperty(
|
||||
transformedClients,
|
||||
@@ -130,5 +136,11 @@ export const useClientsStore = defineStore('Clients', () => {
|
||||
|
||||
clients.value = transformedClients ?? null;
|
||||
}
|
||||
return { clients, clientsPersist, refresh, _clients };
|
||||
|
||||
function setSearchQuery(filter: string) {
|
||||
clients.value = null;
|
||||
searchParams.value.filter = filter || undefined;
|
||||
}
|
||||
|
||||
return { clients, clientsPersist, refresh, _clients, setSearchQuery };
|
||||
});
|
||||
|
||||
@@ -1,19 +1,39 @@
|
||||
import en from './locales/en.json';
|
||||
import pl from './locales/pl.json';
|
||||
import uk from './locales/uk.json';
|
||||
import fr from './locales/fr.json';
|
||||
import de from './locales/de.json';
|
||||
import it from './locales/it.json';
|
||||
import ru from './locales/ru.json';
|
||||
import zhhk from './locales/zh-HK.json';
|
||||
import zhcn from './locales/zh-CN.json';
|
||||
import zhtw from './locales/zh-TW.json';
|
||||
import ko from './locales/ko.json';
|
||||
import es from './locales/es.json';
|
||||
import ptbr from './locales/pt-BR.json';
|
||||
import tr from './locales/tr.json';
|
||||
import bn from './locales/bn.json';
|
||||
import id from './locales/id.json';
|
||||
|
||||
export default defineI18nConfig(() => ({
|
||||
legacy: false,
|
||||
fallbackLocale: 'en',
|
||||
messages: {
|
||||
en,
|
||||
pl,
|
||||
uk,
|
||||
fr,
|
||||
de,
|
||||
it,
|
||||
ru,
|
||||
'zh-HK': zhhk,
|
||||
'zh-CN': zhcn,
|
||||
'zh-TW': zhtw,
|
||||
ko,
|
||||
es,
|
||||
'pt-BR': ptbr,
|
||||
tr,
|
||||
bn,
|
||||
id,
|
||||
},
|
||||
}));
|
||||
|
||||
@@ -0,0 +1,240 @@
|
||||
{
|
||||
"pages": {
|
||||
"me": "অ্যাকাউন্ট",
|
||||
"clients": "ক্লায়েন্টস",
|
||||
"admin": {
|
||||
"panel": "অ্যাডমিন প্যানেল",
|
||||
"general": "সাধারণ",
|
||||
"config": "কনফিগ",
|
||||
"interface": "ইন্টারফেস",
|
||||
"hooks": "হুকস"
|
||||
}
|
||||
},
|
||||
"user": {
|
||||
"email": "ই-মেইল"
|
||||
},
|
||||
"me": {
|
||||
"currentPassword": "বর্তমান পাসওয়ার্ড",
|
||||
"enable2fa": "দুই স্তরের যাচাইকরণ চালু করুন",
|
||||
"enable2faDesc": "আপনার অথেন্টিকেটর অ্যাপ দিয়ে QR কোড স্ক্যান করুন অথবা কীটি ম্যানুয়ালি প্রবেশ করুন।",
|
||||
"2faKey": "TOTP কী",
|
||||
"2faCodeDesc": "আপনার অথেন্টিকেটর অ্যাপ থেকে কোডটি প্রবেশ করুন।",
|
||||
"disable2fa": "দুই স্তরের যাচাইকরণ বন্ধ করুন",
|
||||
"disable2faDesc": "দুই স্তরের যাচাইকরণ বন্ধ করতে আপনার পাসওয়ার্ড দিন।"
|
||||
},
|
||||
"general": {
|
||||
"name": "নাম",
|
||||
"username": "ইউজারনেম",
|
||||
"password": "পাসওয়ার্ড",
|
||||
"newPassword": "নতুন পাসওয়ার্ড",
|
||||
"updatePassword": "পাসওয়ার্ড আপডেট করুন",
|
||||
"mtu": "MTU",
|
||||
"allowedIps": "অনুমোদিত IPs",
|
||||
"dns": "DNS",
|
||||
"persistentKeepalive": "স্থায়ী কিপ-এলাইভ",
|
||||
"logout": "লগআউট",
|
||||
"continue": "চালিয়ে যান",
|
||||
"host": "হোস্ট",
|
||||
"port": "পোর্ট",
|
||||
"yes": "হ্যাঁ",
|
||||
"no": "না",
|
||||
"confirmPassword": "পাসওয়ার্ড নিশ্চিত করুন",
|
||||
"loading": "লোড হচ্ছে...",
|
||||
"2fa": "দুই স্তরের যাচাইকরণ",
|
||||
"2faCode": "TOTP কোড"
|
||||
},
|
||||
"setup": {
|
||||
"welcome": "wg-easy এর প্রথম সেটআপে স্বাগতম",
|
||||
"welcomeDesc": "আপনি WireGuard ইনস্টল ও পরিচালনার সবচেয়ে সহজ উপায় পেয়েছেন",
|
||||
"existingSetup": "আপনার কি পূর্ববর্তী সেটআপ আছে?",
|
||||
"createAdminDesc": "প্রথমে একটি অ্যাডমিন ইউজারনেম এবং শক্তিশালী পাসওয়ার্ড দিন। এই তথ্য অ্যাডমিন প্যানেলে লগইন করতে ব্যবহৃত হবে।",
|
||||
"setupConfigDesc": "হোস্ট এবং পোর্ট তথ্য দিন। এটি ক্লায়েন্ট কনফিগারেশনের জন্য ব্যবহৃত হবে যখন WireGuard তাদের ডিভাইসে সেটআপ করা হবে।",
|
||||
"setupMigrationDesc": "আপনার পূর্ববর্তী wg-easy থেকে নতুন সেটআপে ডেটা স্থানান্তর করতে চাইলে ব্যাকআপ ফাইল দিন।",
|
||||
"upload": "আপলোড",
|
||||
"migration": "ব্যাকআপ পুনরুদ্ধার করুন:",
|
||||
"createAccount": "অ্যাকাউন্ট তৈরি করুন",
|
||||
"successful": "সেটআপ সফল হয়েছে",
|
||||
"hostDesc": "পাবলিক হোস্টনেম ক্লায়েন্টরা সংযোগ করবে",
|
||||
"portDesc": "পাবলিক UDP পোর্ট ক্লায়েন্টরা সংযোগ করবে এবং WireGuard শুনবে"
|
||||
},
|
||||
"update": {
|
||||
"updateAvailable": "একটি আপডেট উপলব্ধ!",
|
||||
"update": "আপডেট"
|
||||
},
|
||||
"theme": {
|
||||
"dark": "ডার্ক থিম",
|
||||
"light": "লাইট থিম",
|
||||
"system": "সিস্টেম থিম"
|
||||
},
|
||||
"layout": {
|
||||
"toggleCharts": "চার্ট দেখান/লুকান",
|
||||
"donate": "ডোনেট"
|
||||
},
|
||||
"login": {
|
||||
"signIn": "সাইন ইন",
|
||||
"rememberMe": "মনে রাখুন",
|
||||
"rememberMeDesc": "ব্রাউজার বন্ধ করার পরেও লগইন থাকুন",
|
||||
"insecure": "অনিরাপদ সংযোগে লগইন করা যাবে না। HTTPS ব্যবহার করুন।",
|
||||
"2faRequired": "দুই স্তরের যাচাইকরণ প্রয়োজন",
|
||||
"2faWrong": "দুই স্তরের যাচাইকরণ ভুল"
|
||||
},
|
||||
"client": {
|
||||
"empty": "এখনো কোনো ক্লায়েন্ট নেই।",
|
||||
"newShort": "নতুন",
|
||||
"sort": "সাজান",
|
||||
"create": "ক্লায়েন্ট তৈরি করুন",
|
||||
"created": "ক্লায়েন্ট তৈরি হয়েছে",
|
||||
"new": "নতুন ক্লায়েন্ট",
|
||||
"name": "নাম",
|
||||
"expireDate": "মেয়াদ শেষের তারিখ",
|
||||
"expireDateDesc": "যেদিন ক্লায়েন্ট নিষ্ক্রিয় হবে। স্থায়ী করতে ফাঁকা রাখুন",
|
||||
"deleteClient": "ক্লায়েন্ট মুছে ফেলুন",
|
||||
"deleteDialog1": "আপনি কি নিশ্চিতভাবে মুছে ফেলতে চান",
|
||||
"deleteDialog2": "এই কাজটি পূর্বাবস্থায় ফেরানো যাবে না।",
|
||||
"enabled": "সক্রিয়",
|
||||
"address": "ঠিকানা",
|
||||
"serverAllowedIps": "সার্ভার অনুমোদিত IPs",
|
||||
"otlDesc": "সংক্ষিপ্ত একবারের লিঙ্ক তৈরি করুন",
|
||||
"permanent": "স্থায়ী",
|
||||
"createdOn": "তৈরি হয়েছে",
|
||||
"lastSeen": "শেষ দেখা হয়েছে",
|
||||
"totalDownload": "মোট ডাউনলোড: ",
|
||||
"totalUpload": "মোট আপলোড: ",
|
||||
"newClient": "নতুন ক্লায়েন্ট",
|
||||
"disableClient": "ক্লায়েন্ট নিষ্ক্রিয় করুন",
|
||||
"enableClient": "ক্লায়েন্ট সক্রিয় করুন",
|
||||
"noPrivKey": "এই ক্লায়েন্টের কোনো ব্যক্তিগত কী নেই। কনফিগারেশন তৈরি করা যাবে না।",
|
||||
"showQR": "QR কোড দেখান",
|
||||
"downloadConfig": "কনফিগারেশন ডাউনলোড করুন",
|
||||
"allowedIpsDesc": "কোন IPs VPN এর মাধ্যমে রাউট হবে (গ্লোবাল কনফিগ ওভাররাইড করবে)",
|
||||
"serverAllowedIpsDesc": "কোন IPs সার্ভার ক্লায়েন্টে রাউট করবে",
|
||||
"mtuDesc": "VPN টানেলের জন্য সর্বাধিক প্যাকেট সাইজ নির্ধারণ করে",
|
||||
"persistentKeepaliveDesc": "কিপ-এলাইভ প্যাকেটের জন্য ইন্টারভাল (সেকেন্ডে)। 0 হলে বন্ধ",
|
||||
"hooks": "হুকস",
|
||||
"hooksDescription": "হুকস শুধুমাত্র wg-quick এর সাথে কাজ করে",
|
||||
"hooksLeaveEmpty": "শুধুমাত্র wg-quick এর জন্য। অন্যথায় ফাঁকা রাখুন",
|
||||
"dnsDesc": "DNS সার্ভার ক্লায়েন্টরা ব্যবহার করবে (গ্লোবাল কনফিগ ওভাররাইড করবে)",
|
||||
"notConnected": "ক্লায়েন্ট সংযুক্ত নয়",
|
||||
"endpoint": "এন্ডপয়েন্ট",
|
||||
"endpointDesc": "ক্লায়েন্টের IP যেখান থেকে WireGuard সংযোগ স্থাপন করা হয়েছে"
|
||||
},
|
||||
"dialog": {
|
||||
"change": "পরিবর্তন করুন",
|
||||
"cancel": "বাতিল করুন",
|
||||
"create": "তৈরি করুন"
|
||||
},
|
||||
"toast": {
|
||||
"success": "সফলতা",
|
||||
"saved": "সংরক্ষিত",
|
||||
"error": "ত্রুটি"
|
||||
},
|
||||
"form": {
|
||||
"actions": "কর্মসমূহ",
|
||||
"save": "সংরক্ষণ করুন",
|
||||
"revert": "পূর্বাবস্থায় ফেরান",
|
||||
"sectionGeneral": "সাধারণ",
|
||||
"sectionAdvanced": "উন্নত",
|
||||
"noItems": "কোনো আইটেম নেই",
|
||||
"nullNoItems": "কোনো আইটেম নেই। গ্লোবাল কনফিগ ব্যবহার হচ্ছে",
|
||||
"add": "যোগ করুন"
|
||||
},
|
||||
"admin": {
|
||||
"general": {
|
||||
"sessionTimeout": "সেশন টাইমআউট",
|
||||
"sessionTimeoutDesc": "মনে রাখুনের জন্য সেশন সময়কাল (সেকেন্ডে)",
|
||||
"metrics": "মেট্রিক্স",
|
||||
"metricsPassword": "পাসওয়ার্ড",
|
||||
"metricsPasswordDesc": "মেট্রিক্স এন্ডপয়েন্টের জন্য বেয়ারার পাসওয়ার্ড (পাসওয়ার্ড বা argon2 হ্যাশ)",
|
||||
"json": "JSON",
|
||||
"jsonDesc": "JSON ফরম্যাটে মেট্রিক্সের রুট",
|
||||
"prometheus": "Prometheus",
|
||||
"prometheusDesc": "Prometheus মেট্রিক্সের রুট"
|
||||
},
|
||||
"config": {
|
||||
"connection": "সংযোগ",
|
||||
"hostDesc": "পাবলিক হোস্টনেম ক্লায়েন্টরা সংযোগ করবে (কনফিগ বাতিল হবে)",
|
||||
"portDesc": "পাবলিক UDP পোর্ট ক্লায়েন্টরা সংযোগ করবে (কনফিগ বাতিল হবে, আপনি সম্ভবত ইন্টারফেস পোর্টও পরিবর্তন করতে চাইবেন)",
|
||||
"allowedIpsDesc": "অনুমোদিত IPs ক্লায়েন্টরা ব্যবহার করবে (গ্লোবাল কনফিগ)",
|
||||
"dnsDesc": "DNS সার্ভার ক্লায়েন্টরা ব্যবহার করবে (গ্লোবাল কনফিগ)",
|
||||
"mtuDesc": "MTU ক্লায়েন্টরা ব্যবহার করবে (শুধুমাত্র নতুন ক্লায়েন্টের জন্য)",
|
||||
"persistentKeepaliveDesc": "সার্ভারে কিপ-এলাইভ পাঠানোর ইন্টারভাল (সেকেন্ডে)। 0 = বন্ধ (শুধুমাত্র নতুন ক্লায়েন্টের জন্য)",
|
||||
"suggest": "পরামর্শ",
|
||||
"suggestDesc": "হোস্ট ফিল্ডের জন্য একটি IP-ঠিকানা বা হোস্টনেম নির্বাচন করুন"
|
||||
},
|
||||
"interface": {
|
||||
"cidrSuccess": "CIDR পরিবর্তন হয়েছে",
|
||||
"device": "ডিভাইস",
|
||||
"deviceDesc": "ইথারনেট ডিভাইস যার মাধ্যমে wireguard ট্রাফিক ফরওয়ার্ড হবে",
|
||||
"mtuDesc": "WireGuard ব্যবহার করবে এমন MTU",
|
||||
"portDesc": "UDP পোর্ট WireGuard শুনবে (আপনি সম্ভবত কনফিগ পোর্টও পরিবর্তন করতে চাইবেন)",
|
||||
"changeCidr": "CIDR পরিবর্তন করুন",
|
||||
"restart": "ইন্টারফেস রিস্টার্ট করুন",
|
||||
"restartDesc": "WireGuard ইন্টারফেস রিস্টার্ট করুন",
|
||||
"restartWarn": "আপনি কি নিশ্চিতভাবে ইন্টারফেস রিস্টার্ট করতে চান? এতে সব ক্লায়েন্ট সংযোগ বিচ্ছিন্ন হবে।",
|
||||
"restartSuccess": "ইন্টারফেস রিস্টার্ট হয়েছে"
|
||||
},
|
||||
"introText": "অ্যাডমিন প্যানেলে স্বাগতম।\n\nএখানে আপনি সাধারণ সেটিংস, কনফিগারেশন, ইন্টারফেস সেটিংস এবং হুকস পরিচালনা করতে পারবেন।\n\nসাইডবার থেকে একটি বিভাগ নির্বাচন করে শুরু করুন।"
|
||||
},
|
||||
"zod": {
|
||||
"generic": {
|
||||
"required": "{0} আবশ্যক",
|
||||
"validNumber": "{0} একটি বৈধ সংখ্যা হতে হবে",
|
||||
"validString": "{0} একটি বৈধ স্ট্রিং হতে হবে",
|
||||
"validBoolean": "{0} একটি বৈধ বুলিয়ান হতে হবে",
|
||||
"validArray": "{0} একটি বৈধ অ্যারে হতে হবে",
|
||||
"stringMin": "{0} কমপক্ষে {1} অক্ষর হতে হবে",
|
||||
"numberMin": "{0} কমপক্ষে {1} হতে হবে"
|
||||
},
|
||||
"client": {
|
||||
"id": "ক্লায়েন্ট আইডি",
|
||||
"name": "নাম",
|
||||
"expiresAt": "মেয়াদ শেষ",
|
||||
"address4": "IPv4 ঠিকানা",
|
||||
"address6": "IPv6 ঠিকানা",
|
||||
"serverAllowedIps": "সার্ভার অনুমোদিত IPs"
|
||||
},
|
||||
"user": {
|
||||
"username": "ইউজারনেম",
|
||||
"password": "পাসওয়ার্ড",
|
||||
"remember": "মনে রাখুন",
|
||||
"name": "নাম",
|
||||
"email": "ই-মেইল",
|
||||
"emailInvalid": "ই-মেইল একটি বৈধ ই-মেইল হতে হবে",
|
||||
"passwordMatch": "পাসওয়ার্ড মিলতে হবে",
|
||||
"totpEnable": "TOTP চালু",
|
||||
"totpEnableTrue": "TOTP চালু সত্য হতে হবে",
|
||||
"totpCode": "TOTP কোড"
|
||||
},
|
||||
"userConfig": {
|
||||
"host": "হোস্ট"
|
||||
},
|
||||
"general": {
|
||||
"sessionTimeout": "সেশন টাইমআউট",
|
||||
"metricsEnabled": "মেট্রিক্স",
|
||||
"metricsPassword": "মেট্রিক্স পাসওয়ার্ড"
|
||||
},
|
||||
"interface": {
|
||||
"cidr": "CIDR",
|
||||
"device": "ডিভাইস",
|
||||
"cidrValid": "CIDR বৈধ হতে হবে"
|
||||
},
|
||||
"otl": "একবারের লিঙ্ক",
|
||||
"stringMalformed": "স্ট্রিং বিকৃত",
|
||||
"body": "বডি একটি বৈধ অবজেক্ট হতে হবে",
|
||||
"hook": "হুক",
|
||||
"enabled": "সক্রিয়",
|
||||
"mtu": "MTU",
|
||||
"port": "পোর্ট",
|
||||
"persistentKeepalive": "স্থায়ী কিপ-এলাইভ",
|
||||
"address": "IP ঠিকানা",
|
||||
"dns": "DNS",
|
||||
"allowedIps": "অনুমোদিত IPs",
|
||||
"file": "ফাইল"
|
||||
},
|
||||
"hooks": {
|
||||
"preUp": "PreUp",
|
||||
"postUp": "PostUp",
|
||||
"preDown": "PreDown",
|
||||
"postDown": "PostDown"
|
||||
}
|
||||
}
|
||||
@@ -88,6 +88,7 @@
|
||||
"name": "Name",
|
||||
"expireDate": "Expire Date",
|
||||
"expireDateDesc": "Date the client will be disabled. Blank for permanent",
|
||||
"delete": "Delete",
|
||||
"deleteClient": "Delete Client",
|
||||
"deleteDialog1": "Are you sure you want to delete",
|
||||
"deleteDialog2": "This action cannot be undone.",
|
||||
@@ -113,7 +114,13 @@
|
||||
"hooks": "Hooks",
|
||||
"hooksDescription": "Hooks only work with wg-quick",
|
||||
"hooksLeaveEmpty": "Only for wg-quick. Otherwise, leave it empty",
|
||||
"dnsDesc": "DNS server clients will use (overrides global config)"
|
||||
"dnsDesc": "DNS server clients will use (overrides global config)",
|
||||
"notConnected": "Client not connected",
|
||||
"endpoint": "Endpoint",
|
||||
"endpointDesc": "IP of the client from which the WireGuard connection is established",
|
||||
"search": "Search clients...",
|
||||
"config": "Configuration",
|
||||
"viewConfig": "View Configuration"
|
||||
},
|
||||
"dialog": {
|
||||
"change": "Change",
|
||||
@@ -233,5 +240,47 @@
|
||||
"postUp": "PostUp",
|
||||
"preDown": "PreDown",
|
||||
"postDown": "PostDown"
|
||||
},
|
||||
"copy": {
|
||||
"notSupported": "Copy is not supported",
|
||||
"copied": "Copied!",
|
||||
"failed": "Copy failed",
|
||||
"copy": "Copy"
|
||||
},
|
||||
"awg": {
|
||||
"jCLabel": "Junk packet count (Jc)",
|
||||
"jCDescription": "Number of junk packets to send (1-128, recommended: 4-12)",
|
||||
"jMinLabel": "Junk packet min size (Jmin)",
|
||||
"jMinDescription": "Minimum size of junk packets (0-1279*, recommended: 8, must be < Jmax)",
|
||||
"jMaxLabel": "Junk packet max size (Jmax)",
|
||||
"jMaxDescription": "Maximum size of junk packets (1-1280*, recommended: 80, must be > Jmin)",
|
||||
"s1Label": "Init packet junk size (S1)",
|
||||
"s1Description": "Init packet junk size (0-1132[1280* - 148 = 1132], recommended: 15-150, S1+56 ≠ S2)",
|
||||
"s2Label": "Response packet junk size (S2)",
|
||||
"s2Description": "Response packet junk size (0-1188[1280* - 92 = 1188], recommended: 15-150)",
|
||||
"s3Label": "Cookie reply packet junk size (S3)",
|
||||
"s3Description": "Cookie reply packet junk size",
|
||||
"s4Label": "Transport packet junk size (S4)",
|
||||
"s4Description": "Transport packet junk size",
|
||||
"i1Label": "Special junk packet 1 (I1)",
|
||||
"i1Description": "Protocol mimic packet in hex format: <b 0x...>",
|
||||
"i2Label": "Special junk packet 2 (I2)",
|
||||
"i2Description": "Protocol mimic packet in hex format: <b 0x...>",
|
||||
"i3Label": "Special junk packet 3 (I3)",
|
||||
"i3Description": "Protocol mimic packet in hex format: <b 0x...>",
|
||||
"i4Label": "Special junk packet 4 (I4)",
|
||||
"i4Description": "Protocol mimic packet in hex format: <b 0x...>",
|
||||
"i5Label": "Special junk packet 5 (I5)",
|
||||
"i5Description": "Protocol mimic packet in hex format: <b 0x...>",
|
||||
"h1Label": "Init magic header (H1)",
|
||||
"h1Description": "Init packet header value (5-2147483647, must be unique from H2-H4)",
|
||||
"h2Label": "Response magic header (H2)",
|
||||
"h2Description": "Response packet header value (5-2147483647, must be unique from H1, H3, H4)",
|
||||
"h3Label": "Cookie reply magic header (H3)",
|
||||
"h3Description": "Cookie reply packet header value (5-2147483647, must be unique from H1, H2, H4)",
|
||||
"h4Label": "Transport magic header (H4)",
|
||||
"h4Description": "Transport packet header value (5-2147483647, must be unique from H1-H3)",
|
||||
"mtuNote": "Values depend on the MTU",
|
||||
"obfuscationParameters": "AmneziaWG Obfuscation Parameters"
|
||||
}
|
||||
}
|
||||
|
||||
@@ -0,0 +1,240 @@
|
||||
{
|
||||
"pages": {
|
||||
"me": "Cuenta",
|
||||
"clients": "Clientes",
|
||||
"admin": {
|
||||
"panel": "Panel de Admin.",
|
||||
"general": "General",
|
||||
"config": "Configuración",
|
||||
"interface": "Interfaz",
|
||||
"hooks": "Hooks"
|
||||
}
|
||||
},
|
||||
"user": {
|
||||
"email": "Correo electrónico"
|
||||
},
|
||||
"me": {
|
||||
"currentPassword": "Contraseña actual",
|
||||
"enable2fa": "Habilitar autenticación en dos pasos",
|
||||
"enable2faDesc": "Escanea el código QR con tu aplicación de autenticación o introduce la clave manualmente.",
|
||||
"2faKey": "Clave TOTP",
|
||||
"2faCodeDesc": "Introduce el código de tu aplicación de autenticación.",
|
||||
"disable2fa": "Desactivar autenticación en dos pasos",
|
||||
"disable2faDesc": "Introduce tu contraseña para desactivar la autenticación en dos pasos."
|
||||
},
|
||||
"general": {
|
||||
"name": "Nombre",
|
||||
"username": "Usuario",
|
||||
"password": "Contraseña",
|
||||
"newPassword": "Nueva contraseña",
|
||||
"updatePassword": "Actualizar contraseña",
|
||||
"mtu": "MTU",
|
||||
"allowedIps": "IPs permitidas",
|
||||
"dns": "DNS",
|
||||
"persistentKeepalive": "Keepalive persistente",
|
||||
"logout": "Cerrar sesión",
|
||||
"continue": "Continuar",
|
||||
"host": "Host",
|
||||
"port": "Puerto",
|
||||
"yes": "Sí",
|
||||
"no": "No",
|
||||
"confirmPassword": "Confirmar contraseña",
|
||||
"loading": "Cargando...",
|
||||
"2fa": "Autenticación en dos pasos",
|
||||
"2faCode": "Código TOTP"
|
||||
},
|
||||
"setup": {
|
||||
"welcome": "Bienvenido a tu primera configuración de wg-easy",
|
||||
"welcomeDesc": "Has encontrado la forma más fácil de instalar y gestionar WireGuard en cualquier host Linux",
|
||||
"existingSetup": "¿Tienes una configuración existente?",
|
||||
"createAdminDesc": "Por favor, introduce un nombre de usuario y una contraseña segura. Esta información se usará para iniciar sesión en el panel de administración.",
|
||||
"setupConfigDesc": "Introduce la información del host y puerto. Se utilizará para la configuración del cliente al instalar WireGuard en sus dispositivos.",
|
||||
"setupMigrationDesc": "Proporciona el archivo de copia de seguridad si deseas migrar tus datos desde una versión anterior de wg-easy a esta nueva configuración.",
|
||||
"upload": "Subir",
|
||||
"migration": "Restaurar copia de seguridad:",
|
||||
"createAccount": "Crear cuenta",
|
||||
"successful": "Configuración completada",
|
||||
"hostDesc": "Nombre de host público al que se conectarán los clientes",
|
||||
"portDesc": "Puerto UDP público al que se conectarán los clientes y que escuchará WireGuard"
|
||||
},
|
||||
"update": {
|
||||
"updateAvailable": "¡Hay una actualización disponible!",
|
||||
"update": "Actualizar"
|
||||
},
|
||||
"theme": {
|
||||
"dark": "Tema oscuro",
|
||||
"light": "Tema claro",
|
||||
"system": "Tema del sistema"
|
||||
},
|
||||
"layout": {
|
||||
"toggleCharts": "Mostrar/ocultar gráficos",
|
||||
"donate": "Donar"
|
||||
},
|
||||
"login": {
|
||||
"signIn": "Iniciar sesión",
|
||||
"rememberMe": "Recordarme",
|
||||
"rememberMeDesc": "Mantener sesión iniciada tras cerrar el navegador",
|
||||
"insecure": "No puedes iniciar sesión con una conexión no segura. Usa HTTPS.",
|
||||
"2faRequired": "Se requiere autenticación en dos pasos",
|
||||
"2faWrong": "El código de autenticación en dos pasos es incorrecto"
|
||||
},
|
||||
"client": {
|
||||
"empty": "No hay clientes todavía.",
|
||||
"newShort": "Nuevo",
|
||||
"sort": "Ordenar",
|
||||
"create": "Crear cliente",
|
||||
"created": "Cliente creado",
|
||||
"new": "Nuevo cliente",
|
||||
"name": "Nombre",
|
||||
"expireDate": "Fecha de expiración",
|
||||
"expireDateDesc": "Fecha en que el cliente será desactivado. En blanco = permanente",
|
||||
"deleteClient": "Eliminar cliente",
|
||||
"deleteDialog1": "¿Estás seguro de que deseas eliminar a",
|
||||
"deleteDialog2": "Esta acción no se puede deshacer.",
|
||||
"enabled": "Habilitado",
|
||||
"address": "Dirección",
|
||||
"serverAllowedIps": "IPs permitidas del servidor",
|
||||
"otlDesc": "Generar enlace único de un solo uso",
|
||||
"permanent": "Permanente",
|
||||
"createdOn": "Creado el ",
|
||||
"lastSeen": "Última conexión el ",
|
||||
"totalDownload": "Descarga total: ",
|
||||
"totalUpload": "Subida total: ",
|
||||
"newClient": "Nuevo cliente",
|
||||
"disableClient": "Desactivar cliente",
|
||||
"enableClient": "Activar cliente",
|
||||
"noPrivKey": "Este cliente no tiene clave privada conocida. No se puede crear la configuración.",
|
||||
"showQR": "Mostrar código QR",
|
||||
"downloadConfig": "Descargar configuración",
|
||||
"allowedIpsDesc": "Qué IPs se enrutarán por la VPN (anula la configuración global)",
|
||||
"serverAllowedIpsDesc": "Qué IPs el servidor enviará al cliente",
|
||||
"mtuDesc": "Tamaño máximo de paquete (MTU) para el túnel VPN",
|
||||
"persistentKeepaliveDesc": "Intervalo (en segundos) para los paquetes keep-alive. 0 lo desactiva",
|
||||
"hooks": "Hooks",
|
||||
"hooksDescription": "Los hooks solo funcionan con wg-quick",
|
||||
"hooksLeaveEmpty": "Solo para wg-quick. En caso contrario, dejar vacío",
|
||||
"dnsDesc": "Servidor DNS que usarán los clientes (anula la configuración global)",
|
||||
"notConnected": "Cliente no conectado",
|
||||
"endpoint": "Punto de conexión",
|
||||
"endpointDesc": "IP del cliente desde donde se establece la conexión WireGuard"
|
||||
},
|
||||
"dialog": {
|
||||
"change": "Cambiar",
|
||||
"cancel": "Cancelar",
|
||||
"create": "Crear"
|
||||
},
|
||||
"toast": {
|
||||
"success": "Éxito",
|
||||
"saved": "Guardado",
|
||||
"error": "Error"
|
||||
},
|
||||
"form": {
|
||||
"actions": "Acciones",
|
||||
"save": "Guardar",
|
||||
"revert": "Revertir",
|
||||
"sectionGeneral": "General",
|
||||
"sectionAdvanced": "Avanzado",
|
||||
"noItems": "Sin elementos",
|
||||
"nullNoItems": "Sin elementos. Usando configuración global",
|
||||
"add": "Añadir"
|
||||
},
|
||||
"admin": {
|
||||
"general": {
|
||||
"sessionTimeout": "Tiempo de sesión",
|
||||
"sessionTimeoutDesc": "Duración de sesión con 'Recordarme' (en segundos)",
|
||||
"metrics": "Métricas",
|
||||
"metricsPassword": "Contraseña",
|
||||
"metricsPasswordDesc": "Contraseña Bearer para el endpoint de métricas (contraseña o hash argon2)",
|
||||
"json": "JSON",
|
||||
"jsonDesc": "Ruta para métricas en formato JSON",
|
||||
"prometheus": "Prometheus",
|
||||
"prometheusDesc": "Ruta para métricas de Prometheus"
|
||||
},
|
||||
"config": {
|
||||
"connection": "Conexión",
|
||||
"hostDesc": "Nombre de host público al que se conectarán los clientes (invalida config)",
|
||||
"portDesc": "Puerto UDP público al que se conectarán los clientes (invalida config, también debes cambiar el puerto de interfaz)",
|
||||
"allowedIpsDesc": "IPs permitidas que usarán los clientes (configuración global)",
|
||||
"dnsDesc": "Servidor DNS que usarán los clientes (configuración global)",
|
||||
"mtuDesc": "MTU que usarán los clientes (solo para nuevos clientes)",
|
||||
"persistentKeepaliveDesc": "Intervalo en segundos para enviar keepalives al servidor. 0 = desactivado (solo para nuevos clientes)",
|
||||
"suggest": "Sugerir",
|
||||
"suggestDesc": "Elegir dirección IP o nombre de host para el campo Host"
|
||||
},
|
||||
"interface": {
|
||||
"cidrSuccess": "CIDR cambiado",
|
||||
"device": "Dispositivo",
|
||||
"deviceDesc": "Dispositivo Ethernet por donde se reenviará el tráfico de WireGuard",
|
||||
"mtuDesc": "MTU que usará WireGuard",
|
||||
"portDesc": "Puerto UDP en el que escuchará WireGuard (debes cambiar también el puerto de config)",
|
||||
"changeCidr": "Cambiar CIDR",
|
||||
"restart": "Reiniciar interfaz",
|
||||
"restartDesc": "Reiniciar la interfaz de WireGuard",
|
||||
"restartWarn": "¿Estás seguro de reiniciar la interfaz? Esto desconectará a todos los clientes.",
|
||||
"restartSuccess": "Interfaz reiniciada"
|
||||
},
|
||||
"introText": "Bienvenido al panel de administración.\n\nAquí puedes gestionar los ajustes generales, la configuración, la interfaz y los hooks.\n\nEmpieza eligiendo una de las secciones en la barra lateral."
|
||||
},
|
||||
"zod": {
|
||||
"generic": {
|
||||
"required": "{0} es obligatorio",
|
||||
"validNumber": "{0} debe ser un número válido",
|
||||
"validString": "{0} debe ser una cadena válida",
|
||||
"validBoolean": "{0} debe ser un booleano válido",
|
||||
"validArray": "{0} debe ser una lista válida",
|
||||
"stringMin": "{0} debe tener al menos {1} caracteres",
|
||||
"numberMin": "{0} debe ser al menos {1}"
|
||||
},
|
||||
"client": {
|
||||
"id": "ID del cliente",
|
||||
"name": "Nombre",
|
||||
"expiresAt": "Expira el",
|
||||
"address4": "Dirección IPv4",
|
||||
"address6": "Dirección IPv6",
|
||||
"serverAllowedIps": "IPs permitidas del servidor"
|
||||
},
|
||||
"user": {
|
||||
"username": "Usuario",
|
||||
"password": "Contraseña",
|
||||
"remember": "Recordar",
|
||||
"name": "Nombre",
|
||||
"email": "Correo electrónico",
|
||||
"emailInvalid": "El correo electrónico debe ser válido",
|
||||
"passwordMatch": "Las contraseñas deben coincidir",
|
||||
"totpEnable": "Activar TOTP",
|
||||
"totpEnableTrue": "Debe estar activado",
|
||||
"totpCode": "Código TOTP"
|
||||
},
|
||||
"userConfig": {
|
||||
"host": "Host"
|
||||
},
|
||||
"general": {
|
||||
"sessionTimeout": "Tiempo de sesión",
|
||||
"metricsEnabled": "Métricas",
|
||||
"metricsPassword": "Contraseña de métricas"
|
||||
},
|
||||
"interface": {
|
||||
"cidr": "CIDR",
|
||||
"device": "Dispositivo",
|
||||
"cidrValid": "El CIDR debe ser válido"
|
||||
},
|
||||
"otl": "Enlace de un solo uso",
|
||||
"stringMalformed": "Cadena malformada",
|
||||
"body": "El cuerpo debe ser un objeto válido",
|
||||
"hook": "Hook",
|
||||
"enabled": "Habilitado",
|
||||
"mtu": "MTU",
|
||||
"port": "Puerto",
|
||||
"persistentKeepalive": "Keepalive persistente",
|
||||
"address": "Dirección IP",
|
||||
"dns": "DNS",
|
||||
"allowedIps": "IPs permitidas",
|
||||
"file": "Archivo"
|
||||
},
|
||||
"hooks": {
|
||||
"preUp": "PreUp",
|
||||
"postUp": "PostUp",
|
||||
"preDown": "PreDown",
|
||||
"postDown": "PostDown"
|
||||
}
|
||||
}
|
||||
+62
-13
@@ -15,12 +15,12 @@
|
||||
},
|
||||
"me": {
|
||||
"currentPassword": "Mot de passe actuel",
|
||||
"enable2fa": "Activer l'authentification à double facteur",
|
||||
"enable2fa": "Activer l'authentification à deux facteurs",
|
||||
"enable2faDesc": "Scannez le code QR avec votre application d'authentification ou saisissez la clé manuellement.",
|
||||
"2faKey": "Clé TOTP",
|
||||
"2faCodeDesc": "Saisissez le code de votre application d'authentification.",
|
||||
"disable2fa": "Désactiver l'authentification à double facteur",
|
||||
"disable2faDesc": "Saisissez votre mot de passe pour désactiver l'authentification à double facteur"
|
||||
"disable2fa": "Désactiver l'authentification à deux facteurs",
|
||||
"disable2faDesc": "Saisissez votre mot de passe pour désactiver l'authentification à deux facteurs."
|
||||
},
|
||||
"general": {
|
||||
"name": "Nom",
|
||||
@@ -40,7 +40,7 @@
|
||||
"no": "Non",
|
||||
"confirmPassword": "Confirmer le mot de passe",
|
||||
"loading": "Chargement...",
|
||||
"2fa": "Authentification à double facteur",
|
||||
"2fa": "Authentification à deux facteurs",
|
||||
"2faCode": "Code TOTP"
|
||||
},
|
||||
"setup": {
|
||||
@@ -75,8 +75,8 @@
|
||||
"rememberMe": "Se souvenir de moi",
|
||||
"rememberMeDesc": "Rester connecté après avoir fermé le navigateur",
|
||||
"insecure": "Vous ne pouvez pas vous connecter avec une connexion non sécurisée. Utilisez HTTPS.",
|
||||
"2faRequired": "Une authentification à double facteur est requise",
|
||||
"2faWrong": "L'authentification à double facteur est incorrecte"
|
||||
"2faRequired": "L'authentification à deux facteurs est requise",
|
||||
"2faWrong": "Le code d'authentification à deux facteurs est incorrect"
|
||||
},
|
||||
"client": {
|
||||
"empty": "Il n'y a pas encore de clients.",
|
||||
@@ -108,12 +108,19 @@
|
||||
"downloadConfig": "Télécharger la configuration",
|
||||
"allowedIpsDesc": "Quelles IPs seront acheminées par le VPN (remplace la configuration globale)",
|
||||
"serverAllowedIpsDesc": "Les IPs que le serveur acheminera vers le client",
|
||||
"mtuDesc": "Définit le nombre maximum d'unités de transmission (taille des paquets) pour le tunnel VPN.",
|
||||
"mtuDesc": "Définit l'unité de transmission maximale (taille des paquets) pour le tunnel VPN",
|
||||
"persistentKeepaliveDesc": "Définit l'intervalle (en secondes) pour les paquets keep-alive. 0 le désactive",
|
||||
"hooks": "Hooks",
|
||||
"hooksDescription": "Les hooks ne fonctionnent qu'avec wg-quick",
|
||||
"hooksLeaveEmpty": "Uniquement pour wg-quick. Sinon, laissez-le vide",
|
||||
"dnsDesc": "Serveur DNS que les clients utiliseront (remplace la configuration globale)"
|
||||
"dnsDesc": "Serveur DNS que les clients utiliseront (remplace la configuration globale)",
|
||||
"notConnected": "Client non connecté",
|
||||
"endpoint": "Endpoint",
|
||||
"endpointDesc": "Adresse IP du client à partir duquel la connexion WireGuard est établie",
|
||||
"search": "Rechercher des clients...",
|
||||
"config": "Configuration",
|
||||
"viewConfig": "Voir la configuration",
|
||||
"delete": "Supprimer"
|
||||
},
|
||||
"dialog": {
|
||||
"change": "Modifier",
|
||||
@@ -143,9 +150,9 @@
|
||||
"metricsPassword": "Mot de passe",
|
||||
"metricsPasswordDesc": "Mot de passe Bearer pour le endpoint des métriques (mot de passe ou argon2 hash)",
|
||||
"json": "JSON",
|
||||
"jsonDesc": "Acheminement pour les métriques au format JSON",
|
||||
"jsonDesc": "Route pour les métriques au format JSON",
|
||||
"prometheus": "Prometheus",
|
||||
"prometheusDesc": "Acheminement pour les métriques de Prometheus"
|
||||
"prometheusDesc": "Route pour les métriques Prometheus"
|
||||
},
|
||||
"config": {
|
||||
"connection": "Connexion",
|
||||
@@ -177,13 +184,13 @@
|
||||
"required": "{0} est requis",
|
||||
"validNumber": "{0} doit être un nombre valide",
|
||||
"validString": "{0} doit être une chaîne de caractères valide",
|
||||
"validBoolean": "{0} doit être une variable valide",
|
||||
"validBoolean": "{0} doit être un booléen valide",
|
||||
"validArray": "{0} doit être un tableau valide",
|
||||
"stringMin": "{0} doit être d'au moins {1} Caractère",
|
||||
"stringMin": "{0} doit comporter au moins {1} caractère(s)",
|
||||
"numberMin": "{0} doit être d'au moins {1}"
|
||||
},
|
||||
"client": {
|
||||
"id": "Client ID",
|
||||
"id": "ID du client",
|
||||
"name": "Nom",
|
||||
"expiresAt": "Expire le",
|
||||
"address4": "Adresse IPv4",
|
||||
@@ -233,5 +240,47 @@
|
||||
"postUp": "PostUp",
|
||||
"preDown": "PreDown",
|
||||
"postDown": "PostDown"
|
||||
},
|
||||
"copy": {
|
||||
"notSupported": "La copie n'est pas prise en charge",
|
||||
"copied": "Copié !",
|
||||
"failed": "Échec de la copie",
|
||||
"copy": "Copier"
|
||||
},
|
||||
"awg": {
|
||||
"jCLabel": "Nombre de paquets parasites (Jc)",
|
||||
"jCDescription": "Nombre de paquets parasites à envoyer (1-128, recommandé : 4-12)",
|
||||
"jMinLabel": "Taille min des paquets parasites (Jmin)",
|
||||
"jMinDescription": "Taille minimale des paquets parasites (0-1279*, recommandé : 8, doit être < Jmax)",
|
||||
"jMaxLabel": "Taille max des paquets parasites (Jmax)",
|
||||
"jMaxDescription": "Taille maximale des paquets parasites (1-1280*, recommandé : 80, doit être > Jmin)",
|
||||
"s1Label": "Taille parasite du paquet init (S1)",
|
||||
"s1Description": "Taille parasite du paquet d'initialisation (0-1132[1280* - 148 = 1132], recommandé : 15-150, S1+56 ≠ S2)",
|
||||
"s2Label": "Taille parasite du paquet réponse (S2)",
|
||||
"s2Description": "Taille parasite du paquet de réponse (0-1188[1280* - 92 = 1188], recommandé : 15-150)",
|
||||
"s3Label": "Taille parasite du paquet cookie reply (S3)",
|
||||
"s3Description": "Taille parasite du paquet de réponse cookie",
|
||||
"s4Label": "Taille parasite du paquet transport (S4)",
|
||||
"s4Description": "Taille parasite du paquet de transport",
|
||||
"i1Label": "Paquet parasite spécial 1 (I1)",
|
||||
"i1Description": "Paquet de simulation de protocole en format hexadécimal : <b 0x...>",
|
||||
"i2Label": "Paquet parasite spécial 2 (I2)",
|
||||
"i2Description": "Paquet de simulation de protocole en format hexadécimal : <b 0x...>",
|
||||
"i3Label": "Paquet parasite spécial 3 (I3)",
|
||||
"i3Description": "Paquet de simulation de protocole en format hexadécimal : <b 0x...>",
|
||||
"i4Label": "Paquet parasite spécial 4 (I4)",
|
||||
"i4Description": "Paquet de simulation de protocole en format hexadécimal : <b 0x...>",
|
||||
"i5Label": "Paquet parasite spécial 5 (I5)",
|
||||
"i5Description": "Paquet de simulation de protocole en format hexadécimal : <b 0x...>",
|
||||
"h1Label": "En-tête magique init (H1)",
|
||||
"h1Description": "Valeur d'en-tête du paquet init (5-2147483647, doit être unique par rapport à H2-H4)",
|
||||
"h2Label": "En-tête magique réponse (H2)",
|
||||
"h2Description": "Valeur d'en-tête du paquet réponse (5-2147483647, doit être unique par rapport à H1, H3, H4)",
|
||||
"h3Label": "En-tête magique cookie reply (H3)",
|
||||
"h3Description": "Valeur d'en-tête du paquet cookie reply (5-2147483647, doit être unique par rapport à H1, H2, H4)",
|
||||
"h4Label": "En-tête magique transport (H4)",
|
||||
"h4Description": "Valeur d'en-tête du paquet transport (5-2147483647, doit être unique par rapport à H1-H3)",
|
||||
"mtuNote": "Les valeurs dépendent du MTU",
|
||||
"obfuscationParameters": "Paramètres d'obfuscation AmneziaWG"
|
||||
}
|
||||
}
|
||||
|
||||
@@ -0,0 +1,240 @@
|
||||
{
|
||||
"pages": {
|
||||
"me": "Akun",
|
||||
"clients": "Klien",
|
||||
"admin": {
|
||||
"panel": "Panel Admin",
|
||||
"general": "General",
|
||||
"config": "Umum",
|
||||
"interface": "Antarmuka",
|
||||
"hooks": "Hooks"
|
||||
}
|
||||
},
|
||||
"user": {
|
||||
"email": "E-Mail"
|
||||
},
|
||||
"me": {
|
||||
"currentPassword": "Kata Sandi Saat Ini",
|
||||
"enable2fa": "Aktifkan autentikasi dua faktor",
|
||||
"enable2faDesc": "Pindai kode QR dengan aplikasi autentikator anda atau masukkan kuncinya secara manual.",
|
||||
"2faKey": "Kunci TOTP",
|
||||
"2faCodeDesc": "Masukkan kode dari aplikasi autentikator Anda.",
|
||||
"disable2fa": "Nonaktifkan autentikasi dua faktor",
|
||||
"disable2faDesc": "Masukkan kata sandi anda untuk menonaktifkan autentikasi dua faktor."
|
||||
},
|
||||
"general": {
|
||||
"name": "Nama",
|
||||
"username": "Name Pengguna",
|
||||
"password": "Kata Sandi",
|
||||
"newPassword": "Kata Sandi Baru",
|
||||
"updatePassword": "Ubah Kata Sandi",
|
||||
"mtu": "MTU",
|
||||
"allowedIps": "IP yang diizinkan",
|
||||
"dns": "DNS",
|
||||
"persistentKeepalive": "Keepalive Persisten",
|
||||
"logout": "Keluar",
|
||||
"continue": "Lanjutkan",
|
||||
"host": "Host",
|
||||
"port": "Port",
|
||||
"yes": "Ya",
|
||||
"no": "Tidak",
|
||||
"confirmPassword": "Konfirmasi Kata Sandi",
|
||||
"loading": "Memuat...",
|
||||
"2fa": "Autentikasi Dua Faktor",
|
||||
"2faCode": "Kode TOTP"
|
||||
},
|
||||
"setup": {
|
||||
"welcome": "Selamat datang di pengaturan pertama wg-easy anda",
|
||||
"welcomeDesc": "Anda telah menemukan cara termudah untuk menginstal dan mengelola WireGuard di host Linux mana pun",
|
||||
"existingSetup": "Apakah anda sudah memiliki pengaturan sebelumnya?",
|
||||
"createAdminDesc": "Silakan masukkan dulu nama pengguna admin dan kata sandi yang kuat dan aman. Informasi ini akan digunakan untuk masuk ke panel administrasi Anda.",
|
||||
"setupConfigDesc": "Silakan masukkan informasi host dan port. Ini akan digunakan untuk konfigurasi klien saat mengatur WireGuard di perangkat mereka.",
|
||||
"setupMigrationDesc": "Silakan berikan file cadangan jika anda ingin memigrasikan data dari versi wg-easy sebelumnya ke pengaturan baru anda.",
|
||||
"upload": "Unggah",
|
||||
"migration": "Pulihkan cadangan:",
|
||||
"createAccount": "Buat Akun",
|
||||
"successful": "Pengaturan berhasil",
|
||||
"hostDesc": "Hostname publik yang akan digunakan klien untuk terhubung",
|
||||
"portDesc": "Port UDP publik yang akan digunakan klien untuk terhubung dan dibaca oleh WireGuard"
|
||||
},
|
||||
"update": {
|
||||
"updateAvailable": "Ada pembaruan tersedia!",
|
||||
"update": "Pembaruan"
|
||||
},
|
||||
"theme": {
|
||||
"dark": "Tema gelap",
|
||||
"light": "Tema terang",
|
||||
"system": "Tema sistem"
|
||||
},
|
||||
"layout": {
|
||||
"toggleCharts": "Tampilkan/sembunyikan Grafik",
|
||||
"donate": "Donasi"
|
||||
},
|
||||
"login": {
|
||||
"signIn": "Masuk",
|
||||
"rememberMe": "Ingat saya",
|
||||
"rememberMeDesc": "Tetap masuk setelah menutup browser",
|
||||
"insecure": "Anda tidak dapat masuk dengan koneksi yang tidak aman. Gunakan HTTPS.",
|
||||
"2faRequired": "Autentikasi dua faktor wajib digunakan",
|
||||
"2faWrong": "Autentikasi dua faktor salah"
|
||||
},
|
||||
"client": {
|
||||
"empty": "Belum ada klien.",
|
||||
"newShort": "Baru",
|
||||
"sort": "Urutkan",
|
||||
"create": "Buat Klien",
|
||||
"created": "Klien terbuat",
|
||||
"new": "Klien Baru",
|
||||
"name": "Nama",
|
||||
"expireDate": "Tanggal Kedaluwarsa",
|
||||
"expireDateDesc": "Tanggal klien akan dinonaktifkan. Kosongkan untuk opsi permanen.",
|
||||
"deleteClient": "Hapus Klien",
|
||||
"deleteDialog1": "Apakah anda yakin ingin menghapus",
|
||||
"deleteDialog2": "Tindakan ini tidak dapat dibatalkan.",
|
||||
"enabled": "Aktifkan",
|
||||
"address": "Alamat",
|
||||
"serverAllowedIps": "IP yang Diizinkan pada Server",
|
||||
"otlDesc": "Buat tautan sekali pakai singkat",
|
||||
"permanent": "Permanen",
|
||||
"createdOn": "Dibuat pada ",
|
||||
"lastSeen": "Terakhir terlihat pada ",
|
||||
"totalDownload": "Total Unduhan: ",
|
||||
"totalUpload": "Total Unggahan: ",
|
||||
"newClient": "Klien Baru",
|
||||
"disableClient": "Nonaktifkan Klien",
|
||||
"enableClient": "Aktifkan Klien",
|
||||
"noPrivKey": "Klien ini tidak memiliki kunci pribadi (private key) yang diketahui. Tidak dapat membuat konfigurasi.",
|
||||
"showQR": "Tampilkan Kode QR",
|
||||
"downloadConfig": "Unduh Konfigurasi",
|
||||
"allowedIpsDesc": "IP mana yang akan dialihkan melalui VPN (menggantikan konfigurasi global)",
|
||||
"serverAllowedIpsDesc": "IP mana yang akan dialihkan server ke klien",
|
||||
"mtuDesc": "Menetapkan unit transmisi maksimum (ukuran paket) untuk terowongan VPN",
|
||||
"persistentKeepaliveDesc": "Menetapkan interval (dalam detik) untuk paket keep-alive. 0 menonaktifkannya.",
|
||||
"hooks": "Hooks",
|
||||
"hooksDescription": "Hooks hanya berfungsi dengan wg-quick",
|
||||
"hooksLeaveEmpty": "Hanya untuk wg-quick. Jika tidak, biarkan kosong.",
|
||||
"dnsDesc": "Server DNS yang akan digunakan klien (menggantikan konfigurasi global)",
|
||||
"notConnected": "Klien tidak terhubung",
|
||||
"endpoint": "Titik Akhir (Endpoint)",
|
||||
"endpointDesc": "IP klien dari mana koneksi WireGuard dibuat"
|
||||
},
|
||||
"dialog": {
|
||||
"change": "Ubah",
|
||||
"cancel": "Batal",
|
||||
"create": "Buat"
|
||||
},
|
||||
"toast": {
|
||||
"success": "Berhasil",
|
||||
"saved": "Tersimpan",
|
||||
"error": "Kesalahan"
|
||||
},
|
||||
"form": {
|
||||
"actions": "Tindakan",
|
||||
"save": "Simpan",
|
||||
"revert": "Kembalikan",
|
||||
"sectionGeneral": "Umum",
|
||||
"sectionAdvanced": "Lanjutan",
|
||||
"noItems": "Tidak ada item",
|
||||
"nullNoItems": "Tidak ada item. Menggunakan konfigurasi global",
|
||||
"add": "Tambah"
|
||||
},
|
||||
"admin": {
|
||||
"general": {
|
||||
"sessionTimeout": "Waktu Sesi Habis",
|
||||
"sessionTimeoutDesc": "Durasi sesi untuk Ingat Saya (dalam detik)",
|
||||
"metrics": "Metrik",
|
||||
"metricsPassword": "Kata Sandi",
|
||||
"metricsPasswordDesc": "Kata sandi Bearer untuk endpoint metrik (kata sandi atau hash argon2)",
|
||||
"json": "JSON",
|
||||
"jsonDesc": "Rute untuk metrik dalam format JSON",
|
||||
"prometheus": "Prometheus",
|
||||
"prometheusDesc": "Rute untuk metrik Prometheus"
|
||||
},
|
||||
"config": {
|
||||
"connection": "Koneksi",
|
||||
"hostDesc": "Hostname publik yang akan digunakan klien untuk terhubung (membatalkan konfigurasi)",
|
||||
"portDesc": "Port UDP publik yang akan digunakan klien untuk terhubung (membatalkan konfigurasi, anda mungkin ingin mengubah Port Antarmuka juga)",
|
||||
"allowedIpsDesc": "IP yang diizinkan untuk digunakan klien (konfigurasi global)",
|
||||
"dnsDesc": "Server DNS yang akan digunakan klien (konfigurasi global)",
|
||||
"mtuDesc": "MTU yang akan digunakan klien (hanya untuk klien baru)",
|
||||
"persistentKeepaliveDesc": "Interval dalam detik untuk mengirim keepalive ke server. 0 = dinonaktifkan (hanya untuk klien baru)",
|
||||
"suggest": "Menyarankan",
|
||||
"suggestDesc": "Pilih alamat IP atau hostname untuk kolom Host"
|
||||
},
|
||||
"interface": {
|
||||
"cidrSuccess": "CIDR diperbarui",
|
||||
"device": "Perangkat",
|
||||
"deviceDesc": "Perangkat Ethernet tempat lalu lintas WireGuard harus diteruskan",
|
||||
"mtuDesc": "MTU yang akan digunakan oleh WireGuard",
|
||||
"portDesc": "Port UDP yang akan didengarkan oleh WireGuard (Anda mungkin ingin mengubah Port Konfigurasi juga)",
|
||||
"changeCidr": "Ubah CIDR",
|
||||
"restart": "Mulai Ulang Antarmuka",
|
||||
"restartDesc": "Mulai ulang antarmuka WireGuard",
|
||||
"restartWarn": "Apakah Anda yakin ingin memulai ulang antarmuka? Ini akan membuat semua klien menjadi terputus.",
|
||||
"restartSuccess": "Antarmuka telah dimulai ulang."
|
||||
},
|
||||
"introText": "Selamat datang di panel admin.\n\nDi sini Anda dapat mengelola pengaturan umum, konfigurasi, pengaturan antarmuka, dan hooks.\n\nMulailah dengan memilih salah satu bagian di bilah samping."
|
||||
},
|
||||
"zod": {
|
||||
"generic": {
|
||||
"required": "{0} diperlukan",
|
||||
"validNumber": "{0} harus berupa angka yang valid",
|
||||
"validString": "{0} harus berupa string yang valid",
|
||||
"validBoolean": "{0} harus berupa boolean yang valid",
|
||||
"validArray": "{0} harus berupa array yang valid",
|
||||
"stringMin": "{0} harus memiliki setidaknya {1} karakter",
|
||||
"numberMin": "{0} harus minimal {1}"
|
||||
},
|
||||
"client": {
|
||||
"id": "ID Klien",
|
||||
"name": "Nama",
|
||||
"expiresAt": "Berakhir pada",
|
||||
"address4": "Alamat IPv4",
|
||||
"address6": "Alamat IPv6",
|
||||
"serverAllowedIps": "IP yang diizinkan untuk Server"
|
||||
},
|
||||
"user": {
|
||||
"username": "Nama Pengguna",
|
||||
"password": "Kata Sandi",
|
||||
"remember": "Ingat",
|
||||
"name": "Nama",
|
||||
"email": "Email",
|
||||
"emailInvalid": "Harus berupa email yang valid",
|
||||
"passwordMatch": "Kata sandi harus cocok",
|
||||
"totpEnable": "Aktifkan TOTP",
|
||||
"totpEnableTrue": "Aktifkan TOTP harus bernilai true",
|
||||
"totpCode": "Kode TOTP"
|
||||
},
|
||||
"userConfig": {
|
||||
"host": "Host"
|
||||
},
|
||||
"general": {
|
||||
"sessionTimeout": "Waktu Sesi Habis",
|
||||
"metricsEnabled": "Metrik",
|
||||
"metricsPassword": "Kata Sandi Metrik"
|
||||
},
|
||||
"interface": {
|
||||
"cidr": "CIDR",
|
||||
"device": "Perangkat",
|
||||
"cidrValid": "CIDR harus valid"
|
||||
},
|
||||
"otl": "Tautan Sekali Pakai",
|
||||
"stringMalformed": "String tidak terformat dengan benar",
|
||||
"body": "Body harus berupa objek yang valid",
|
||||
"hook": "Hook",
|
||||
"enabled": "Diaktifkan",
|
||||
"mtu": "MTU",
|
||||
"port": "Port",
|
||||
"persistentKeepalive": "Keepalive Persisten",
|
||||
"address": "Alamat IP",
|
||||
"dns": "DNS",
|
||||
"allowedIps": "IP yang diizinkan",
|
||||
"file": "Berkas"
|
||||
},
|
||||
"hooks": {
|
||||
"preUp": "PreUp",
|
||||
"postUp": "PostUp",
|
||||
"preDown": "PreDown",
|
||||
"postDown": "PostDown"
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,240 @@
|
||||
{
|
||||
"pages": {
|
||||
"me": "Account",
|
||||
"clients": "Client",
|
||||
"admin": {
|
||||
"panel": "Pannello di Amministrazione",
|
||||
"general": "Generale",
|
||||
"config": "Configurazione",
|
||||
"interface": "Interfaccia",
|
||||
"hooks": "Hooks"
|
||||
}
|
||||
},
|
||||
"user": {
|
||||
"email": "E-Mail"
|
||||
},
|
||||
"me": {
|
||||
"currentPassword": "Password attuale",
|
||||
"enable2fa": "Abilita Autenticazione a Due Fattori",
|
||||
"enable2faDesc": "Scansiona il codice QR con la tua app di autenticazione o inserisci manualmente la chiave.",
|
||||
"2faKey": "Chiave TOTP",
|
||||
"2faCodeDesc": "Inserisci il codice generato dalla tua app di autenticazione.",
|
||||
"disable2fa": "Disabilita Autenticazione a Due Fattori",
|
||||
"disable2faDesc": "Inserisci la tua password per disabilitare l’Autenticazione a Due Fattori."
|
||||
},
|
||||
"general": {
|
||||
"name": "Nome",
|
||||
"username": "Nome utente",
|
||||
"password": "Password",
|
||||
"newPassword": "Nuova Password",
|
||||
"updatePassword": "Aggiorna Password",
|
||||
"mtu": "MTU",
|
||||
"allowedIps": "IP consentiti",
|
||||
"dns": "DNS",
|
||||
"persistentKeepalive": "Keepalive Persistente",
|
||||
"logout": "Esci",
|
||||
"continue": "Continua",
|
||||
"host": "Host",
|
||||
"port": "Porta",
|
||||
"yes": "Sì",
|
||||
"no": "No",
|
||||
"confirmPassword": "Conferma Password",
|
||||
"loading": "Caricamento...",
|
||||
"2fa": "Autenticazione a Due Fattori",
|
||||
"2faCode": "Codice TOTP"
|
||||
},
|
||||
"setup": {
|
||||
"welcome": "Benvenuto alla tua prima configurazione di wg-easy",
|
||||
"welcomeDesc": "Hai trovato il modo più semplice per installare e gestire WireGuard su qualsiasi host Linux",
|
||||
"existingSetup": "Hai già una configurazione esistente?",
|
||||
"createAdminDesc": "Inserisci prima un nome utente admin e una password forte e sicura. Queste informazioni verranno usate per accedere al pannello di amministrazione.",
|
||||
"setupConfigDesc": "Inserisci le informazioni su host e porta. Saranno usate per la configurazione dei client quando imposteranno WireGuard sui loro dispositivi.",
|
||||
"setupMigrationDesc": "Fornisci il file di backup se vuoi migrare i tuoi dati dalla precedente versione di wg-easy alla nuova installazione.",
|
||||
"upload": "Carica",
|
||||
"migration": "Ripristina backup:",
|
||||
"createAccount": "Crea Account",
|
||||
"successful": "Configurazione completata con successo",
|
||||
"hostDesc": "Nome host pubblico a cui i client si connetteranno",
|
||||
"portDesc": "Porta UDP pubblica a cui i client si connetteranno e su cui WireGuard resterà in ascolto"
|
||||
},
|
||||
"update": {
|
||||
"updateAvailable": "È disponibile un aggiornamento!",
|
||||
"update": "Aggiorna"
|
||||
},
|
||||
"theme": {
|
||||
"dark": "Tema scuro",
|
||||
"light": "Tema chiaro",
|
||||
"system": "Tema di sistema"
|
||||
},
|
||||
"layout": {
|
||||
"toggleCharts": "Mostra/nascondi Grafici",
|
||||
"donate": "Dona"
|
||||
},
|
||||
"login": {
|
||||
"signIn": "Accedi",
|
||||
"rememberMe": "Ricordami",
|
||||
"rememberMeDesc": "Rimani connesso dopo aver chiuso il browser",
|
||||
"insecure": "Non puoi accedere con una connessione non sicura. Usa HTTPS.",
|
||||
"2faRequired": "È richiesta l’Autenticazione a Due Fattori",
|
||||
"2faWrong": "Codice di Autenticazione a Due Fattori errato"
|
||||
},
|
||||
"client": {
|
||||
"empty": "Non ci sono ancora client.",
|
||||
"newShort": "Nuovo",
|
||||
"sort": "Ordina",
|
||||
"create": "Crea Client",
|
||||
"created": "Client creato",
|
||||
"new": "Nuovo Client",
|
||||
"name": "Nome",
|
||||
"expireDate": "Data di Scadenza",
|
||||
"expireDateDesc": "Data in cui il client verrà disabilitato. Lascia vuoto per permanente",
|
||||
"deleteClient": "Elimina Client",
|
||||
"deleteDialog1": "Sei sicuro di voler eliminare",
|
||||
"deleteDialog2": "Questa azione non può essere annullata.",
|
||||
"enabled": "Abilitato",
|
||||
"address": "Indirizzo",
|
||||
"serverAllowedIps": "IP consentiti dal Server",
|
||||
"otlDesc": "Genera link temporaneo monouso",
|
||||
"permanent": "Permanente",
|
||||
"createdOn": "Creato il ",
|
||||
"lastSeen": "Ultima connessione il ",
|
||||
"totalDownload": "Download Totale: ",
|
||||
"totalUpload": "Upload Totale: ",
|
||||
"newClient": "Nuovo Client",
|
||||
"disableClient": "Disabilita Client",
|
||||
"enableClient": "Abilita Client",
|
||||
"noPrivKey": "Questo client non ha una chiave privata nota. Impossibile creare la configurazione.",
|
||||
"showQR": "Mostra Codice QR",
|
||||
"downloadConfig": "Scarica Configurazione",
|
||||
"allowedIpsDesc": "Quali IP verranno instradati attraverso la VPN (sovrascrive la config globale)",
|
||||
"serverAllowedIpsDesc": "Quali IP il server instraderà al client",
|
||||
"mtuDesc": "Imposta la dimensione massima dei pacchetti (MTU) per il tunnel VPN",
|
||||
"persistentKeepaliveDesc": "Imposta l’intervallo (in secondi) dei pacchetti keep-alive. 0 lo disabilita",
|
||||
"hooks": "Hooks",
|
||||
"hooksDescription": "Gli hooks funzionano solo con wg-quick",
|
||||
"hooksLeaveEmpty": "Solo per wg-quick. Altrimenti lascia vuoto",
|
||||
"dnsDesc": "Server DNS che i client useranno (sovrascrive la config globale)",
|
||||
"notConnected": "Client non connesso",
|
||||
"endpoint": "Endpoint",
|
||||
"endpointDesc": "IP del client da cui viene stabilita la connessione WireGuard"
|
||||
},
|
||||
"dialog": {
|
||||
"change": "Modifica",
|
||||
"cancel": "Annulla",
|
||||
"create": "Crea"
|
||||
},
|
||||
"toast": {
|
||||
"success": "Operazione riuscita",
|
||||
"saved": "Salvato",
|
||||
"error": "Errore"
|
||||
},
|
||||
"form": {
|
||||
"actions": "Azioni",
|
||||
"save": "Salva",
|
||||
"revert": "Annulla modifiche",
|
||||
"sectionGeneral": "Generale",
|
||||
"sectionAdvanced": "Avanzate",
|
||||
"noItems": "Nessun elemento",
|
||||
"nullNoItems": "Nessun elemento. Uso configurazione globale",
|
||||
"add": "Aggiungi"
|
||||
},
|
||||
"admin": {
|
||||
"general": {
|
||||
"sessionTimeout": "Timeout Sessione",
|
||||
"sessionTimeoutDesc": "Durata della sessione per 'Ricordami' (in secondi)",
|
||||
"metrics": "Metriche",
|
||||
"metricsPassword": "Password",
|
||||
"metricsPasswordDesc": "Password Bearer per l’endpoint metriche (password o hash argon2)",
|
||||
"json": "JSON",
|
||||
"jsonDesc": "Percorso per metriche in formato JSON",
|
||||
"prometheus": "Prometheus",
|
||||
"prometheusDesc": "Percorso per metriche Prometheus"
|
||||
},
|
||||
"config": {
|
||||
"connection": "Connessione",
|
||||
"hostDesc": "Nome host pubblico a cui i client si connetteranno (invalida la config)",
|
||||
"portDesc": "Porta UDP pubblica a cui i client si connetteranno (invalida la config, probabilmente vuoi cambiare anche la Porta Interfaccia)",
|
||||
"allowedIpsDesc": "IP consentiti che i client useranno (config globale)",
|
||||
"dnsDesc": "Server DNS che i client useranno (config globale)",
|
||||
"mtuDesc": "MTU usata dai client (solo per i nuovi client)",
|
||||
"persistentKeepaliveDesc": "Intervallo in secondi per inviare keepalive al server. 0 = disabilitato (solo per nuovi client)",
|
||||
"suggest": "Suggerisci",
|
||||
"suggestDesc": "Scegli un indirizzo IP o un Hostname per il campo Host"
|
||||
},
|
||||
"interface": {
|
||||
"cidrSuccess": "CIDR modificato",
|
||||
"device": "Dispositivo",
|
||||
"deviceDesc": "Dispositivo di rete attraverso cui instradare il traffico WireGuard",
|
||||
"mtuDesc": "MTU usata da WireGuard",
|
||||
"portDesc": "Porta UDP su cui WireGuard resterà in ascolto (probabilmente vuoi cambiare anche la Porta Config)",
|
||||
"changeCidr": "Modifica CIDR",
|
||||
"restart": "Riavvia Interfaccia",
|
||||
"restartDesc": "Riavvia l’interfaccia WireGuard",
|
||||
"restartWarn": "Sei sicuro di riavviare l’interfaccia? Tutti i client verranno disconnessi.",
|
||||
"restartSuccess": "Interfaccia riavviata"
|
||||
},
|
||||
"introText": "Benvenuto nel pannello di amministrazione.\n\nQui puoi gestire le impostazioni generali, la configurazione, le impostazioni dell’interfaccia e gli hooks.\n\nInizia scegliendo una delle sezioni nella barra laterale."
|
||||
},
|
||||
"zod": {
|
||||
"generic": {
|
||||
"required": "{0} è obbligatorio",
|
||||
"validNumber": "{0} deve essere un numero valido",
|
||||
"validString": "{0} deve essere una stringa valida",
|
||||
"validBoolean": "{0} deve essere un valore booleano valido",
|
||||
"validArray": "{0} deve essere un array valido",
|
||||
"stringMin": "{0} deve contenere almeno {1} carattere",
|
||||
"numberMin": "{0} deve essere almeno {1}"
|
||||
},
|
||||
"client": {
|
||||
"id": "ID Client",
|
||||
"name": "Nome",
|
||||
"expiresAt": "Scadenza",
|
||||
"address4": "Indirizzo IPv4",
|
||||
"address6": "Indirizzo IPv6",
|
||||
"serverAllowedIps": "IP consentiti dal Server"
|
||||
},
|
||||
"user": {
|
||||
"username": "Nome utente",
|
||||
"password": "Password",
|
||||
"remember": "Ricorda",
|
||||
"name": "Nome",
|
||||
"email": "Email",
|
||||
"emailInvalid": "Email deve essere un indirizzo valido",
|
||||
"passwordMatch": "Le password devono coincidere",
|
||||
"totpEnable": "Abilitazione TOTP",
|
||||
"totpEnableTrue": "TOTP deve essere abilitato",
|
||||
"totpCode": "Codice TOTP"
|
||||
},
|
||||
"userConfig": {
|
||||
"host": "Host"
|
||||
},
|
||||
"general": {
|
||||
"sessionTimeout": "Timeout Sessione",
|
||||
"metricsEnabled": "Metriche",
|
||||
"metricsPassword": "Password Metriche"
|
||||
},
|
||||
"interface": {
|
||||
"cidr": "CIDR",
|
||||
"device": "Dispositivo",
|
||||
"cidrValid": "CIDR deve essere valido"
|
||||
},
|
||||
"otl": "Link Monouso",
|
||||
"stringMalformed": "Stringa non valida",
|
||||
"body": "Body deve essere un oggetto valido",
|
||||
"hook": "Hook",
|
||||
"enabled": "Abilitato",
|
||||
"mtu": "MTU",
|
||||
"port": "Porta",
|
||||
"persistentKeepalive": "Keepalive Persistente",
|
||||
"address": "Indirizzo IP",
|
||||
"dns": "DNS",
|
||||
"allowedIps": "IP consentiti",
|
||||
"file": "File"
|
||||
},
|
||||
"hooks": {
|
||||
"preUp": "PreUp",
|
||||
"postUp": "PostUp",
|
||||
"preDown": "PreDown",
|
||||
"postDown": "PostDown"
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,240 @@
|
||||
{
|
||||
"pages": {
|
||||
"me": "계정",
|
||||
"clients": "클라이언트",
|
||||
"admin": {
|
||||
"panel": "관리 패널",
|
||||
"general": "일반",
|
||||
"config": "구성",
|
||||
"interface": "인터페이스",
|
||||
"hooks": "후크"
|
||||
}
|
||||
},
|
||||
"user": {
|
||||
"email": "이메일"
|
||||
},
|
||||
"me": {
|
||||
"currentPassword": "현재 비밀번호",
|
||||
"enable2fa": "2단계 인증 활성화",
|
||||
"enable2faDesc": "인증 앱으로 QR 코드를 스캔하거나 키를 수동으로 입력하세요.",
|
||||
"2faKey": "TOTP 키",
|
||||
"2faCodeDesc": "인증기 앱에서 코드를 입력하십시오.",
|
||||
"disable2fa": "2단계 인증 비활성화",
|
||||
"disable2faDesc": "2단계 인증을 비활성화하려면 비밀번호를 입력하세요."
|
||||
},
|
||||
"general": {
|
||||
"name": "이름",
|
||||
"username": "사용자 이름",
|
||||
"password": "비밀번호",
|
||||
"newPassword": "새 비밀번호",
|
||||
"updatePassword": "비밀번호 업데이트",
|
||||
"mtu": "MTU",
|
||||
"allowedIps": "허용된 IP",
|
||||
"dns": "DNS",
|
||||
"persistentKeepalive": "지속적인 유지",
|
||||
"logout": "로그아웃",
|
||||
"continue": "계속",
|
||||
"host": "호스트",
|
||||
"port": "포트",
|
||||
"yes": "예",
|
||||
"no": "아니요",
|
||||
"confirmPassword": "비밀번호 확인",
|
||||
"loading": "로딩 중...",
|
||||
"2fa": "2단계 인증",
|
||||
"2faCode": "TOTP 코드"
|
||||
},
|
||||
"setup": {
|
||||
"welcome": "wg-easy의 첫 번째 설정에 오신 것을 환영합니다.",
|
||||
"welcomeDesc": "모든 Linux 호스트에서 WireGuard를 설치하고 관리하는 가장 쉬운 방법을 찾았습니다",
|
||||
"existingSetup": "기존 설정이 있습니까?",
|
||||
"createAdminDesc": "먼저 관리자 사용자 이름과 강력한 보안 비밀번호를 입력하십시오. 이 정보는 관리 패널에 로그인하는 데 사용됩니다.",
|
||||
"setupConfigDesc": "호스트 및 포트 정보를 입력하십시오. 이는 장치에서 WireGuard를 설정할 때 클라이언트 구성에 사용됩니다.",
|
||||
"setupMigrationDesc": "이전 wg-easy 버전에서 새 설정으로 데이터를 마이그레이션하려면 백업 파일을 제공하십시오.",
|
||||
"upload": "업로드",
|
||||
"migration": "백업 복원:",
|
||||
"createAccount": "계정 생성",
|
||||
"successful": "설정 성공",
|
||||
"hostDesc": "클라이언트가 연결할 공개 호스트 이름",
|
||||
"portDesc": "클라이언트가 연결할 공용 UDP 포트 및 WireGuard가 수신 대기할 포트"
|
||||
},
|
||||
"update": {
|
||||
"updateAvailable": "업데이트가 가능합니다!",
|
||||
"update": "업데이트"
|
||||
},
|
||||
"theme": {
|
||||
"dark": "어두운 테마",
|
||||
"light": "라이트 테마",
|
||||
"system": "시스템 테마"
|
||||
},
|
||||
"layout": {
|
||||
"toggleCharts": "차트 표시/숨기기",
|
||||
"donate": "기부"
|
||||
},
|
||||
"login": {
|
||||
"signIn": "로그인",
|
||||
"rememberMe": "로그인 상태 유지",
|
||||
"rememberMeDesc": "브라우저를 닫은 후에도 로그인 유지",
|
||||
"insecure": "안전하지 않은 연결로 로그인할 수 없습니다. HTTPS를 사용하세요.",
|
||||
"2faRequired": "2단계 인증이 필요합니다",
|
||||
"2faWrong": "2단계 인증이 잘못되었습니다"
|
||||
},
|
||||
"client": {
|
||||
"empty": "아직 클라이언트가 없습니다.",
|
||||
"newShort": "새로 만들기",
|
||||
"sort": "정렬",
|
||||
"create": "클라이언트 생성",
|
||||
"created": "클라이언트 생성됨",
|
||||
"new": "새 클라이언트",
|
||||
"name": "이름",
|
||||
"expireDate": "만료 날짜",
|
||||
"expireDateDesc": "클라이언트가 비활성화될 날짜. 영구적으로 비워두기",
|
||||
"deleteClient": "클라이언트 삭제",
|
||||
"deleteDialog1": "정말로 삭제하시겠습니까",
|
||||
"deleteDialog2": "이 작업은 실행 취소할 수 없습니다.",
|
||||
"enabled": "활성화됨",
|
||||
"address": "주소",
|
||||
"serverAllowedIps": "서버 허용된 IP",
|
||||
"otlDesc": "짧은 일회성 링크 생성",
|
||||
"permanent": "영구적",
|
||||
"createdOn": "생성일 ",
|
||||
"lastSeen": "마지막으로 본 시간 ",
|
||||
"totalDownload": "총 다운로드: ",
|
||||
"totalUpload": "총 업로드: ",
|
||||
"newClient": "새 클라이언트",
|
||||
"disableClient": "클라이언트 비활성화",
|
||||
"enableClient": "클라이언트 활성화",
|
||||
"noPrivKey": "이 클라이언트는 알려진 개인 키가 없습니다. 구성을 생성할 수 없습니다.",
|
||||
"showQR": "QR 코드 표시",
|
||||
"downloadConfig": "구성 다운로드",
|
||||
"allowedIpsDesc": "VPN을 통해 라우팅될 IP(전역 구성 재정의)",
|
||||
"serverAllowedIpsDesc": "서버가 클라이언트로 라우팅할 IPs",
|
||||
"mtuDesc": "VPN 터널의 최대 전송 단위(패킷 크기)를 설정합니다",
|
||||
"persistentKeepaliveDesc": "유지 관리 패킷의 간격(초 단위)을 설정합니다. 0은 비활성화합니다.",
|
||||
"hooks": "후크",
|
||||
"hooksDescription": "후크는 wg-quick과만 작동합니다",
|
||||
"hooksLeaveEmpty": "wg-quick 전용입니다. 그렇지 않으면 비워 두십시오.",
|
||||
"dnsDesc": "클라이언트가 사용할 DNS 서버(전역 구성 무시)",
|
||||
"notConnected": "클라이언트가 연결되지 않음",
|
||||
"endpoint": "엔드포인트",
|
||||
"endpointDesc": "WireGuard에 연결된 클라이언트의 IP 주소"
|
||||
},
|
||||
"dialog": {
|
||||
"change": "변경",
|
||||
"cancel": "취소",
|
||||
"create": "생성"
|
||||
},
|
||||
"toast": {
|
||||
"success": "성공",
|
||||
"saved": "저장됨",
|
||||
"error": "오류"
|
||||
},
|
||||
"form": {
|
||||
"actions": "작업",
|
||||
"save": "저장",
|
||||
"revert": "되돌리기",
|
||||
"sectionGeneral": "일반",
|
||||
"sectionAdvanced": "고급",
|
||||
"noItems": "항목 없음",
|
||||
"nullNoItems": "항목이 없습니다. 전역 구성 사용 중",
|
||||
"add": "추가"
|
||||
},
|
||||
"admin": {
|
||||
"general": {
|
||||
"sessionTimeout": "세션 타임아웃",
|
||||
"sessionTimeoutDesc": "기억하기 위한 세션 지속 시간(초)",
|
||||
"metrics": "메트릭",
|
||||
"metricsPassword": "비밀번호",
|
||||
"metricsPasswordDesc": "메트릭 엔드포인트에 대한 베어러 비밀번호(비밀번호 또는 argon2 해시)",
|
||||
"json": "JSON",
|
||||
"jsonDesc": "JSON 형식의 메트릭 경로",
|
||||
"prometheus": "프로메테우스",
|
||||
"prometheusDesc": "Prometheus 메트릭을 위한 경로"
|
||||
},
|
||||
"config": {
|
||||
"connection": "연결",
|
||||
"hostDesc": "클라이언트가 연결할 공용 호스트 이름(구성 무효화)",
|
||||
"portDesc": "공용 UDP 포트 클라이언트가 연결할 (구성을 무효화하며, 인터페이스 포트도 변경하는 것이 좋습니다)",
|
||||
"allowedIpsDesc": "클라이언트가 사용할 수 있는 허용된 IP(전역 설정)",
|
||||
"dnsDesc": "클라이언트가 사용할 DNS 서버(전역 설정)",
|
||||
"mtuDesc": "MTU 클라이언트가 사용할 (신규 클라이언트 전용)",
|
||||
"persistentKeepaliveDesc": "서버에 유지 신호를 보내기 위한 간격(초). 0 = 비활성화(새 클라이언트 전용)",
|
||||
"suggest": "제안",
|
||||
"suggestDesc": "호스트 필드에 사용할 IP 주소 또는 호스트 이름을 선택하세요."
|
||||
},
|
||||
"interface": {
|
||||
"cidrSuccess": "CIDR가 변경되었습니다.",
|
||||
"device": "장치",
|
||||
"deviceDesc": "WireGuard 트래픽이 전달되어야 하는 이더넷 장치",
|
||||
"mtuDesc": "MTU WireGuard가 사용할 값",
|
||||
"portDesc": "WireGuard가 수신할 UDP 포트 (구성 포트도 변경하는 것이 좋습니다)",
|
||||
"changeCidr": "CIDR 변경",
|
||||
"restart": "인터페이스 재시작",
|
||||
"restartDesc": "WireGuard 인터페이스를 재시작합니다.",
|
||||
"restartWarn": "인터페이스를 재시작하시겠습니까? 이 작업은 모든 클라이언트를 연결 해제합니다.",
|
||||
"restartSuccess": "인터페이스가 재시작되었습니다"
|
||||
},
|
||||
"introText": "관리 패널에 오신 것을 환영합니다.\n\n여기에서 일반 설정, 구성, 인터페이스 설정 및 후크를 관리할 수 있습니다.\n\n사이드바에서 섹션 중 하나를 선택하여 시작하세요."
|
||||
},
|
||||
"zod": {
|
||||
"generic": {
|
||||
"required": "{0}은(는) 필수입니다.",
|
||||
"validNumber": "{0}은(는) 유효한 숫자여야 합니다.",
|
||||
"validString": "{0}은 유효한 문자열이어야 합니다",
|
||||
"validBoolean": "{0}은(는) 유효한 불리언이어야 합니다.",
|
||||
"validArray": "{0}는 유효한 배열이어야 합니다",
|
||||
"stringMin": "{0}은(는) 최소 {1}자 이상이어야 합니다.",
|
||||
"numberMin": "{0}은(는) 최소 {1} 이상이어야 합니다."
|
||||
},
|
||||
"client": {
|
||||
"id": "클라이언트 ID",
|
||||
"name": "이름",
|
||||
"expiresAt": "만료 시간",
|
||||
"address4": "IPv4 주소",
|
||||
"address6": "IPv6 주소",
|
||||
"serverAllowedIps": "서버 허용된 IP"
|
||||
},
|
||||
"user": {
|
||||
"username": "사용자 이름",
|
||||
"password": "비밀번호",
|
||||
"remember": "기억하기",
|
||||
"name": "이름",
|
||||
"email": "이메일",
|
||||
"emailInvalid": "이메일은 유효한 이메일이어야 합니다.",
|
||||
"passwordMatch": "비밀번호가 일치해야 합니다",
|
||||
"totpEnable": "TOTP 활성화",
|
||||
"totpEnableTrue": "TOTP 사용은 true여야 합니다.",
|
||||
"totpCode": "TOTP 코드"
|
||||
},
|
||||
"userConfig": {
|
||||
"host": "호스트"
|
||||
},
|
||||
"general": {
|
||||
"sessionTimeout": "세션 타임아웃",
|
||||
"metricsEnabled": "메트릭",
|
||||
"metricsPassword": "메트릭 비밀번호"
|
||||
},
|
||||
"interface": {
|
||||
"cidr": "CIDR",
|
||||
"device": "장치",
|
||||
"cidrValid": "CIDR는 유효해야 합니다."
|
||||
},
|
||||
"otl": "일회성 링크",
|
||||
"stringMalformed": "문자열이 잘못되었습니다.",
|
||||
"body": "본문은 유효한 객체여야 합니다",
|
||||
"hook": "후크",
|
||||
"enabled": "활성화됨",
|
||||
"mtu": "MTU",
|
||||
"port": "포트",
|
||||
"persistentKeepalive": "지속적인 유지",
|
||||
"address": "IP 주소",
|
||||
"dns": "DNS",
|
||||
"allowedIps": "허용된 IP",
|
||||
"file": "파일"
|
||||
},
|
||||
"hooks": {
|
||||
"preUp": "PreUp",
|
||||
"postUp": "PostUp",
|
||||
"preDown": "PreDown",
|
||||
"postDown": "PostDown"
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,240 @@
|
||||
{
|
||||
"pages": {
|
||||
"me": "Konto",
|
||||
"clients": "Konta",
|
||||
"admin": {
|
||||
"panel": "Panel administracyjny",
|
||||
"general": "Ogólne",
|
||||
"config": "Konfiguracja",
|
||||
"interface": "Interfejs",
|
||||
"hooks": "Hooki"
|
||||
}
|
||||
},
|
||||
"user": {
|
||||
"email": "E-mail"
|
||||
},
|
||||
"me": {
|
||||
"currentPassword": "Aktualne hasło",
|
||||
"enable2fa": "Włącz uwierzytelnianie dwuskładnikowe",
|
||||
"enable2faDesc": "Zeskanuj kod QR w aplikacji uwierzytelniającej lub wprowadź klucz ręcznie.",
|
||||
"2faKey": "Klucz TOTP",
|
||||
"2faCodeDesc": "Wprowadź kod z aplikacji uwierzytelniającej.",
|
||||
"disable2fa": "Wyłącz uwierzytelnianie dwuskładnikowe",
|
||||
"disable2faDesc": "Wprowadź swoje hasło, aby wyłączyć uwierzytelnianie dwuskładnikowe."
|
||||
},
|
||||
"general": {
|
||||
"name": "Nazwa",
|
||||
"username": "Nazwa użytkownika",
|
||||
"password": "Hasło",
|
||||
"newPassword": "Nowe hasło",
|
||||
"updatePassword": "Zmień hasło",
|
||||
"mtu": "MTU",
|
||||
"allowedIps": "Dozwolone adresy IP",
|
||||
"dns": "DNS",
|
||||
"persistentKeepalive": "Stałe utrzymywanie połączenia",
|
||||
"logout": "Wyloguj",
|
||||
"continue": "Kontynuuj",
|
||||
"host": "Host",
|
||||
"port": "Port",
|
||||
"yes": "Tak",
|
||||
"no": "Nie",
|
||||
"confirmPassword": "Potwierdź hasło",
|
||||
"loading": "Ładowanie...",
|
||||
"2fa": "Uwierzytelnianie dwuskładnikowe",
|
||||
"2faCode": "Kod TOTP"
|
||||
},
|
||||
"setup": {
|
||||
"welcome": "Witamy w pierwszej konfiguracji wg-easy",
|
||||
"welcomeDesc": "Znalazłeś najprostszy sposób na instalację i zarządzanie WireGuard na dowolnym serwerze Linux",
|
||||
"existingSetup": "Masz już istniejącą konfigurację?",
|
||||
"createAdminDesc": "Podaj nazwę użytkownika administratora oraz silne, bezpieczne hasło. Informacje te będą używane do logowania w panelu administracyjnym.",
|
||||
"setupConfigDesc": "Podaj informacje o hoście i porcie. Będą one używane w konfiguracji klienta podczas uruchamiania WireGuard na jego urządzeniach.",
|
||||
"setupMigrationDesc": "Podaj plik kopii zapasowej, jeśli chcesz przenieść dane ze starszej wersji wg-easy do nowej instalacji.",
|
||||
"upload": "Prześlij",
|
||||
"migration": "Przywróć kopię zapasową:",
|
||||
"createAccount": "Utwórz konto",
|
||||
"successful": "Konfiguracja zakończona sukcesem",
|
||||
"hostDesc": "Publiczny host, do którego będą łączyć się klienci",
|
||||
"portDesc": "Publiczny port UDP, na którym WireGuard będzie nasłuchiwał i do którego będą łączyć się klienci"
|
||||
},
|
||||
"update": {
|
||||
"updateAvailable": "Dostępna jest aktualizacja!",
|
||||
"update": "Aktualizuj"
|
||||
},
|
||||
"theme": {
|
||||
"dark": "Motyw ciemny",
|
||||
"light": "Motyw jasny",
|
||||
"system": "Motyw systemowy"
|
||||
},
|
||||
"layout": {
|
||||
"toggleCharts": "Pokaż/ukryj wykresy",
|
||||
"donate": "Wesprzyj"
|
||||
},
|
||||
"login": {
|
||||
"signIn": "Zaloguj się",
|
||||
"rememberMe": "Zapamiętaj mnie",
|
||||
"rememberMeDesc": "Pozostań zalogowany po zamknięciu przeglądarki",
|
||||
"insecure": "Nie możesz się zalogować przez niezabezpieczone połączenie. Użyj HTTPS.",
|
||||
"2faRequired": "Wymagane uwierzytelnianie dwuskładnikowe",
|
||||
"2faWrong": "Nieprawidłowy kod uwierzytelniania dwuskładnikowego"
|
||||
},
|
||||
"client": {
|
||||
"empty": "Brak klientów.",
|
||||
"newShort": "Nowy",
|
||||
"sort": "Sortuj",
|
||||
"create": "Utwórz klienta",
|
||||
"created": "Klient utworzony",
|
||||
"new": "Nowy klient",
|
||||
"name": "Nazwa",
|
||||
"expireDate": "Data wygaśnięcia",
|
||||
"expireDateDesc": "Data, po której klient zostanie wyłączony. Puste = na stałe",
|
||||
"deleteClient": "Usuń klienta",
|
||||
"deleteDialog1": "Czy na pewno chcesz usunąć",
|
||||
"deleteDialog2": "Tej akcji nie można cofnąć.",
|
||||
"enabled": "Włączony",
|
||||
"address": "Adres",
|
||||
"serverAllowedIps": "Dozwolone adresy IP serwera",
|
||||
"otlDesc": "Wygeneruj jednorazowy krótki link",
|
||||
"permanent": "Stały",
|
||||
"createdOn": "Utworzony ",
|
||||
"lastSeen": "Ostatnio widziany ",
|
||||
"totalDownload": "Łączne pobieranie: ",
|
||||
"totalUpload": "Łączne wysyłanie: ",
|
||||
"newClient": "Nowy klient",
|
||||
"disableClient": "Wyłącz klienta",
|
||||
"enableClient": "Włącz klienta",
|
||||
"noPrivKey": "Ten klient nie ma znanego klucza prywatnego. Nie można utworzyć konfiguracji.",
|
||||
"showQR": "Pokaż kod QR",
|
||||
"downloadConfig": "Pobierz konfigurację",
|
||||
"allowedIpsDesc": "Które adresy IP będą kierowane przez VPN (nadpisuje konfigurację globalną)",
|
||||
"serverAllowedIpsDesc": "Które adresy IP serwer będzie kierował do klienta",
|
||||
"mtuDesc": "Ustawia maksymalny rozmiar pakietu (MTU) dla tunelu VPN",
|
||||
"persistentKeepaliveDesc": "Ustawia interwał (w sekundach) wysyłania pakietów keep-alive. 0 = wyłączone",
|
||||
"hooks": "Hooki",
|
||||
"hooksDescription": "Hooki działają tylko z wg-quick",
|
||||
"hooksLeaveEmpty": "Tylko dla wg-quick. W innym przypadku pozostaw puste",
|
||||
"dnsDesc": "Serwer DNS, którego będą używać klienci (nadpisuje konfigurację globalną)",
|
||||
"notConnected": "Klient nie jest połączony",
|
||||
"endpoint": "Punkt końcowy",
|
||||
"endpointDesc": "Adres IP klienta, z którego ustanawiane jest połączenie WireGuard"
|
||||
},
|
||||
"dialog": {
|
||||
"change": "Zmień",
|
||||
"cancel": "Anuluj",
|
||||
"create": "Utwórz"
|
||||
},
|
||||
"toast": {
|
||||
"success": "Sukces",
|
||||
"saved": "Zapisano",
|
||||
"error": "Błąd"
|
||||
},
|
||||
"form": {
|
||||
"actions": "Akcje",
|
||||
"save": "Zapisz",
|
||||
"revert": "Przywróć",
|
||||
"sectionGeneral": "Ogólne",
|
||||
"sectionAdvanced": "Zaawansowane",
|
||||
"noItems": "Brak elementów",
|
||||
"nullNoItems": "Brak elementów. Używana konfiguracja globalna",
|
||||
"add": "Dodaj"
|
||||
},
|
||||
"admin": {
|
||||
"general": {
|
||||
"sessionTimeout": "Limit czasu sesji",
|
||||
"sessionTimeoutDesc": "Czas trwania sesji dla opcji Zapamiętaj mnie (w sekundach)",
|
||||
"metrics": "Metryki",
|
||||
"metricsPassword": "Hasło",
|
||||
"metricsPasswordDesc": "Hasło Bearer dla endpointu metryk (hasło lub hash argon2)",
|
||||
"json": "JSON",
|
||||
"jsonDesc": "Ścieżka dla metryk w formacie JSON",
|
||||
"prometheus": "Prometheus",
|
||||
"prometheusDesc": "Ścieżka dla metryk Prometheus"
|
||||
},
|
||||
"config": {
|
||||
"connection": "Połączenie",
|
||||
"hostDesc": "Publiczny host, do którego będą łączyć się klienci (unieważnia konfigurację)",
|
||||
"portDesc": "Publiczny port UDP, do którego będą łączyć się klienci (unieważnia konfigurację, prawdopodobnie należy też zmienić port interfejsu)",
|
||||
"allowedIpsDesc": "Dozwolone adresy IP klientów (konfiguracja globalna)",
|
||||
"dnsDesc": "Serwer DNS klientów (konfiguracja globalna)",
|
||||
"mtuDesc": "MTU klientów (tylko dla nowych klientów)",
|
||||
"persistentKeepaliveDesc": "Interwał w sekundach dla keepalive do serwera. 0 = wyłączone (tylko dla nowych klientów)",
|
||||
"suggest": "Sugeruj",
|
||||
"suggestDesc": "Wybierz adres IP lub nazwę hosta dla pola Host"
|
||||
},
|
||||
"interface": {
|
||||
"cidrSuccess": "Zmieniono CIDR",
|
||||
"device": "Urządzenie",
|
||||
"deviceDesc": "Urządzenie sieciowe, przez które ma być przekazywany ruch WireGuard",
|
||||
"mtuDesc": "MTU używane przez WireGuard",
|
||||
"portDesc": "Port UDP, na którym WireGuard będzie nasłuchiwał (prawdopodobnie trzeba też zmienić port w konfiguracji)",
|
||||
"changeCidr": "Zmień CIDR",
|
||||
"restart": "Restart interfejsu",
|
||||
"restartDesc": "Zrestartuj interfejs WireGuard",
|
||||
"restartWarn": "Czy na pewno chcesz zrestartować interfejs? Wszyscy klienci zostaną rozłączeni.",
|
||||
"restartSuccess": "Interfejs zrestartowany"
|
||||
},
|
||||
"introText": "Witamy w panelu administracyjnym.\n\nTutaj możesz zarządzać ustawieniami ogólnymi, konfiguracją, interfejsem i hookami.\n\nZacznij od wybrania jednej z sekcji w pasku bocznym."
|
||||
},
|
||||
"zod": {
|
||||
"generic": {
|
||||
"required": "{0} jest wymagane",
|
||||
"validNumber": "{0} musi być prawidłową liczbą",
|
||||
"validString": "{0} musi być prawidłowym tekstem",
|
||||
"validBoolean": "{0} musi być prawidłową wartością logiczną",
|
||||
"validArray": "{0} musi być prawidłową tablicą",
|
||||
"stringMin": "{0} musi mieć co najmniej {1} znaków",
|
||||
"numberMin": "{0} musi być co najmniej {1}"
|
||||
},
|
||||
"client": {
|
||||
"id": "ID klienta",
|
||||
"name": "Nazwa",
|
||||
"expiresAt": "Wygasa",
|
||||
"address4": "Adres IPv4",
|
||||
"address6": "Adres IPv6",
|
||||
"serverAllowedIps": "Dozwolone adresy IP serwera"
|
||||
},
|
||||
"user": {
|
||||
"username": "Nazwa użytkownika",
|
||||
"password": "Hasło",
|
||||
"remember": "Zapamiętaj",
|
||||
"name": "Imię",
|
||||
"email": "E-mail",
|
||||
"emailInvalid": "E-mail musi być prawidłowy",
|
||||
"passwordMatch": "Hasła muszą się zgadzać",
|
||||
"totpEnable": "Włącz TOTP",
|
||||
"totpEnableTrue": "TOTP musi być włączone",
|
||||
"totpCode": "Kod TOTP"
|
||||
},
|
||||
"userConfig": {
|
||||
"host": "Host"
|
||||
},
|
||||
"general": {
|
||||
"sessionTimeout": "Limit czasu sesji",
|
||||
"metricsEnabled": "Metryki",
|
||||
"metricsPassword": "Hasło do metryk"
|
||||
},
|
||||
"interface": {
|
||||
"cidr": "CIDR",
|
||||
"device": "Urządzenie",
|
||||
"cidrValid": "CIDR musi być prawidłowy"
|
||||
},
|
||||
"otl": "Jednorazowy link",
|
||||
"stringMalformed": "Nieprawidłowy format tekstu",
|
||||
"body": "Treść musi być prawidłowym obiektem",
|
||||
"hook": "Hook",
|
||||
"enabled": "Włączone",
|
||||
"mtu": "MTU",
|
||||
"port": "Port",
|
||||
"persistentKeepalive": "Stałe utrzymywanie połączenia",
|
||||
"address": "Adres IP",
|
||||
"dns": "DNS",
|
||||
"allowedIps": "Dozwolone adresy IP",
|
||||
"file": "Plik"
|
||||
},
|
||||
"hooks": {
|
||||
"preUp": "PreUp",
|
||||
"postUp": "PostUp",
|
||||
"preDown": "PreDown",
|
||||
"postDown": "PostDown"
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,240 @@
|
||||
{
|
||||
"pages": {
|
||||
"me": "Conta",
|
||||
"clients": "Clientes",
|
||||
"admin": {
|
||||
"panel": "Panel de administração.",
|
||||
"general": "Geral",
|
||||
"config": "Configuração",
|
||||
"interface": "Interface",
|
||||
"hooks": "Hooks"
|
||||
}
|
||||
},
|
||||
"user": {
|
||||
"email": "E-mail"
|
||||
},
|
||||
"me": {
|
||||
"currentPassword": "Senha atual",
|
||||
"enable2fa": "Habilitar autenticação em dois fatores",
|
||||
"enable2faDesc": "Escaneie o QR Code com seu aplicativo autenticador ou insira a chave manualmente.",
|
||||
"2faKey": "Chave TOTP",
|
||||
"2faCodeDesc": "Digite o código do seu aplicativo autenticador.",
|
||||
"disable2fa": "Desativar autenticação de dois fatores.",
|
||||
"disable2faDesc": "Digite sua senha para desativar a autenticação de dois fatores."
|
||||
},
|
||||
"general": {
|
||||
"name": "Nome",
|
||||
"username": "Nome de usuário",
|
||||
"password": "Senha",
|
||||
"newPassword": "Nova senha",
|
||||
"updatePassword": "Atualizar senha",
|
||||
"mtu": "MTU",
|
||||
"allowedIps": "IPs permitidos",
|
||||
"dns": "DNS",
|
||||
"persistentKeepalive": "Keepalive persistente",
|
||||
"logout": "Sair",
|
||||
"continue": "Continue",
|
||||
"host": "Host",
|
||||
"port": "Porta",
|
||||
"yes": "Sim",
|
||||
"no": "Não",
|
||||
"confirmPassword": "Confirmar senha",
|
||||
"loading": "Carregando...",
|
||||
"2fa": "Autenticação de dois fatores",
|
||||
"2faCode": "Código TOTP"
|
||||
},
|
||||
"setup": {
|
||||
"welcome": "Bem-vindo à sua primeira configuração do wg-easy",
|
||||
"welcomeDesc": "Você encontrou a maneira mais fácil de instalar e gerenciar o WireGuard em qualquer host Linux",
|
||||
"existingSetup": "Você já tem uma configuração?",
|
||||
"createAdminDesc": "Primeiro, insira um nome de usuário de administrador e uma senha forte e segura. Essas informações serão usadas para fazer login no seu painel de administração.",
|
||||
"setupConfigDesc": "Insira as informações do host e da porta. Essas informações serão usadas para a configuração do cliente ao instalar o WireGuard em seus dispositivos.",
|
||||
"setupMigrationDesc": "Forneça o arquivo de backup se quiser migrar seus dados da versão anterior do wg-easy para a nova configuração.",
|
||||
"upload": "Upload",
|
||||
"migration": "Restaurar backup:",
|
||||
"createAccount": "Criar conta",
|
||||
"successful": "Configuração bem-sucedida",
|
||||
"hostDesc": "Nome de host público que os clientes se conectarão",
|
||||
"portDesc": "Porta UDP pública que os clientes se conectarão e o WireGuard escutará"
|
||||
},
|
||||
"update": {
|
||||
"updateAvailable": "Há uma atualização disponível!",
|
||||
"update": "Atualizar"
|
||||
},
|
||||
"theme": {
|
||||
"dark": "Tema escuro",
|
||||
"light": "Tema claro",
|
||||
"system": "Tema do sistema"
|
||||
},
|
||||
"layout": {
|
||||
"toggleCharts": "Mostrar/ocultar gráficos",
|
||||
"donate": "Doar"
|
||||
},
|
||||
"login": {
|
||||
"signIn": "Entrar",
|
||||
"rememberMe": "Lembrar de mim",
|
||||
"rememberMeDesc": "Permanecer conectado após fechar o navegador",
|
||||
"insecure": "Não é possível fazer login com uma conexão insegura. Use HTTPS.",
|
||||
"2faRequired": "É necessária autenticação de dois fatores",
|
||||
"2faWrong": "A autenticação de dois fatores está errada"
|
||||
},
|
||||
"client": {
|
||||
"empty": "Ainda não há clientes.",
|
||||
"newShort": "Novo",
|
||||
"sort": "Organizar",
|
||||
"create": "Criar cliente",
|
||||
"created": "Cliente criado",
|
||||
"new": "Novo cliente",
|
||||
"name": "Nome",
|
||||
"expireDate": "Data de expiração",
|
||||
"expireDateDesc": "Data em que o cliente será desativado. Em branco para permanente",
|
||||
"deleteClient": "Deletar cliente",
|
||||
"deleteDialog1": "Tem certeza de que deseja excluir?",
|
||||
"deleteDialog2": "Esta ação não pode ser desfeita.",
|
||||
"enabled": "Ativado",
|
||||
"address": "Endereço",
|
||||
"serverAllowedIps": "IPs permitidos do servidor",
|
||||
"otlDesc": "Gerar link curto e único",
|
||||
"permanent": "Permanente",
|
||||
"createdOn": "Criado em ",
|
||||
"lastSeen": "Visto pela última vez em",
|
||||
"totalDownload": "Download total: ",
|
||||
"totalUpload": "Upload total: ",
|
||||
"newClient": "Novo cliente",
|
||||
"disableClient": "Desativar cliente",
|
||||
"enableClient": "Ativar cliente",
|
||||
"noPrivKey": "Este cliente não possui uma chave privada conhecida. Não é possível criar a configuração.",
|
||||
"showQR": "Mostrar QR Code",
|
||||
"downloadConfig": "Download da configuração",
|
||||
"allowedIpsDesc": "Quais IPs serão roteados pela VPN (substitui a configuração global)",
|
||||
"serverAllowedIpsDesc": "Quais IPs o servidor irá rotear para o cliente",
|
||||
"mtuDesc": "Define a unidade máxima de transmissão (tamanho do pacote) para o túnel VPN",
|
||||
"persistentKeepaliveDesc": "Define o intervalo (em segundos) para pacotes keep-alive. 0 desabilita-o",
|
||||
"hooks": "Hooks",
|
||||
"hooksDescription": "Os hooks só funcionam com wg-quick",
|
||||
"hooksLeaveEmpty": "Somente para wg-quick. Caso contrário, deixe em branco.",
|
||||
"dnsDesc": "Os clientes do servidor DNS usarão (substitui a configuração global)",
|
||||
"notConnected": "Client não conectado",
|
||||
"endpoint": "Endpoint",
|
||||
"endpointDesc": "IP do cliente a partir do qual a conexão WireGuard é estabelecida"
|
||||
},
|
||||
"dialog": {
|
||||
"change": "Mudar",
|
||||
"cancel": "Cancelar",
|
||||
"create": "Criar"
|
||||
},
|
||||
"toast": {
|
||||
"success": "Sucesso",
|
||||
"saved": "Salvo",
|
||||
"error": "Erro"
|
||||
},
|
||||
"form": {
|
||||
"actions": "Ação",
|
||||
"save": "Salvar",
|
||||
"revert": "Reverter",
|
||||
"sectionGeneral": "Geral",
|
||||
"sectionAdvanced": "Avançado",
|
||||
"noItems": "Sem items",
|
||||
"nullNoItems": "Sem items. Usando configuração global",
|
||||
"add": "Adicionar"
|
||||
},
|
||||
"admin": {
|
||||
"general": {
|
||||
"sessionTimeout": "Tempo limite da sessão",
|
||||
"sessionTimeoutDesc": "Duração da sessão para Lembrar de mim (segundos)",
|
||||
"metrics": "Métricas",
|
||||
"metricsPassword": "Senha",
|
||||
"metricsPasswordDesc": "Senha do portador para o ponto final de métricas (senha ou hash argon2)",
|
||||
"json": "JSON",
|
||||
"jsonDesc": "Rota para métricas em formato JSON",
|
||||
"prometheus": "Prometheus",
|
||||
"prometheusDesc": "Rota para métricas do Prometheus"
|
||||
},
|
||||
"config": {
|
||||
"connection": "Conexão",
|
||||
"hostDesc": "Nome de host público ao qual os clientes se conectarão (invalida a configuração)",
|
||||
"portDesc": "Porta UDP pública à qual os clientes se conectarão (invalida a configuração, você provavelmente desejará alterar a porta da interface também)",
|
||||
"allowedIpsDesc": "IPs permitidos que os clientes usarão (configuração global)",
|
||||
"dnsDesc": "Os clientes do servidor DNS usarão (configuração global)",
|
||||
"mtuDesc": "Os clientes da MTU usarão (somente para novos clientes)",
|
||||
"persistentKeepaliveDesc": "Intervalo em segundos para enviar keepalives para o servidor. 0 = desabilitado (somente para novos clientes)",
|
||||
"suggest": "Sugestão",
|
||||
"suggestDesc": "Escolha um endereço IP ou nome de host para o campo Host"
|
||||
},
|
||||
"interface": {
|
||||
"cidrSuccess": "Mudar CIDR",
|
||||
"device": "Dispositivo",
|
||||
"deviceDesc": "Dispositivo Ethernet que o tráfego wireguard deve ser encaminhado",
|
||||
"mtuDesc": "MTU que o WireGuard usará",
|
||||
"portDesc": "A porta UDP que o WireGuard irá escutar (você provavelmente vai querer mudar a porta de configuração também)",
|
||||
"changeCidr": "Mudar CIDR",
|
||||
"restart": "Reiniciar interface",
|
||||
"restartDesc": "Reiniciar a interface do WireGuard",
|
||||
"restartWarn": "Tem certeza de que deseja reiniciar a interface? Isso desconectará todos os clientes.",
|
||||
"restartSuccess": "Interface reiniciada"
|
||||
},
|
||||
"introText": "Bem-vindo ao painel de administração.\n\nAqui você pode gerenciar as configurações gerais, a configuração, as configurações da interface e os hooks.\n\nComece escolhendo uma das seções na barra lateral."
|
||||
},
|
||||
"zod": {
|
||||
"generic": {
|
||||
"required": "{0} é obrigatório",
|
||||
"validNumber": "{0} deve ser um número válido",
|
||||
"validString": "{0} deve ser uma string válida",
|
||||
"validBoolean": "{0} deve ser um booleano válido",
|
||||
"validArray": "{0} deve ser uma matriz válida",
|
||||
"stringMin": "{0} deve ter pelo menos {1} caracteres",
|
||||
"numberMin": "{0} deve ter pelo menos {1}"
|
||||
},
|
||||
"client": {
|
||||
"id": "ID do cliente",
|
||||
"name": "Nome",
|
||||
"expiresAt": "Expira em",
|
||||
"address4": "Endereço IPv4",
|
||||
"address6": "Endereço IPv6",
|
||||
"serverAllowedIps": "IPs permitidos do servidor"
|
||||
},
|
||||
"user": {
|
||||
"username": "Usuário",
|
||||
"password": "Senha",
|
||||
"remember": "Lembrar",
|
||||
"name": "Nome",
|
||||
"email": "E-mail",
|
||||
"emailInvalid": "O e-mail deve ser um e-mail válido",
|
||||
"passwordMatch": "As senhas devem corresponder",
|
||||
"totpEnable": "Habilitar TOTP",
|
||||
"totpEnableTrue": "TOTP deve estar ativado",
|
||||
"totpCode": "Código TOTP"
|
||||
},
|
||||
"userConfig": {
|
||||
"host": "Host"
|
||||
},
|
||||
"general": {
|
||||
"sessionTimeout": "Tempo limite da sessão",
|
||||
"metricsEnabled": "Métricas",
|
||||
"metricsPassword": "Senha de métricas"
|
||||
},
|
||||
"interface": {
|
||||
"cidr": "CIDR",
|
||||
"device": "Dispositivo",
|
||||
"cidrValid": "O CIDR deve ser válido"
|
||||
},
|
||||
"otl": "Link de uso único",
|
||||
"stringMalformed": "A string está malformada",
|
||||
"body": "O corpo deve ser um objeto válido",
|
||||
"hook": "Hook",
|
||||
"enabled": "Ativado",
|
||||
"mtu": "MTU",
|
||||
"port": "Porta",
|
||||
"persistentKeepalive": "Keepalive persistente",
|
||||
"address": "Endereço IP",
|
||||
"dns": "DNS",
|
||||
"allowedIps": "IPs permitidos",
|
||||
"file": "Arquivo"
|
||||
},
|
||||
"hooks": {
|
||||
"preUp": "PreUp",
|
||||
"postUp": "PostUp",
|
||||
"preDown": "PreDown",
|
||||
"postDown": "PostDown"
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,286 @@
|
||||
{
|
||||
"pages": {
|
||||
"me": "Аккаунт",
|
||||
"clients": "Клиенты",
|
||||
"admin": {
|
||||
"panel": "Админ-панель",
|
||||
"general": "Общие настройки",
|
||||
"config": "Конфигурация",
|
||||
"interface": "Интерфейс",
|
||||
"hooks": "Хуки"
|
||||
}
|
||||
},
|
||||
"user": {
|
||||
"email": "E-Mail"
|
||||
},
|
||||
"me": {
|
||||
"currentPassword": "Текущий пароль",
|
||||
"enable2fa": "Включить двухфакторную аутентификацию",
|
||||
"enable2faDesc": "Отсканируйте QR‑код с помощью приложения‑аутентификатора или введите ключ вручную.",
|
||||
"2faKey": "Ключ TOTP",
|
||||
"2faCodeDesc": "Введите код из приложения‑аутентификатора.",
|
||||
"disable2fa": "Отключить двухфакторную аутентификацию",
|
||||
"disable2faDesc": "Введите пароль, чтобы отключить двухфакторную аутентификацию."
|
||||
},
|
||||
"general": {
|
||||
"name": "Имя",
|
||||
"username": "Имя пользователя",
|
||||
"password": "Пароль",
|
||||
"newPassword": "Новый пароль",
|
||||
"updatePassword": "Обновить пароль",
|
||||
"mtu": "MTU",
|
||||
"allowedIps": "Разрешённые IP‑адреса",
|
||||
"dns": "DNS",
|
||||
"persistentKeepalive": "Постоянное поддержание соединения",
|
||||
"logout": "Выйти",
|
||||
"continue": "Продолжить",
|
||||
"host": "Хост",
|
||||
"port": "Порт",
|
||||
"yes": "Да",
|
||||
"no": "Нет",
|
||||
"confirmPassword": "Подтвердите пароль",
|
||||
"loading": "Загрузка...",
|
||||
"2fa": "Двухфакторная аутентификация",
|
||||
"2faCode": "Код TOTP"
|
||||
},
|
||||
"setup": {
|
||||
"welcome": "Добро пожаловать в первичную настройку wg-easy",
|
||||
"welcomeDesc": "Вы нашли самый простой способ установить и управлять WireGuard на любом Linux‑хосте",
|
||||
"existingSetup": "У вас уже есть существующая настройка?",
|
||||
"createAdminDesc": "Сначала введите имя администратора и надёжный пароль. Эти данные будут использоваться для входа в Админ-панель.",
|
||||
"setupConfigDesc": "Введите данные хоста и порта. Они будут использоваться для настройки клиента при установке WireGuard на устройствах.",
|
||||
"setupMigrationDesc": "Укажите файл резервной копии, если хотите перенести данные из предыдущей версии wg-easy.",
|
||||
"upload": "Загрузить",
|
||||
"migration": "Восстановить из резервной копии:",
|
||||
"createAccount": "Создать аккаунт",
|
||||
"successful": "Настройка завершена успешно",
|
||||
"hostDesc": "Публичное имя хоста, к которому будут подключаться клиенты",
|
||||
"portDesc": "Публичный UDP‑порт, к которому будут подключаться клиенты и на котором будет слушать WireGuard"
|
||||
},
|
||||
"update": {
|
||||
"updateAvailable": "Доступно обновление!",
|
||||
"update": "Обновить"
|
||||
},
|
||||
"theme": {
|
||||
"dark": "Тёмная тема",
|
||||
"light": "Светлая тема",
|
||||
"system": "Системная тема"
|
||||
},
|
||||
"layout": {
|
||||
"toggleCharts": "Показать/скрыть графики",
|
||||
"donate": "Поддержать"
|
||||
},
|
||||
"login": {
|
||||
"signIn": "Войти",
|
||||
"rememberMe": "Запомнить меня",
|
||||
"rememberMeDesc": "Оставаться в системе после закрытия браузера",
|
||||
"insecure": "Вы не можете войти по незащищённому соединению. Используйте HTTPS.",
|
||||
"2faRequired": "Требуется двухфакторная аутентификация",
|
||||
"2faWrong": "Неверный код двухфакторной аутентификации"
|
||||
},
|
||||
"client": {
|
||||
"empty": "Клиентов пока нет.",
|
||||
"newShort": "Новый",
|
||||
"sort": "Сортировка",
|
||||
"create": "Создать клиента",
|
||||
"created": "Клиент создан",
|
||||
"new": "Новый клиент",
|
||||
"name": "Имя",
|
||||
"expireDate": "Дата отключения",
|
||||
"expireDateDesc": "Дата, когда клиент будет отключён. Оставьте пустым для бессрочного доступа",
|
||||
"delete": "Удалить",
|
||||
"deleteClient": "Удалить клиента",
|
||||
"deleteDialog1": "Вы уверены, что хотите удалить",
|
||||
"deleteDialog2": "Это действие нельзя отменить.",
|
||||
"enabled": "Включён",
|
||||
"address": "Адрес",
|
||||
"serverAllowedIps": "Разрешённые IP‑адреса сервера",
|
||||
"otlDesc": "Сгенерировать короткую одноразовую ссылку",
|
||||
"permanent": "Бессрочный",
|
||||
"createdOn": "Создан ",
|
||||
"lastSeen": "Последнее подключение ",
|
||||
"totalDownload": "Всего скачано: ",
|
||||
"totalUpload": "Всего отправлено: ",
|
||||
"newClient": "Новый клиент",
|
||||
"disableClient": "Отключить клиента",
|
||||
"enableClient": "Включить клиента",
|
||||
"noPrivKey": "У этого клиента нет приватного ключа. Невозможно создать конфигурацию.",
|
||||
"showQR": "Показать QR‑код",
|
||||
"downloadConfig": "Скачать конфигурацию",
|
||||
"allowedIpsDesc": "Какие IP‑адреса будут маршрутизироваться через VPN (переопределяет глобальную конфигурацию)",
|
||||
"serverAllowedIpsDesc": "Какие IP‑адреса сервер будет отправлять клиенту",
|
||||
"mtuDesc": "Максимальный размер пакета (MTU) для VPN‑туннеля",
|
||||
"persistentKeepaliveDesc": "Устанавливает интервал (в секундах) для пакетов поддержания соединения. 0 — отключить",
|
||||
"hooks": "Хуки",
|
||||
"hooksDescription": "Хуки работают только с wg‑quick",
|
||||
"hooksLeaveEmpty": "Только для wg‑quick. В остальных случаях оставьте пустым",
|
||||
"dnsDesc": "DNS‑сервер, который будут использовать клиенты (переопределяет глобальную конфигурацию)",
|
||||
"notConnected": "Клиент не подключен",
|
||||
"endpoint": "Точка подключения",
|
||||
"endpointDesc": "IP‑адрес клиента, с которого установлено соединение WireGuard",
|
||||
"search": "Поиск клиентов...",
|
||||
"config": "Конфигурация",
|
||||
"viewConfig": "Просмотреть конфигурацию"
|
||||
},
|
||||
"dialog": {
|
||||
"change": "Изменить",
|
||||
"cancel": "Отменить",
|
||||
"create": "Создать"
|
||||
},
|
||||
"toast": {
|
||||
"success": "Успешно",
|
||||
"saved": "Сохранено",
|
||||
"error": "Ошибка"
|
||||
},
|
||||
"form": {
|
||||
"actions": "Действия",
|
||||
"save": "Сохранить",
|
||||
"revert": "Отменить",
|
||||
"sectionGeneral": "Общие",
|
||||
"sectionAdvanced": "Расширенные",
|
||||
"noItems": "Нет элементов",
|
||||
"nullNoItems": "Нет элементов. Используется глобальная конфигурация",
|
||||
"add": "Добавить"
|
||||
},
|
||||
"admin": {
|
||||
"general": {
|
||||
"sessionTimeout": "Время жизни сессии",
|
||||
"sessionTimeoutDesc": "Длительность сессии для «Запомнить меня» (в секундах)",
|
||||
"metrics": "Метрики",
|
||||
"metricsPassword": "Пароль",
|
||||
"metricsPasswordDesc": "Пароль Bearer для конечной точки метрик (пароль или хэш argon2)",
|
||||
"json": "JSON",
|
||||
"jsonDesc": "Путь для метрик в формате JSON",
|
||||
"prometheus": "Prometheus",
|
||||
"prometheusDesc": "Путь для метрик Prometheus"
|
||||
},
|
||||
"config": {
|
||||
"connection": "Соединение",
|
||||
"hostDesc": "Публичное имя хоста для подключения клиентов(обнуляет конфигурацию)",
|
||||
"portDesc": "Публичный UDP‑порт для подключения клиентов (также рекомендуется изменить порт интерфейса)",
|
||||
"allowedIpsDesc": "Разрешённые IP‑адреса для клиентов(глобальная конфигурация)",
|
||||
"dnsDesc": "DNS‑сервер для клиентов (глобальная конфигурация)",
|
||||
"mtuDesc": "MTU для клиентов (только для новых)",
|
||||
"persistentKeepaliveDesc": "Интервал в секундах для отправки пакетов поддержания соединения на сервер. 0 = отключено (только для новых клиентов)",
|
||||
"suggest": "Предложить",
|
||||
"suggestDesc": "Выберите IP‑адрес или имя хоста для поля «Хост»"
|
||||
},
|
||||
"interface": {
|
||||
"cidrSuccess": "CIDR изменён",
|
||||
"device": "Устройство",
|
||||
"deviceDesc": "Сетевое устройство Ethernet, через которое должен проходить трафик WireGuard",
|
||||
"mtuDesc": "MTU, который будет использовать WireGuard",
|
||||
"portDesc": "UDP‑порт, на котором будет слушать WireGuard (возможно, нужно также изменить порт конфигурации)",
|
||||
"changeCidr": "Изменить CIDR",
|
||||
"restart": "Перезапустить интерфейс",
|
||||
"restartDesc": "Перезапустить интерфейс WireGuard",
|
||||
"restartWarn": "Вы уверены, что хотите перезапустить интерфейс? Это приведёт к отключению всех клиентов.",
|
||||
"restartSuccess": "Интерфейс перезапущен"
|
||||
},
|
||||
"introText": "Добро пожаловать в панель администратора.\n\nЗдесь вы можете управлять общими настройками, конфигурацией, настройками интерфейса и хуками.\n\nНачните с выбора одного из разделов на боковой панели."
|
||||
},
|
||||
"zod": {
|
||||
"generic": {
|
||||
"required": "{0} обязательно для заполнения",
|
||||
"validNumber": "{0} должно быть числом",
|
||||
"validString": "{0} должно быть строкой",
|
||||
"validBoolean": "{0} должно быть логическим значением",
|
||||
"validArray": "{0} должно быть массивом",
|
||||
"stringMin": "{0} должно содержать не менее {1} символа",
|
||||
"numberMin": "{0} должно быть не менее {1}"
|
||||
},
|
||||
"client": {
|
||||
"id": "ID клиента",
|
||||
"name": "Имя",
|
||||
"expiresAt": "Дата окончания действия",
|
||||
"address4": "IPv4‑адрес",
|
||||
"address6": "IPv6‑адрес",
|
||||
"serverAllowedIps": "Разрешённые IP‑адреса сервера"
|
||||
},
|
||||
"user": {
|
||||
"username": "Имя пользователя",
|
||||
"password": "Пароль",
|
||||
"remember": "Запомнить",
|
||||
"name": "Имя",
|
||||
"email": "Электронная почта",
|
||||
"emailInvalid": "Адрес электронной почты должен быть корректным",
|
||||
"passwordMatch": "Пароли должны совпадать",
|
||||
"totpEnable": "Включить TOTP",
|
||||
"totpEnableTrue": "TOTP должен быть включён",
|
||||
"totpCode": "Код TOTP"
|
||||
},
|
||||
"userConfig": {
|
||||
"host": "Хост"
|
||||
},
|
||||
"general": {
|
||||
"sessionTimeout": "Время жизни сессии",
|
||||
"metricsEnabled": "Метрики",
|
||||
"metricsPassword": "Пароль для метрик"
|
||||
},
|
||||
"interface": {
|
||||
"cidr": "CIDR",
|
||||
"device": "Устройство",
|
||||
"cidrValid": "CIDR должен быть корректным"
|
||||
},
|
||||
"otl": "Одноразовая ссылка",
|
||||
"stringMalformed": "Строка имеет неверный формат",
|
||||
"body": "Тело должно быть корректным объектом",
|
||||
"hook": "Хук",
|
||||
"enabled": "Включено",
|
||||
"mtu": "MTU",
|
||||
"port": "Порт",
|
||||
"persistentKeepalive": "Постоянное поддержание соединения",
|
||||
"address": "IP‑адрес",
|
||||
"dns": "DNS",
|
||||
"allowedIps": "Разрешённые IP‑адреса",
|
||||
"file": "Файл"
|
||||
},
|
||||
"hooks": {
|
||||
"preUp": "PreUp",
|
||||
"postUp": "PostUp",
|
||||
"preDown": "PreDown",
|
||||
"postDown": "PostDown"
|
||||
},
|
||||
"copy": {
|
||||
"notSupported": "Копирование не поддерживается",
|
||||
"copied": "Скопировано!",
|
||||
"failed": "Ошибка копирования",
|
||||
"copy": "Копировать"
|
||||
},
|
||||
"awg": {
|
||||
"jCLabel": "Количество шумовых пакетов (Jc)",
|
||||
"jCDescription": "Число шумовых пакетов для отправки (1-128, рекомендуется: 4-12)",
|
||||
"jMinLabel": "Минимальный размер шумовых пакетов (Jmin)",
|
||||
"jMinDescription": "Минимальный размер шумовых пакетов (0-1279*, рекомендуется: 8, должен быть < Jmax)",
|
||||
"jMaxLabel": "Максимальный размер шумовых пакетов (Jmax)",
|
||||
"jMaxDescription": "Максимальный размер шумовых пакетов (1-1280*, рекомендуется: 80, должен быть > Jmin)",
|
||||
"s1Label": "Размер шумовых данных в init-пакете (S1)",
|
||||
"s1Description": "Размер шумовых данных в init-пакете (0-1132[1280* - 148 = 1132], рекомендуется: 15-150, S1+56 ≠ S2)",
|
||||
"s2Label": "Размер шумовых данных в ответном пакете (S2)",
|
||||
"s2Description": "Размер шумовых данных в ответном пакете (0-1188[1280* - 92 = 1188], рекомендуется: 15-150)",
|
||||
"s3Label": "Размер шумовых данных в cookie-reply пакете (S3)",
|
||||
"s3Description": "Размер шумовых данных в cookie-reply пакете",
|
||||
"s4Label": "Размер шумовых данных в транспортном пакете (S4)",
|
||||
"s4Description": "Размер шумовых данных в транспортном пакете",
|
||||
"i1Label": "Специальный шумовой пакет 1 (I1)",
|
||||
"i1Description": "Пакет имитации протокола в hex формате: <b 0x...>",
|
||||
"i2Label": "Специальный шумовой пакет 2 (I2)",
|
||||
"i2Description": "Пакет имитации протокола в hex формате: <b 0x...>",
|
||||
"i3Label": "Специальный шумовой пакет 3 (I3)",
|
||||
"i3Description": "Пакет имитации протокола в hex формате: <b 0x...>",
|
||||
"i4Label": "Специальный шумовой пакет 4 (I4)",
|
||||
"i4Description": "Пакет имитации протокола в hex формате: <b 0x...>",
|
||||
"i5Label": "Специальный шумовой пакет 5 (I5)",
|
||||
"i5Description": "Пакет имитации протокола в hex формате: <b 0x...>",
|
||||
"h1Label": "Init magic заголовок (H1)",
|
||||
"h1Description": "Значение заголовка init-пакета (5-2147483647, должно отличаться от H2-H4)",
|
||||
"h2Label": "Response magic заголовок (H2)",
|
||||
"h2Description": "Значение заголовка ответного пакета (5-2147483647, должно отличаться от H1, H3, H4)",
|
||||
"h3Label": "Cookie reply magic заголовок (H3)",
|
||||
"h3Description": "Значение заголовка cookie-reply пакета (5-2147483647, должно отличаться от H1, H2, H4)",
|
||||
"h4Label": "Transport magic заголовок (H4)",
|
||||
"h4Description": "Значение заголовка транспортного пакета (5-2147483647, должно отличаться от H1-H3)",
|
||||
"mtuNote": "Значения зависят от MTU",
|
||||
"obfuscationParameters": "Параметры обфускации AmneziaWG"
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,240 @@
|
||||
{
|
||||
"pages": {
|
||||
"me": "Hesap",
|
||||
"clients": "İstemciler",
|
||||
"admin": {
|
||||
"panel": "Yönetici Paneli",
|
||||
"general": "Genel",
|
||||
"config": "Yapılandırma",
|
||||
"interface": "Arayüz",
|
||||
"hooks": "Hook'lar"
|
||||
}
|
||||
},
|
||||
"user": {
|
||||
"email": "E-Posta"
|
||||
},
|
||||
"me": {
|
||||
"currentPassword": "Mevcut Şifre",
|
||||
"enable2fa": "İki Faktörlü Kimlik Doğrulamayı Etkinleştir",
|
||||
"enable2faDesc": "QR kodunu kimlik doğrulayıcı uygulamanızla tarayın veya anahtarı manuel olarak girin.",
|
||||
"2faKey": "TOTP Anahtarı",
|
||||
"2faCodeDesc": "Kimlik doğrulayıcı uygulamanızdan kodu girin.",
|
||||
"disable2fa": "İki Faktörlü Kimlik Doğrulamayı Devre Dışı Bırak",
|
||||
"disable2faDesc": "İki Faktörlü Kimlik Doğrulamayı devre dışı bırakmak için şifrenizi girin."
|
||||
},
|
||||
"general": {
|
||||
"name": "Ad",
|
||||
"username": "Kullanıcı Adı",
|
||||
"password": "Şifre",
|
||||
"newPassword": "Yeni Şifre",
|
||||
"updatePassword": "Şifreyi Güncelle",
|
||||
"mtu": "MTU",
|
||||
"allowedIps": "İzin Verilen IP'ler",
|
||||
"dns": "DNS",
|
||||
"persistentKeepalive": "Kalıcı Keepalive",
|
||||
"logout": "Çıkış Yap",
|
||||
"continue": "Devam Et",
|
||||
"host": "Ana Bilgisayar",
|
||||
"port": "Port",
|
||||
"yes": "Evet",
|
||||
"no": "Hayır",
|
||||
"confirmPassword": "Şifreyi Onayla",
|
||||
"loading": "Yükleniyor...",
|
||||
"2fa": "İki Faktörlü Kimlik Doğrulama",
|
||||
"2faCode": "TOTP Kodu"
|
||||
},
|
||||
"setup": {
|
||||
"welcome": "wg-easy ilk kurulumunuza hoş geldiniz",
|
||||
"welcomeDesc": "Herhangi bir Linux ana bilgisayarda WireGuard kurmanın ve yönetmenin en kolay yolunu buldunuz",
|
||||
"existingSetup": "Mevcut bir kurulumunuz var mı?",
|
||||
"createAdminDesc": "Lütfen önce bir yönetici kullanıcı adı ve güçlü bir güvenli şifre girin. Bu bilgiler yönetim panelinize giriş yapmak için kullanılacaktır.",
|
||||
"setupConfigDesc": "Lütfen ana bilgisayar ve port bilgilerini girin. Bu, cihazlarında WireGuard kurulumu yaparken istemci yapılandırması için kullanılacaktır.",
|
||||
"setupMigrationDesc": "Verilerinizi önceki wg-easy sürümünüzden yeni kurulumunuza taşımak istiyorsanız yedekleme dosyasını sağlayın.",
|
||||
"upload": "Yükle",
|
||||
"migration": "Yedeği geri yükle:",
|
||||
"createAccount": "Hesap Oluştur",
|
||||
"successful": "Kurulum başarılı",
|
||||
"hostDesc": "İstemcilerin bağlanacağı genel ana bilgisayar adı",
|
||||
"portDesc": "İstemcilerin bağlanacağı ve WireGuard'ın dinleyeceği genel UDP portu"
|
||||
},
|
||||
"update": {
|
||||
"updateAvailable": "Güncelleme mevcut!",
|
||||
"update": "Güncelle"
|
||||
},
|
||||
"theme": {
|
||||
"dark": "Koyu tema",
|
||||
"light": "Açık tema",
|
||||
"system": "Sistem teması"
|
||||
},
|
||||
"layout": {
|
||||
"toggleCharts": "Grafikleri Göster/Gizle",
|
||||
"donate": "Bağış Yap"
|
||||
},
|
||||
"login": {
|
||||
"signIn": "Giriş Yap",
|
||||
"rememberMe": "Beni hatırla",
|
||||
"rememberMeDesc": "Tarayıcıyı kapattıktan sonra giriş yapmış olarak kal",
|
||||
"insecure": "Güvensiz bir bağlantı ile giriş yapamazsınız. HTTPS kullanın.",
|
||||
"2faRequired": "İki Faktörlü Kimlik Doğrulama gerekli",
|
||||
"2faWrong": "İki Faktörlü Kimlik Doğrulama yanlış"
|
||||
},
|
||||
"client": {
|
||||
"empty": "Henüz istemci yok.",
|
||||
"newShort": "Yeni",
|
||||
"sort": "Sırala",
|
||||
"create": "İstemci Oluştur",
|
||||
"created": "İstemci oluşturuldu",
|
||||
"new": "Yeni İstemci",
|
||||
"name": "Ad",
|
||||
"expireDate": "Son Kullanma Tarihi",
|
||||
"expireDateDesc": "İstemcinin devre dışı bırakılacağı tarih. Kalıcı için boş bırakın",
|
||||
"deleteClient": "İstemciyi Sil",
|
||||
"deleteDialog1": "Silmek istediğinizden emin misiniz",
|
||||
"deleteDialog2": "Bu eylem geri alınamaz.",
|
||||
"enabled": "Etkin",
|
||||
"address": "Adres",
|
||||
"serverAllowedIps": "Sunucu İzin Verilen IP'ler",
|
||||
"otlDesc": "Kısa tek seferlik bağlantı oluştur",
|
||||
"permanent": "Kalıcı",
|
||||
"createdOn": "Oluşturulma tarihi ",
|
||||
"lastSeen": "Son görülme ",
|
||||
"totalDownload": "Toplam İndirme: ",
|
||||
"totalUpload": "Toplam Yükleme: ",
|
||||
"newClient": "Yeni İstemci",
|
||||
"disableClient": "İstemciyi Devre Dışı Bırak",
|
||||
"enableClient": "İstemciyi Etkinleştir",
|
||||
"noPrivKey": "Bu istemcinin bilinen özel anahtarı yok. Yapılandırma oluşturulamıyor.",
|
||||
"showQR": "QR Kodunu Göster",
|
||||
"downloadConfig": "Yapılandırmayı İndir",
|
||||
"allowedIpsDesc": "Hangi IP'lerin VPN üzerinden yönlendirileceği (genel yapılandırmayı geçersiz kılar)",
|
||||
"serverAllowedIpsDesc": "Sunucunun istemciye yönlendireceği IP'ler",
|
||||
"mtuDesc": "VPN tüneli için maksimum iletim birimini (paket boyutu) ayarlar",
|
||||
"persistentKeepaliveDesc": "Keepalive paketleri için aralığı (saniye cinsinden) ayarlar. 0 devre dışı bırakır",
|
||||
"hooks": "Hook'lar",
|
||||
"hooksDescription": "Hook'lar sadece wg-quick ile çalışır",
|
||||
"hooksLeaveEmpty": "Sadece wg-quick için. Aksi takdirde boş bırakın",
|
||||
"dnsDesc": "İstemcilerin kullanacağı DNS sunucusu (genel yapılandırmayı geçersiz kılar)",
|
||||
"notConnected": "İstemci bağlı değil",
|
||||
"endpoint": "Uç Nokta",
|
||||
"endpointDesc": "WireGuard bağlantısının kurulduğu istemcinin IP'si"
|
||||
},
|
||||
"dialog": {
|
||||
"change": "Değiştir",
|
||||
"cancel": "İptal",
|
||||
"create": "Oluştur"
|
||||
},
|
||||
"toast": {
|
||||
"success": "Başarılı",
|
||||
"saved": "Kaydedildi",
|
||||
"error": "Hata"
|
||||
},
|
||||
"form": {
|
||||
"actions": "Eylemler",
|
||||
"save": "Kaydet",
|
||||
"revert": "Geri Al",
|
||||
"sectionGeneral": "Genel",
|
||||
"sectionAdvanced": "Gelişmiş",
|
||||
"noItems": "Öğe yok",
|
||||
"nullNoItems": "Öğe yok. Genel yapılandırma kullanılıyor",
|
||||
"add": "Ekle"
|
||||
},
|
||||
"admin": {
|
||||
"general": {
|
||||
"sessionTimeout": "Oturum Zaman Aşımı",
|
||||
"sessionTimeoutDesc": "Beni Hatırla için oturum süresi (saniye)",
|
||||
"metrics": "Metrikler",
|
||||
"metricsPassword": "Şifre",
|
||||
"metricsPasswordDesc": "Metrik uç noktası için Bearer şifresi (şifre veya argon2 hash)",
|
||||
"json": "JSON",
|
||||
"jsonDesc": "JSON formatında metrikler için rota",
|
||||
"prometheus": "Prometheus",
|
||||
"prometheusDesc": "Prometheus metrikleri için rota"
|
||||
},
|
||||
"config": {
|
||||
"connection": "Bağlantı",
|
||||
"hostDesc": "İstemcilerin bağlanacağı genel ana bilgisayar adı (yapılandırmayı geçersiz kılar)",
|
||||
"portDesc": "İstemcilerin bağlanacağı genel UDP portu (yapılandırmayı geçersiz kılar, muhtemelen Arayüz Portunu da değiştirmek isteyeceksiniz)",
|
||||
"allowedIpsDesc": "İstemcilerin kullanacağı İzin Verilen IP'ler (genel yapılandırma)",
|
||||
"dnsDesc": "İstemcilerin kullanacağı DNS sunucusu (genel yapılandırma)",
|
||||
"mtuDesc": "İstemcilerin kullanacağı MTU (sadece yeni istemciler için)",
|
||||
"persistentKeepaliveDesc": "Sunucuya keepalive göndermek için saniye cinsinden aralık. 0 = devre dışı (sadece yeni istemciler için)",
|
||||
"suggest": "Öner",
|
||||
"suggestDesc": "Ana Bilgisayar alanı için bir IP Adresi veya Ana Bilgisayar Adı seçin"
|
||||
},
|
||||
"interface": {
|
||||
"cidrSuccess": "CIDR değiştirildi",
|
||||
"device": "Cihaz",
|
||||
"deviceDesc": "WireGuard trafiğinin yönlendirileceği Ethernet cihazı",
|
||||
"mtuDesc": "WireGuard'ın kullanacağı MTU",
|
||||
"portDesc": "WireGuard'ın dinleyeceği UDP Portu (muhtemelen Yapılandırma Portunu da değiştirmek isteyeceksiniz)",
|
||||
"changeCidr": "CIDR'ı Değiştir",
|
||||
"restart": "Arayüzü Yeniden Başlat",
|
||||
"restartDesc": "WireGuard arayüzünü yeniden başlat",
|
||||
"restartWarn": "Arayüzü yeniden başlatmak istediğinizden emin misiniz? Bu tüm istemcilerin bağlantısını kesecektir.",
|
||||
"restartSuccess": "Arayüz yeniden başlatıldı"
|
||||
},
|
||||
"introText": "Yönetici paneline hoş geldiniz.\n\nBurada genel ayarları, yapılandırmayı, arayüz ayarlarını ve hook'ları yönetebilirsiniz.\n\nKenar çubuğundaki bölümlerden birini seçerek başlayın."
|
||||
},
|
||||
"zod": {
|
||||
"generic": {
|
||||
"required": "{0} gerekli",
|
||||
"validNumber": "{0} geçerli bir sayı olmalı",
|
||||
"validString": "{0} geçerli bir dize olmalı",
|
||||
"validBoolean": "{0} geçerli bir boolean olmalı",
|
||||
"validArray": "{0} geçerli bir dizi olmalı",
|
||||
"stringMin": "{0} en az {1} karakter olmalı",
|
||||
"numberMin": "{0} en az {1} olmalı"
|
||||
},
|
||||
"client": {
|
||||
"id": "İstemci ID",
|
||||
"name": "Ad",
|
||||
"expiresAt": "Son Kullanma Tarihi",
|
||||
"address4": "IPv4 Adresi",
|
||||
"address6": "IPv6 Adresi",
|
||||
"serverAllowedIps": "Sunucu İzin Verilen IP'ler"
|
||||
},
|
||||
"user": {
|
||||
"username": "Kullanıcı Adı",
|
||||
"password": "Şifre",
|
||||
"remember": "Hatırla",
|
||||
"name": "Ad",
|
||||
"email": "E-posta",
|
||||
"emailInvalid": "E-posta geçerli bir e-posta olmalı",
|
||||
"passwordMatch": "Şifreler eşleşmeli",
|
||||
"totpEnable": "TOTP Etkinleştir",
|
||||
"totpEnableTrue": "TOTP Etkinleştir doğru olmalı",
|
||||
"totpCode": "TOTP Kodu"
|
||||
},
|
||||
"userConfig": {
|
||||
"host": "Ana Bilgisayar"
|
||||
},
|
||||
"general": {
|
||||
"sessionTimeout": "Oturum Zaman Aşımı",
|
||||
"metricsEnabled": "Metrikler",
|
||||
"metricsPassword": "Metrik Şifresi"
|
||||
},
|
||||
"interface": {
|
||||
"cidr": "CIDR",
|
||||
"device": "Cihaz",
|
||||
"cidrValid": "CIDR geçerli olmalı"
|
||||
},
|
||||
"otl": "Tek seferlik bağlantı",
|
||||
"stringMalformed": "Dize hatalı biçimlendirilmiş",
|
||||
"body": "Gövde geçerli bir nesne olmalı",
|
||||
"hook": "Hook",
|
||||
"enabled": "Etkin",
|
||||
"mtu": "MTU",
|
||||
"port": "Port",
|
||||
"persistentKeepalive": "Kalıcı Keepalive",
|
||||
"address": "IP Adresi",
|
||||
"dns": "DNS",
|
||||
"allowedIps": "İzin Verilen IP'ler",
|
||||
"file": "Dosya"
|
||||
},
|
||||
"hooks": {
|
||||
"preUp": "PreUp",
|
||||
"postUp": "PostUp",
|
||||
"preDown": "PreDown",
|
||||
"postDown": "PostDown"
|
||||
}
|
||||
}
|
||||
@@ -88,6 +88,7 @@
|
||||
"name": "Ім'я",
|
||||
"expireDate": "Термін дії",
|
||||
"expireDateDesc": "Дата, коли клієнт буде відключений. Порожнє для постійного користування",
|
||||
"delete": "Видалити",
|
||||
"deleteClient": "Видалити клієнта",
|
||||
"deleteDialog1": "Ви впевнені, що бажаєте видалити",
|
||||
"deleteDialog2": "Цю дію неможливо скасувати.",
|
||||
@@ -113,7 +114,13 @@
|
||||
"hooks": "Hooks",
|
||||
"hooksDescription": "Hooks працюють лише з wg-quick",
|
||||
"hooksLeaveEmpty": "Тільки для wg-quick. Інакше залиште порожнім",
|
||||
"dnsDesc": "DNS сервер, який використовуватимуть клієнти (перевизначає глобальну конфігурацію)"
|
||||
"dnsDesc": "DNS сервер, який використовуватимуть клієнти (перевизначає глобальну конфігурацію)",
|
||||
"notConnected": "Клієнт не підключений",
|
||||
"endpoint": "Кінцева точка",
|
||||
"endpointDesc": "IP-адреса клієнта, з якої встановлюється з’єднання WireGuard",
|
||||
"search": "Пошук клієнтів...",
|
||||
"config": "Конфігурація",
|
||||
"viewConfig": "Переглянути конфігурацію"
|
||||
},
|
||||
"dialog": {
|
||||
"change": "Змінити",
|
||||
@@ -233,5 +240,47 @@
|
||||
"postUp": "PostUp",
|
||||
"preDown": "PreDown",
|
||||
"postDown": "PostDown"
|
||||
},
|
||||
"copy": {
|
||||
"notSupported": "Копіювання не підтримується",
|
||||
"copied": "Скопійовано!",
|
||||
"failed": "Не вдалося скопіювати",
|
||||
"copy": "Копіювати"
|
||||
},
|
||||
"awg": {
|
||||
"jCLabel": "Кількість сміттєвих пакетів (Jc)",
|
||||
"jCDescription": "Кількість сміттєвих пакетів для відправки (1–128, рекомендовано: 4–12)",
|
||||
"jMinLabel": "Мінімальний розмір сміттєвого пакета (Jmin)",
|
||||
"jMinDescription": "Мінімальний розмір сміттєвих пакетів (0–1279*, рекомендовано: 8, має бути < Jmax)",
|
||||
"jMaxLabel": "Максимальний розмір сміттєвого пакета (Jmax)",
|
||||
"jMaxDescription": "Максимальний розмір сміттєвих пакетів (1–1280*, рекомендовано: 80, має бути > Jmin)",
|
||||
"s1Label": "Розмір сміттєвих даних у початковому пакеті (S1)",
|
||||
"s1Description": "Розмір сміттєвих даних у початковому пакеті (0–1132 [1280* - 148 = 1132], рекомендовано: 15–150, S1+56 ≠ S2)",
|
||||
"s2Label": "Розмір сміттєвих даних у пакеті відповіді (S2)",
|
||||
"s2Description": "Розмір сміттєвих даних у пакеті відповіді (0–1188 [1280* - 92 = 1188], рекомендовано: 15–150)",
|
||||
"s3Label": "Розмір сміттєвих даних у пакеті «cookie reply» (S3)",
|
||||
"s3Description": "Розмір сміттєвих даних у пакеті «cookie reply»",
|
||||
"s4Label": "Розмір сміттєвих даних у транспортному пакеті (S4)",
|
||||
"s4Description": "Розмір сміттєвих даних у транспортному пакеті",
|
||||
"i1Label": "Спеціальний сміттєвий пакет 1 (I1)",
|
||||
"i1Description": "Пакет-імітація протоколу у hex-форматі: <b 0x...>",
|
||||
"i2Label": "Спеціальний сміттєвий пакет 2 (I2)",
|
||||
"i2Description": "Пакет-імітація протоколу у hex-форматі: <b 0x...>",
|
||||
"i3Label": "Спеціальний сміттєвий пакет 3 (I3)",
|
||||
"i3Description": "Пакет-імітація протоколу у hex-форматі: <b 0x...>",
|
||||
"i4Label": "Спеціальний сміттєвий пакет 4 (I4)",
|
||||
"i4Description": "Пакет-імітація протоколу у hex-форматі: <b 0x...>",
|
||||
"i5Label": "Спеціальний сміттєвий пакет 5 (I5)",
|
||||
"i5Description": "Пакет-імітація протоколу у hex-форматі: <b 0x...>",
|
||||
"h1Label": "Початковий магічний заголовок (H1)",
|
||||
"h1Description": "Значення заголовка початкового пакета (5–2147483647, має бути унікальним від H2–H4)",
|
||||
"h2Label": "Магічний заголовок відповіді (H2)",
|
||||
"h2Description": "Значення заголовка пакета відповіді (5–2147483647, має бути унікальним від H1, H3, H4)",
|
||||
"h3Label": "Магічний заголовок «cookie reply» (H3)",
|
||||
"h3Description": "Значення заголовка пакета «cookie reply» (5–2147483647, має бути унікальним від H1, H2, H4)",
|
||||
"h4Label": "Магічний заголовок транспортного пакета (H4)",
|
||||
"h4Description": "Значення заголовка транспортного пакета (5–2147483647, має бути унікальним від H1–H3)",
|
||||
"mtuNote": "Значення залежать від MTU",
|
||||
"obfuscationParameters": "Параметри обфускації AmneziaWG"
|
||||
}
|
||||
}
|
||||
|
||||
@@ -88,8 +88,9 @@
|
||||
"name": "客户端名称",
|
||||
"expireDate": "过期日期",
|
||||
"expireDateDesc": "客户端将被自动禁用的日期。留空表示永久有效",
|
||||
"delete": "删除客户端",
|
||||
"deleteClient": "删除客户端",
|
||||
"deleteDialog1": "您确定要删除此客户端吗?",
|
||||
"deleteDialog1": "您确定要删除客户端",
|
||||
"deleteDialog2": "此操作无法撤销。",
|
||||
"enabled": "已启用",
|
||||
"address": "IP地址",
|
||||
@@ -112,7 +113,14 @@
|
||||
"persistentKeepaliveDesc": "设置保活数据包的发送间隔(秒)。0表示禁用",
|
||||
"hooks": "钩子脚本",
|
||||
"hooksDescription": "钩子脚本仅在使用wg-quick时有效",
|
||||
"hooksLeaveEmpty": "如果不使用wg-quick,请留空此字段"
|
||||
"hooksLeaveEmpty": "如果不使用wg-quick,请留空此字段",
|
||||
"dnsDesc": "客户端将使用的 DNS 服务器(将覆盖全局配置)",
|
||||
"notConnected": "客户端未连接",
|
||||
"endpoint": "端点",
|
||||
"endpointDesc": "建立 WireGuard 连接时客户端的 IP 地址",
|
||||
"search": "搜索客户端...",
|
||||
"config": "配置",
|
||||
"viewConfig": "查看配置文本"
|
||||
},
|
||||
"dialog": {
|
||||
"change": "确认修改",
|
||||
@@ -154,7 +162,7 @@
|
||||
"dnsDesc": "客户端使用的全局DNS设置",
|
||||
"mtuDesc": "新客户端将使用的MTU(仅影响新客户端)",
|
||||
"persistentKeepaliveDesc": "向服务器发送保活数据包的间隔秒数。0表示禁用(仅影响新客户端)",
|
||||
"suggest": "自动检测",
|
||||
"suggest": "检测",
|
||||
"suggestDesc": "为'主机'字段选择IP地址或主机名"
|
||||
},
|
||||
"interface": {
|
||||
@@ -169,7 +177,7 @@
|
||||
"restartWarn": "确定要重启接口吗?这将断开所有客户端的连接。",
|
||||
"restartSuccess": "接口重启成功"
|
||||
},
|
||||
"introText": "欢迎使用管理控制台。\n\n您可以在这里管理通用设置、网络配置、接口设置和钩子脚本。\n\n请从侧边栏选择一个功能模块开始。"
|
||||
"introText": "欢迎使用管理控制台。\n\n您可以在这里管理通用设置、网络配置、接口配置和钩子脚本。\n\n请从侧边栏选择一个功能模块开始。"
|
||||
},
|
||||
"zod": {
|
||||
"generic": {
|
||||
@@ -232,5 +240,47 @@
|
||||
"postUp": "启动后脚本",
|
||||
"preDown": "停止前脚本",
|
||||
"postDown": "停止后脚本"
|
||||
},
|
||||
"copy": {
|
||||
"notSupported": "不支持复制",
|
||||
"copied": "已复制!",
|
||||
"failed": "复制失败",
|
||||
"copy": "复制"
|
||||
},
|
||||
"awg": {
|
||||
"jCLabel": "垃圾数据包计数(Jc)",
|
||||
"jCDescription": "发送的垃圾数据包数量(范围:1-128,推荐值:4-12)",
|
||||
"jMinLabel": "垃圾数据包最小尺寸(Jmin)",
|
||||
"jMinDescription": "垃圾数据包的最小尺寸(范围:0-1279*,推荐值:8,必须小于 Jmax)",
|
||||
"jMaxLabel": "垃圾数据包最大尺寸(Jmax)",
|
||||
"jMaxDescription": "垃圾数据包的最大尺寸(范围:1-1280*,推荐值:80,必须大于 Jmin)",
|
||||
"s1Label": "初始数据包垃圾数据大小(S1)",
|
||||
"s1Description": "初始数据包中垃圾数据的大小(范围:0-1132[1280* - 148 = 1132],推荐值:15-150,S1+56 ≠ S2)",
|
||||
"s2Label": "响应数据包垃圾数据大小(S2)",
|
||||
"s2Description": "响应数据包中垃圾数据的大小(范围:0-1188[1280* - 92 = 1188],推荐值:15-150)",
|
||||
"s3Label": "Cookie 回复数据包垃圾数据大小(S3)",
|
||||
"s3Description": "Cookie 回复数据包中垃圾数据的大小",
|
||||
"s4Label": "传输数据包垃圾数据大小(S4)",
|
||||
"s4Description": "传输数据包中垃圾数据的大小",
|
||||
"i1Label": "特殊垃圾数据包 1(I1)",
|
||||
"i1Description": "协议模拟数据包(十六进制格式):<b 0x...>",
|
||||
"i2Label": "特殊垃圾数据包 2(I2)",
|
||||
"i2Description": "协议模拟数据包(十六进制格式):<b 0x...>",
|
||||
"i3Label": "特殊垃圾数据包 3(I3)",
|
||||
"i3Description": "协议模拟数据包(十六进制格式):<b 0x...>",
|
||||
"i4Label": "特殊垃圾数据包 4(I4)",
|
||||
"i4Description": "协议模拟数据包(十六进制格式):<b 0x...>",
|
||||
"i5Label": "特殊垃圾数据包 5(I5)",
|
||||
"i5Description": "协议模拟数据包(十六进制格式):<b 0x...>",
|
||||
"h1Label": "初始数据包魔术头部(H1)",
|
||||
"h1Description": "初始数据包头部值(范围:5-2147483647,必须与 H2-H4 不同)",
|
||||
"h2Label": "响应数据包魔术头部(H2)",
|
||||
"h2Description": "响应数据包头部值(范围:5-2147483647,必须与 H1、H3、H4 不同)",
|
||||
"h3Label": "Cookie 回复数据包魔术头部(H3)",
|
||||
"h3Description": "Cookie 回复数据包头部值(范围:5-2147483647,必须与 H1、H2、H4 不同)",
|
||||
"h4Label": "传输数据包魔术头部(H4)",
|
||||
"h4Description": "传输数据包头部值(范围:5-2147483647,必须与 H1-H3 不同)",
|
||||
"mtuNote": "具体数值取决于 MTU(最大传输单元)",
|
||||
"obfuscationParameters": "AmneziaWG 混淆参数"
|
||||
}
|
||||
}
|
||||
|
||||
@@ -113,7 +113,8 @@
|
||||
"hooks": "掛鉤",
|
||||
"hooksDescription": "掛鉤僅適用於wg-quick",
|
||||
"hooksLeaveEmpty": "僅適用於wg-quick,否則請留空",
|
||||
"dnsDesc": "客戶端使用的域名系統伺服器(取代全局配置)"
|
||||
"dnsDesc": "客戶端使用的域名系統伺服器(取代全局配置)",
|
||||
"search": "搜尋客戶端..."
|
||||
},
|
||||
"dialog": {
|
||||
"change": "更改",
|
||||
|
||||
@@ -0,0 +1,286 @@
|
||||
{
|
||||
"pages": {
|
||||
"me": "帳戶",
|
||||
"clients": "用戶端",
|
||||
"admin": {
|
||||
"panel": "管理面板",
|
||||
"general": "一般設定",
|
||||
"config": "組態設定",
|
||||
"interface": "介面設定",
|
||||
"hooks": "Hook 設定"
|
||||
}
|
||||
},
|
||||
"user": {
|
||||
"email": "電子郵件"
|
||||
},
|
||||
"me": {
|
||||
"currentPassword": "目前密碼",
|
||||
"enable2fa": "啟用兩步驟驗證",
|
||||
"enable2faDesc": "請使用您的驗證碼應用程式掃描 QR Code,或手動輸入金鑰。",
|
||||
"2faKey": "TOTP 金鑰",
|
||||
"2faCodeDesc": "請輸入驗證碼應用程式提供的驗證碼。",
|
||||
"disable2fa": "停用兩步驟驗證",
|
||||
"disable2faDesc": "請輸入您的密碼以停用兩步驟驗證。"
|
||||
},
|
||||
"general": {
|
||||
"name": "名稱",
|
||||
"username": "使用者名稱",
|
||||
"password": "密碼",
|
||||
"newPassword": "新密碼",
|
||||
"updatePassword": "更新密碼",
|
||||
"mtu": "MTU",
|
||||
"allowedIps": "允許的 IP",
|
||||
"dns": "DNS",
|
||||
"persistentKeepalive": "保持連線",
|
||||
"logout": "登出",
|
||||
"continue": "繼續",
|
||||
"host": "主機",
|
||||
"port": "連接埠",
|
||||
"yes": "是",
|
||||
"no": "否",
|
||||
"confirmPassword": "確認密碼",
|
||||
"loading": "正在載入...",
|
||||
"2fa": "兩步驟驗證",
|
||||
"2faCode": "TOTP 驗證碼"
|
||||
},
|
||||
"setup": {
|
||||
"welcome": "歡迎首次設定您的 wg-easy",
|
||||
"welcomeDesc": "這是您在任何 Linux 主機上安裝與管理 WireGuard 最簡單的方式",
|
||||
"existingSetup": "您已有現存的設定了嗎?",
|
||||
"createAdminDesc": "請先輸入管理員使用者名稱與高強度密碼。此資訊將用於登入管理面板。",
|
||||
"setupConfigDesc": "請輸入主機與連接埠資訊。此資訊將用於設定用戶端的 WireGuard 連線。",
|
||||
"setupMigrationDesc": "若要從先前的 wg-easy 版本移轉資料,請提供備份檔案。",
|
||||
"upload": "上傳",
|
||||
"migration": "還原備份:",
|
||||
"createAccount": "建立帳戶",
|
||||
"successful": "設定成功",
|
||||
"hostDesc": "用戶端將連線的公開主機名稱",
|
||||
"portDesc": "用戶端將連線的公開 UDP 連接埠,且 WireGuard 會在此監聽"
|
||||
},
|
||||
"update": {
|
||||
"updateAvailable": "已有更新可供使用!",
|
||||
"update": "更新"
|
||||
},
|
||||
"theme": {
|
||||
"dark": "深色佈景主題",
|
||||
"light": "淺色佈景主題",
|
||||
"system": "系統佈景主題"
|
||||
},
|
||||
"layout": {
|
||||
"toggleCharts": "顯示/隱藏圖表",
|
||||
"donate": "贊助"
|
||||
},
|
||||
"login": {
|
||||
"signIn": "登入",
|
||||
"rememberMe": "記住我",
|
||||
"rememberMeDesc": "關閉瀏覽器後仍保持登入狀態",
|
||||
"insecure": "您無法在不安全的連線下登入。請使用 HTTPS。",
|
||||
"2faRequired": "需要兩步驟驗證",
|
||||
"2faWrong": "兩步驟驗證碼不正確"
|
||||
},
|
||||
"client": {
|
||||
"empty": "尚無用戶端。",
|
||||
"newShort": "新增",
|
||||
"sort": "排序",
|
||||
"create": "建立用戶端",
|
||||
"created": "已建立用戶端",
|
||||
"new": "新增用戶端",
|
||||
"name": "名稱",
|
||||
"expireDate": "到期日",
|
||||
"expireDateDesc": "用戶端將被停用的日期。留白表示永久有效",
|
||||
"delete": "刪除",
|
||||
"deleteClient": "刪除用戶端",
|
||||
"deleteDialog1": "您確定要刪除",
|
||||
"deleteDialog2": "此動作無法復原。",
|
||||
"enabled": "啟用",
|
||||
"address": "位址",
|
||||
"serverAllowedIps": "伺服器允許的 IP",
|
||||
"otlDesc": "產生暫時性單次連結",
|
||||
"permanent": "永久",
|
||||
"createdOn": "建立於 ",
|
||||
"lastSeen": "上次連線於 ",
|
||||
"totalDownload": "總下載量: ",
|
||||
"totalUpload": "總上傳量: ",
|
||||
"newClient": "新增用戶端",
|
||||
"disableClient": "停用用戶端",
|
||||
"enableClient": "啟用用戶端",
|
||||
"noPrivKey": "此用戶端沒有已知的私密金鑰,無法建立設定。",
|
||||
"showQR": "顯示 QR Code",
|
||||
"downloadConfig": "下載組態設定檔",
|
||||
"allowedIpsDesc": "將透過 VPN 路由的 IP (會覆寫全域設定)",
|
||||
"serverAllowedIpsDesc": "伺服器將路由至用戶端的 IP",
|
||||
"mtuDesc": "設定 VPN 通道的最大傳輸單位 (封包大小)",
|
||||
"persistentKeepaliveDesc": "Keep-alive 封包的間隔秒數。0 表示停用",
|
||||
"hooks": "Hook 設定",
|
||||
"hooksDescription": "Hook 設定僅適用於 wg-quick",
|
||||
"hooksLeaveEmpty": "僅適用於 wg-quick,否則請保持空白",
|
||||
"dnsDesc": "用戶端使用的 DNS 伺服器 (會覆寫全域設定)",
|
||||
"notConnected": "用戶端未連線",
|
||||
"endpoint": "端點",
|
||||
"endpointDesc": "用戶端建立 WireGuard 連線的來源 IP",
|
||||
"search": "搜尋用戶端...",
|
||||
"config": "組態設定",
|
||||
"viewConfig": "檢視組態設定"
|
||||
},
|
||||
"dialog": {
|
||||
"change": "變更",
|
||||
"cancel": "取消",
|
||||
"create": "建立"
|
||||
},
|
||||
"toast": {
|
||||
"success": "成功",
|
||||
"saved": "已儲存",
|
||||
"error": "錯誤"
|
||||
},
|
||||
"form": {
|
||||
"actions": "操作",
|
||||
"save": "儲存",
|
||||
"revert": "還原",
|
||||
"sectionGeneral": "一般設定",
|
||||
"sectionAdvanced": "進階設定",
|
||||
"noItems": "沒有項目",
|
||||
"nullNoItems": "沒有項目。使用全域設定",
|
||||
"add": "新增"
|
||||
},
|
||||
"admin": {
|
||||
"general": {
|
||||
"sessionTimeout": "工作階段逾時",
|
||||
"sessionTimeoutDesc": "「記住我」的工作階段持續時間 (秒)",
|
||||
"metrics": "計量",
|
||||
"metricsPassword": "密碼",
|
||||
"metricsPasswordDesc": "計量端點的 Bearer 密碼 (密碼或 argon2 雜湊)",
|
||||
"json": "JSON",
|
||||
"jsonDesc": "提供 JSON 格式計量的路由",
|
||||
"prometheus": "Prometheus",
|
||||
"prometheusDesc": "提供 Prometheus 計量的路由"
|
||||
},
|
||||
"config": {
|
||||
"connection": "連線",
|
||||
"hostDesc": "用戶端將連線的公開主機名稱 (變更後會使目前組態設定檔失效)",
|
||||
"portDesc": "用戶端將連線的公開 UDP 連接埠 (變更後會使目前組態設定檔失效,您可能也需要變更介面連接埠)",
|
||||
"allowedIpsDesc": "用戶端將使用的允許 IP (全域設定)",
|
||||
"dnsDesc": "用戶端將使用的 DNS 伺服器 (全域設定)",
|
||||
"mtuDesc": "用戶端使用的 MTU (僅適用於新用戶端)",
|
||||
"persistentKeepaliveDesc": "傳送 keepalive 的間隔秒數。以 0 表示停用 (僅適用於新用戶端)",
|
||||
"suggest": "建議",
|
||||
"suggestDesc": "為主機欄位選擇 IP 位址或主機名稱"
|
||||
},
|
||||
"interface": {
|
||||
"cidrSuccess": "已變更 CIDR",
|
||||
"device": "裝置",
|
||||
"deviceDesc": "用於轉送 WireGuard 流量的乙太網路裝置",
|
||||
"mtuDesc": "WireGuard 將使用的 MTU",
|
||||
"portDesc": "WireGuard 監聽的 UDP 連接埠 (您可能也需要變更連接埠組態設定檔)",
|
||||
"changeCidr": "變更 CIDR",
|
||||
"restart": "重新啟動介面",
|
||||
"restartDesc": "重新啟動 WireGuard 介面",
|
||||
"restartWarn": "您確定要重新啟動介面嗎? 所有用戶端將被中斷連線。",
|
||||
"restartSuccess": "介面已重新啟動"
|
||||
},
|
||||
"introText": "歡迎使用管理面板。\n\n您可在此管理一般、組態、介面與 Hook 設定。\n\n請從側邊欄選擇任一項目開始。"
|
||||
},
|
||||
"zod": {
|
||||
"generic": {
|
||||
"required": "{0} 為必填項目",
|
||||
"validNumber": "{0} 必須為有效的數字",
|
||||
"validString": "{0} 必須為有效的字串",
|
||||
"validBoolean": "{0} 必須為有效的布林值",
|
||||
"validArray": "{0} 必須為有效的陣列",
|
||||
"stringMin": "{0} 至少需要 {1} 個字元",
|
||||
"numberMin": "{0} 不能小於 {1}"
|
||||
},
|
||||
"client": {
|
||||
"id": "用戶端 ID",
|
||||
"name": "名稱",
|
||||
"expiresAt": "到期時間",
|
||||
"address4": "IPv4 位址",
|
||||
"address6": "IPv6 位址",
|
||||
"serverAllowedIps": "伺服器允許的 IP"
|
||||
},
|
||||
"user": {
|
||||
"username": "使用者名稱",
|
||||
"password": "密碼",
|
||||
"remember": "記住我",
|
||||
"name": "名稱",
|
||||
"email": "電子郵件",
|
||||
"emailInvalid": "電子郵件格式無效",
|
||||
"passwordMatch": "密碼必須一致",
|
||||
"totpEnable": "啟用 TOTP",
|
||||
"totpEnableTrue": "必須啟用 TOTP",
|
||||
"totpCode": "TOTP 驗證碼"
|
||||
},
|
||||
"userConfig": {
|
||||
"host": "主機"
|
||||
},
|
||||
"general": {
|
||||
"sessionTimeout": "工作階段逾時",
|
||||
"metricsEnabled": "計量",
|
||||
"metricsPassword": "計量密碼"
|
||||
},
|
||||
"interface": {
|
||||
"cidr": "CIDR",
|
||||
"device": "裝置",
|
||||
"cidrValid": "CIDR 格式無效"
|
||||
},
|
||||
"otl": "單次連結",
|
||||
"stringMalformed": "字串格式錯誤",
|
||||
"body": "Body 必須為有效的物件",
|
||||
"hook": "Hook",
|
||||
"enabled": "啟用",
|
||||
"mtu": "MTU",
|
||||
"port": "連接埠",
|
||||
"persistentKeepalive": "保持連線",
|
||||
"address": "IP 位址",
|
||||
"dns": "DNS",
|
||||
"allowedIps": "允許的 IP",
|
||||
"file": "檔案"
|
||||
},
|
||||
"hooks": {
|
||||
"preUp": "PreUp",
|
||||
"postUp": "PostUp",
|
||||
"preDown": "PreDown",
|
||||
"postDown": "PostDown"
|
||||
},
|
||||
"copy": {
|
||||
"notSupported": "無法複製",
|
||||
"copied": "已複製!",
|
||||
"failed": "複製失敗",
|
||||
"copy": "複製"
|
||||
},
|
||||
"awg": {
|
||||
"jCLabel": "填充封包數量 (Jc)",
|
||||
"jCDescription": "要傳送的填充封包數量 (1-128,建議: 4-12)",
|
||||
"jMinLabel": "填充封包最小大小 (Jmin)",
|
||||
"jMinDescription": "填充封包的最小大小 (0-1279*,建議: 8,必須小於 Jmax)",
|
||||
"jMaxLabel": "填充封包最大大小 (Jmax)",
|
||||
"jMaxDescription": "填充封包的最大大小 (1-1280*,建議: 80,必須大於 Jmin)",
|
||||
"s1Label": "初始封包填充大小 (S1)",
|
||||
"s1Description": "初始封包填充大小 (0-1132 [1280* - 148 = 1132],建議: 15-150,S1+56 ≠ S2)",
|
||||
"s2Label": "回應封包填充大小 (S2)",
|
||||
"s2Description": "回應封包填充大小 (0-1188 [1280* - 92 = 1188],建議: 15-150)",
|
||||
"s3Label": "Cookie 回覆封包填充大小 (S3)",
|
||||
"s3Description": "Cookie 回覆封包填充大小",
|
||||
"s4Label": "傳輸封包填充大小 (S4)",
|
||||
"s4Description": "傳輸封包填充大小",
|
||||
"i1Label": "特殊填充封包 1 (I1)",
|
||||
"i1Description": "協定模仿封包 (16 進位格式): <b 0x...>",
|
||||
"i2Label": "特殊填充封包 2 (I2)",
|
||||
"i2Description": "協定模仿封包 (16 進位格式): <b 0x...>",
|
||||
"i3Label": "特殊填充封包 3 (I3)",
|
||||
"i3Description": "協定模仿封包 (16 進位格式): <b 0x...>",
|
||||
"i4Label": "特殊填充封包 4 (I4)",
|
||||
"i4Description": "協定模仿封包 (16 進位格式): <b 0x...>",
|
||||
"i5Label": "特殊填充封包 5 (I5)",
|
||||
"i5Description": "協定模仿封包 (16 進位格式): <b 0x...>",
|
||||
"h1Label": "初始特徵標頭 (H1)",
|
||||
"h1Description": "初始封包標頭值 (5-2147483647,必須與 H2-H4 不同)",
|
||||
"h2Label": "回應特徵標頭 (H2)",
|
||||
"h2Description": "回應封包標頭值 (5-2147483647,必須與 H1、H3、H4 不同)",
|
||||
"h3Label": "Cookie 回覆特徵標頭 (H3)",
|
||||
"h3Description": "Cookie 回覆封包標頭值 (5-2147483647,必須與 H1、H2、H4 不同)",
|
||||
"h4Label": "傳輸特徵標頭 (H4)",
|
||||
"h4Description": "傳輸封包標頭值 (5-2147483647,必須與 H1-H3 不同)",
|
||||
"mtuNote": "數值取決於 MTU",
|
||||
"obfuscationParameters": "AmneziaWG 混淆參數"
|
||||
}
|
||||
}
|
||||
+66
-19
@@ -13,6 +13,7 @@ export default defineNuxtConfig({
|
||||
'@pinia/nuxt',
|
||||
'@eschricht/nuxt-color-mode',
|
||||
'radix-vue/nuxt',
|
||||
'@vueuse/nuxt',
|
||||
'@nuxt/eslint',
|
||||
],
|
||||
colorMode: {
|
||||
@@ -26,39 +27,88 @@ export default defineNuxtConfig({
|
||||
experimental: {
|
||||
localeDetector: './localeDetector.ts',
|
||||
},
|
||||
// https://wg-easy.github.io/wg-easy/latest/contributing/translation/
|
||||
locales: [
|
||||
{
|
||||
// same as i18n.config.ts
|
||||
code: 'en',
|
||||
// BCP 47 language tag
|
||||
language: 'en-US',
|
||||
name: 'English',
|
||||
},
|
||||
{
|
||||
code: 'uk',
|
||||
language: 'uk-UA',
|
||||
name: 'Українська',
|
||||
},
|
||||
{
|
||||
code: 'fr',
|
||||
language: 'fr-FR',
|
||||
name: 'Français',
|
||||
},
|
||||
{
|
||||
code: 'de',
|
||||
language: 'de-DE',
|
||||
name: 'Deutsch',
|
||||
},
|
||||
{
|
||||
code: 'zh-HK',
|
||||
language: 'zh-HK',
|
||||
name: '繁體中文(香港)',
|
||||
code: 'es',
|
||||
language: 'es-ES',
|
||||
name: 'Español',
|
||||
},
|
||||
{
|
||||
code: 'it',
|
||||
language: 'it-IT',
|
||||
name: 'Italiano',
|
||||
},
|
||||
{
|
||||
code: 'fr',
|
||||
language: 'fr-FR',
|
||||
name: 'Français',
|
||||
},
|
||||
{
|
||||
code: 'ko',
|
||||
language: 'ko-KR',
|
||||
name: '한국어',
|
||||
},
|
||||
{
|
||||
code: 'ru',
|
||||
language: 'ru-RU',
|
||||
name: 'Русский',
|
||||
},
|
||||
{
|
||||
code: 'uk',
|
||||
language: 'uk-UA',
|
||||
name: 'Українська',
|
||||
},
|
||||
{
|
||||
code: 'zh-CN',
|
||||
language: 'zh-CN',
|
||||
name: '简体中文',
|
||||
},
|
||||
{
|
||||
code: 'zh-HK',
|
||||
language: 'zh-HK',
|
||||
name: '繁體中文(香港)',
|
||||
},
|
||||
{
|
||||
code: 'zh-TW',
|
||||
language: 'zh-TW',
|
||||
name: '正體中文 (台灣)',
|
||||
},
|
||||
{
|
||||
code: 'pl',
|
||||
language: 'pl-PL',
|
||||
name: 'Polski',
|
||||
},
|
||||
{
|
||||
code: 'pt-BR',
|
||||
language: 'pt-BR',
|
||||
name: 'Português (Brasil)',
|
||||
},
|
||||
{
|
||||
code: 'tr',
|
||||
language: 'tr-TR',
|
||||
name: 'Türkçe',
|
||||
},
|
||||
{
|
||||
code: 'bn',
|
||||
language: 'bn-BD',
|
||||
name: 'বাংলা',
|
||||
},
|
||||
{
|
||||
code: 'id',
|
||||
language: 'id-ID',
|
||||
name: 'Bahasa Indonesia',
|
||||
},
|
||||
],
|
||||
defaultLocale: 'en',
|
||||
vueI18n: './i18n.config.ts',
|
||||
@@ -66,15 +116,12 @@ export default defineNuxtConfig({
|
||||
detectBrowserLanguage: {
|
||||
useCookie: true,
|
||||
},
|
||||
bundle: {
|
||||
optimizeTranslationDirective: false,
|
||||
},
|
||||
},
|
||||
nitro: {
|
||||
esbuild: {
|
||||
options: {
|
||||
// to support big int
|
||||
target: 'es2020',
|
||||
target: 'node20',
|
||||
},
|
||||
},
|
||||
alias: {
|
||||
|
||||
+34
-32
@@ -1,6 +1,6 @@
|
||||
{
|
||||
"name": "wg-easy",
|
||||
"version": "15.1.0",
|
||||
"version": "15.2.0",
|
||||
"description": "The easiest way to run WireGuard VPN + Web-based Admin UI.",
|
||||
"private": true,
|
||||
"type": "module",
|
||||
@@ -20,52 +20,54 @@
|
||||
"cli:dev": "tsx cli/index.ts"
|
||||
},
|
||||
"dependencies": {
|
||||
"@eschricht/nuxt-color-mode": "^1.1.5",
|
||||
"@eschricht/nuxt-color-mode": "^1.2.0",
|
||||
"@heroicons/vue": "^2.2.0",
|
||||
"@libsql/client": "^0.15.9",
|
||||
"@nuxtjs/i18n": "^9.5.6",
|
||||
"@libsql/client": "^0.17.0",
|
||||
"@nuxtjs/i18n": "^10.2.1",
|
||||
"@nuxtjs/tailwindcss": "^6.14.0",
|
||||
"@phc/format": "^1.0.0",
|
||||
"@pinia/nuxt": "^0.11.1",
|
||||
"@tailwindcss/forms": "^0.5.10",
|
||||
"apexcharts": "^4.7.0",
|
||||
"argon2": "^0.43.0",
|
||||
"@pinia/nuxt": "^0.11.3",
|
||||
"@tailwindcss/forms": "^0.5.11",
|
||||
"@vueuse/core": "^14.1.0",
|
||||
"@vueuse/nuxt": "^14.1.0",
|
||||
"apexcharts": "^5.3.6",
|
||||
"argon2": "^0.44.0",
|
||||
"cidr-tools": "^11.0.3",
|
||||
"citty": "^0.1.6",
|
||||
"consola": "^3.4.2",
|
||||
"crc-32": "^1.2.2",
|
||||
"debug": "^4.4.1",
|
||||
"drizzle-orm": "^0.44.2",
|
||||
"ip-bigint": "^8.2.1",
|
||||
"is-cidr": "^5.1.1",
|
||||
"debug": "^4.4.3",
|
||||
"drizzle-orm": "^0.45.1",
|
||||
"ip-bigint": "^8.2.2",
|
||||
"is-cidr": "^6.0.1",
|
||||
"is-ip": "^5.0.1",
|
||||
"js-sha256": "^0.11.1",
|
||||
"nuxt": "^3.17.5",
|
||||
"otpauth": "^9.4.0",
|
||||
"pinia": "^3.0.3",
|
||||
"qr": "^0.5.0",
|
||||
"nuxt": "^3.20.2",
|
||||
"otpauth": "^9.4.1",
|
||||
"pinia": "^3.0.4",
|
||||
"qr": "^0.5.4",
|
||||
"radix-vue": "^1.9.17",
|
||||
"semver": "^7.7.2",
|
||||
"tailwindcss": "^3.4.17",
|
||||
"semver": "^7.7.3",
|
||||
"tailwindcss": "^3.4.19",
|
||||
"timeago.js": "^4.0.2",
|
||||
"vue": "latest",
|
||||
"vue3-apexcharts": "^1.8.0",
|
||||
"zod": "^3.25.67"
|
||||
"vue3-apexcharts": "^1.10.0",
|
||||
"zod": "^4.3.5"
|
||||
},
|
||||
"devDependencies": {
|
||||
"@nuxt/eslint": "^1.4.1",
|
||||
"@nuxt/eslint": "^1.12.1",
|
||||
"@types/debug": "^4.1.12",
|
||||
"@types/phc__format": "^1.0.1",
|
||||
"@types/semver": "^7.7.0",
|
||||
"drizzle-kit": "^0.31.4",
|
||||
"esbuild": "^0.25.5",
|
||||
"eslint": "^9.30.0",
|
||||
"eslint-config-prettier": "^10.1.5",
|
||||
"prettier": "^3.6.2",
|
||||
"prettier-plugin-tailwindcss": "^0.6.13",
|
||||
"tsx": "^4.20.3",
|
||||
"typescript": "^5.8.3",
|
||||
"vue-tsc": "^2.2.10"
|
||||
"@types/semver": "^7.7.1",
|
||||
"drizzle-kit": "^0.31.8",
|
||||
"esbuild": "^0.27.2",
|
||||
"eslint": "^9.39.2",
|
||||
"eslint-config-prettier": "^10.1.8",
|
||||
"prettier": "^3.7.4",
|
||||
"prettier-plugin-tailwindcss": "^0.7.2",
|
||||
"tsx": "^4.21.0",
|
||||
"typescript": "^5.9.3",
|
||||
"vue-tsc": "^3.2.2"
|
||||
},
|
||||
"packageManager": "pnpm@10.12.4"
|
||||
"packageManager": "pnpm@10.28.0"
|
||||
}
|
||||
|
||||
Generated
+4072
-3837
File diff suppressed because it is too large
Load Diff
@@ -19,19 +19,14 @@ export default definePermissionEventHandler(
|
||||
}
|
||||
|
||||
const config = await WireGuard.getClientConfiguration({ clientId });
|
||||
const configName = client.name
|
||||
.replace(/[^a-zA-Z0-9_=+.-]/g, '-')
|
||||
.replace(/(-{2,}|-$)/g, '-')
|
||||
.replace(/-$/, '')
|
||||
.substring(0, 32);
|
||||
|
||||
setHeader(
|
||||
event,
|
||||
'Content-Disposition',
|
||||
`attachment; filename="${configName || clientId}.conf"`
|
||||
`attachment; filename="${WireGuard.cleanClientFilename(client.name) || clientId}.conf"`
|
||||
);
|
||||
|
||||
setHeader(event, 'Content-Type', 'text/plain');
|
||||
setHeader(event, 'Content-Type', 'application/octet-stream');
|
||||
return config;
|
||||
}
|
||||
);
|
||||
|
||||
@@ -18,6 +18,13 @@ export default definePermissionEventHandler(
|
||||
statusMessage: 'Client not found',
|
||||
});
|
||||
}
|
||||
return result;
|
||||
|
||||
// data can be undefined if the client is disabled
|
||||
const data = await WireGuard.dumpByPublicKey(result.publicKey);
|
||||
|
||||
return {
|
||||
...result,
|
||||
endpoint: data?.endpoint,
|
||||
};
|
||||
}
|
||||
);
|
||||
|
||||
@@ -1,6 +1,17 @@
|
||||
export default definePermissionEventHandler('clients', 'custom', ({ user }) => {
|
||||
if (user.role === roles.ADMIN) {
|
||||
return WireGuard.getAllClients();
|
||||
import { ClientQuerySchema } from '#db/repositories/client/types';
|
||||
|
||||
export default definePermissionEventHandler(
|
||||
'clients',
|
||||
'custom',
|
||||
async ({ event, user }) => {
|
||||
const { filter } = await getValidatedQuery(
|
||||
event,
|
||||
validateZod(ClientQuerySchema, event)
|
||||
);
|
||||
|
||||
if (user.role === roles.ADMIN) {
|
||||
return WireGuard.getAllClients(filter);
|
||||
}
|
||||
return WireGuard.getClientsForUser(user.id, filter);
|
||||
}
|
||||
return WireGuard.getClientsForUser(user.id);
|
||||
});
|
||||
);
|
||||
|
||||
@@ -9,8 +9,10 @@ export default definePermissionEventHandler(
|
||||
validateZod(ClientCreateSchema, event)
|
||||
);
|
||||
|
||||
await Database.clients.create({ name, expiresAt });
|
||||
const result = await Database.clients.create({ name, expiresAt });
|
||||
await WireGuard.saveConfig();
|
||||
return { success: true };
|
||||
|
||||
const clientId = result[0]!.clientId;
|
||||
return { success: true, clientId };
|
||||
}
|
||||
);
|
||||
|
||||
@@ -4,10 +4,13 @@ export default defineEventHandler(async () => {
|
||||
const latestRelease = await cachedFetchLatestRelease();
|
||||
const updateAvailable = gt(latestRelease.version, RELEASE);
|
||||
const insecure = WG_ENV.INSECURE;
|
||||
const isAwg = WG_ENV.WG_EXECUTABLE === 'awg';
|
||||
|
||||
return {
|
||||
currentRelease: RELEASE,
|
||||
latestRelease: latestRelease,
|
||||
updateAvailable,
|
||||
insecure,
|
||||
isAwg,
|
||||
};
|
||||
});
|
||||
|
||||
@@ -0,0 +1,32 @@
|
||||
ALTER TABLE `clients_table` ADD `j_c` integer;--> statement-breakpoint
|
||||
ALTER TABLE `clients_table` ADD `j_min` integer;--> statement-breakpoint
|
||||
ALTER TABLE `clients_table` ADD `j_max` integer;--> statement-breakpoint
|
||||
ALTER TABLE `clients_table` ADD `i1` text;--> statement-breakpoint
|
||||
ALTER TABLE `clients_table` ADD `i2` text;--> statement-breakpoint
|
||||
ALTER TABLE `clients_table` ADD `i3` text;--> statement-breakpoint
|
||||
ALTER TABLE `clients_table` ADD `i4` text;--> statement-breakpoint
|
||||
ALTER TABLE `clients_table` ADD `i5` text;--> statement-breakpoint
|
||||
ALTER TABLE `interfaces_table` ADD `j_c` integer DEFAULT 7;--> statement-breakpoint
|
||||
ALTER TABLE `interfaces_table` ADD `j_min` integer DEFAULT 10;--> statement-breakpoint
|
||||
ALTER TABLE `interfaces_table` ADD `j_max` integer DEFAULT 1000;--> statement-breakpoint
|
||||
ALTER TABLE `interfaces_table` ADD `s1` integer DEFAULT 128;--> statement-breakpoint
|
||||
ALTER TABLE `interfaces_table` ADD `s2` integer DEFAULT 56;--> statement-breakpoint
|
||||
ALTER TABLE `interfaces_table` ADD `s3` integer;--> statement-breakpoint
|
||||
ALTER TABLE `interfaces_table` ADD `s4` integer;--> statement-breakpoint
|
||||
ALTER TABLE `interfaces_table` ADD `i1` text;--> statement-breakpoint
|
||||
ALTER TABLE `interfaces_table` ADD `i2` text;--> statement-breakpoint
|
||||
ALTER TABLE `interfaces_table` ADD `i3` text;--> statement-breakpoint
|
||||
ALTER TABLE `interfaces_table` ADD `i4` text;--> statement-breakpoint
|
||||
ALTER TABLE `interfaces_table` ADD `i5` text;--> statement-breakpoint
|
||||
ALTER TABLE `interfaces_table` ADD `h1` integer DEFAULT 0;--> statement-breakpoint
|
||||
ALTER TABLE `interfaces_table` ADD `h2` integer DEFAULT 0;--> statement-breakpoint
|
||||
ALTER TABLE `interfaces_table` ADD `h3` integer DEFAULT 0;--> statement-breakpoint
|
||||
ALTER TABLE `interfaces_table` ADD `h4` integer DEFAULT 0;--> statement-breakpoint
|
||||
ALTER TABLE `user_configs_table` ADD `default_j_c` integer DEFAULT 7;--> statement-breakpoint
|
||||
ALTER TABLE `user_configs_table` ADD `default_j_min` integer DEFAULT 10;--> statement-breakpoint
|
||||
ALTER TABLE `user_configs_table` ADD `default_j_max` integer DEFAULT 1000;--> statement-breakpoint
|
||||
ALTER TABLE `user_configs_table` ADD `default_i1` text;--> statement-breakpoint
|
||||
ALTER TABLE `user_configs_table` ADD `default_i2` text;--> statement-breakpoint
|
||||
ALTER TABLE `user_configs_table` ADD `default_i3` text;--> statement-breakpoint
|
||||
ALTER TABLE `user_configs_table` ADD `default_i4` text;--> statement-breakpoint
|
||||
ALTER TABLE `user_configs_table` ADD `default_i5` text;
|
||||
@@ -0,0 +1,976 @@
|
||||
{
|
||||
"version": "6",
|
||||
"dialect": "sqlite",
|
||||
"id": "e09bc17a-dab6-45a3-a09c-57af222b08fb",
|
||||
"prevId": "78de2e52-c4a8-4900-86c5-92f34739623a",
|
||||
"tables": {
|
||||
"clients_table": {
|
||||
"name": "clients_table",
|
||||
"columns": {
|
||||
"id": {
|
||||
"name": "id",
|
||||
"type": "integer",
|
||||
"primaryKey": true,
|
||||
"notNull": true,
|
||||
"autoincrement": true
|
||||
},
|
||||
"user_id": {
|
||||
"name": "user_id",
|
||||
"type": "integer",
|
||||
"primaryKey": false,
|
||||
"notNull": true,
|
||||
"autoincrement": false
|
||||
},
|
||||
"interface_id": {
|
||||
"name": "interface_id",
|
||||
"type": "text",
|
||||
"primaryKey": false,
|
||||
"notNull": true,
|
||||
"autoincrement": false
|
||||
},
|
||||
"name": {
|
||||
"name": "name",
|
||||
"type": "text",
|
||||
"primaryKey": false,
|
||||
"notNull": true,
|
||||
"autoincrement": false
|
||||
},
|
||||
"ipv4_address": {
|
||||
"name": "ipv4_address",
|
||||
"type": "text",
|
||||
"primaryKey": false,
|
||||
"notNull": true,
|
||||
"autoincrement": false
|
||||
},
|
||||
"ipv6_address": {
|
||||
"name": "ipv6_address",
|
||||
"type": "text",
|
||||
"primaryKey": false,
|
||||
"notNull": true,
|
||||
"autoincrement": false
|
||||
},
|
||||
"pre_up": {
|
||||
"name": "pre_up",
|
||||
"type": "text",
|
||||
"primaryKey": false,
|
||||
"notNull": true,
|
||||
"autoincrement": false,
|
||||
"default": "''"
|
||||
},
|
||||
"post_up": {
|
||||
"name": "post_up",
|
||||
"type": "text",
|
||||
"primaryKey": false,
|
||||
"notNull": true,
|
||||
"autoincrement": false,
|
||||
"default": "''"
|
||||
},
|
||||
"pre_down": {
|
||||
"name": "pre_down",
|
||||
"type": "text",
|
||||
"primaryKey": false,
|
||||
"notNull": true,
|
||||
"autoincrement": false,
|
||||
"default": "''"
|
||||
},
|
||||
"post_down": {
|
||||
"name": "post_down",
|
||||
"type": "text",
|
||||
"primaryKey": false,
|
||||
"notNull": true,
|
||||
"autoincrement": false,
|
||||
"default": "''"
|
||||
},
|
||||
"private_key": {
|
||||
"name": "private_key",
|
||||
"type": "text",
|
||||
"primaryKey": false,
|
||||
"notNull": true,
|
||||
"autoincrement": false
|
||||
},
|
||||
"public_key": {
|
||||
"name": "public_key",
|
||||
"type": "text",
|
||||
"primaryKey": false,
|
||||
"notNull": true,
|
||||
"autoincrement": false
|
||||
},
|
||||
"pre_shared_key": {
|
||||
"name": "pre_shared_key",
|
||||
"type": "text",
|
||||
"primaryKey": false,
|
||||
"notNull": true,
|
||||
"autoincrement": false
|
||||
},
|
||||
"expires_at": {
|
||||
"name": "expires_at",
|
||||
"type": "text",
|
||||
"primaryKey": false,
|
||||
"notNull": false,
|
||||
"autoincrement": false
|
||||
},
|
||||
"allowed_ips": {
|
||||
"name": "allowed_ips",
|
||||
"type": "text",
|
||||
"primaryKey": false,
|
||||
"notNull": false,
|
||||
"autoincrement": false
|
||||
},
|
||||
"server_allowed_ips": {
|
||||
"name": "server_allowed_ips",
|
||||
"type": "text",
|
||||
"primaryKey": false,
|
||||
"notNull": true,
|
||||
"autoincrement": false
|
||||
},
|
||||
"persistent_keepalive": {
|
||||
"name": "persistent_keepalive",
|
||||
"type": "integer",
|
||||
"primaryKey": false,
|
||||
"notNull": true,
|
||||
"autoincrement": false
|
||||
},
|
||||
"mtu": {
|
||||
"name": "mtu",
|
||||
"type": "integer",
|
||||
"primaryKey": false,
|
||||
"notNull": true,
|
||||
"autoincrement": false
|
||||
},
|
||||
"j_c": {
|
||||
"name": "j_c",
|
||||
"type": "integer",
|
||||
"primaryKey": false,
|
||||
"notNull": false,
|
||||
"autoincrement": false
|
||||
},
|
||||
"j_min": {
|
||||
"name": "j_min",
|
||||
"type": "integer",
|
||||
"primaryKey": false,
|
||||
"notNull": false,
|
||||
"autoincrement": false
|
||||
},
|
||||
"j_max": {
|
||||
"name": "j_max",
|
||||
"type": "integer",
|
||||
"primaryKey": false,
|
||||
"notNull": false,
|
||||
"autoincrement": false
|
||||
},
|
||||
"i1": {
|
||||
"name": "i1",
|
||||
"type": "text",
|
||||
"primaryKey": false,
|
||||
"notNull": false,
|
||||
"autoincrement": false
|
||||
},
|
||||
"i2": {
|
||||
"name": "i2",
|
||||
"type": "text",
|
||||
"primaryKey": false,
|
||||
"notNull": false,
|
||||
"autoincrement": false
|
||||
},
|
||||
"i3": {
|
||||
"name": "i3",
|
||||
"type": "text",
|
||||
"primaryKey": false,
|
||||
"notNull": false,
|
||||
"autoincrement": false
|
||||
},
|
||||
"i4": {
|
||||
"name": "i4",
|
||||
"type": "text",
|
||||
"primaryKey": false,
|
||||
"notNull": false,
|
||||
"autoincrement": false
|
||||
},
|
||||
"i5": {
|
||||
"name": "i5",
|
||||
"type": "text",
|
||||
"primaryKey": false,
|
||||
"notNull": false,
|
||||
"autoincrement": false
|
||||
},
|
||||
"dns": {
|
||||
"name": "dns",
|
||||
"type": "text",
|
||||
"primaryKey": false,
|
||||
"notNull": false,
|
||||
"autoincrement": false
|
||||
},
|
||||
"server_endpoint": {
|
||||
"name": "server_endpoint",
|
||||
"type": "text",
|
||||
"primaryKey": false,
|
||||
"notNull": false,
|
||||
"autoincrement": false
|
||||
},
|
||||
"enabled": {
|
||||
"name": "enabled",
|
||||
"type": "integer",
|
||||
"primaryKey": false,
|
||||
"notNull": true,
|
||||
"autoincrement": false
|
||||
},
|
||||
"created_at": {
|
||||
"name": "created_at",
|
||||
"type": "text",
|
||||
"primaryKey": false,
|
||||
"notNull": true,
|
||||
"autoincrement": false,
|
||||
"default": "(CURRENT_TIMESTAMP)"
|
||||
},
|
||||
"updated_at": {
|
||||
"name": "updated_at",
|
||||
"type": "text",
|
||||
"primaryKey": false,
|
||||
"notNull": true,
|
||||
"autoincrement": false,
|
||||
"default": "(CURRENT_TIMESTAMP)"
|
||||
}
|
||||
},
|
||||
"indexes": {
|
||||
"clients_table_ipv4_address_unique": {
|
||||
"name": "clients_table_ipv4_address_unique",
|
||||
"columns": [
|
||||
"ipv4_address"
|
||||
],
|
||||
"isUnique": true
|
||||
},
|
||||
"clients_table_ipv6_address_unique": {
|
||||
"name": "clients_table_ipv6_address_unique",
|
||||
"columns": [
|
||||
"ipv6_address"
|
||||
],
|
||||
"isUnique": true
|
||||
}
|
||||
},
|
||||
"foreignKeys": {
|
||||
"clients_table_user_id_users_table_id_fk": {
|
||||
"name": "clients_table_user_id_users_table_id_fk",
|
||||
"tableFrom": "clients_table",
|
||||
"tableTo": "users_table",
|
||||
"columnsFrom": [
|
||||
"user_id"
|
||||
],
|
||||
"columnsTo": [
|
||||
"id"
|
||||
],
|
||||
"onDelete": "restrict",
|
||||
"onUpdate": "cascade"
|
||||
},
|
||||
"clients_table_interface_id_interfaces_table_name_fk": {
|
||||
"name": "clients_table_interface_id_interfaces_table_name_fk",
|
||||
"tableFrom": "clients_table",
|
||||
"tableTo": "interfaces_table",
|
||||
"columnsFrom": [
|
||||
"interface_id"
|
||||
],
|
||||
"columnsTo": [
|
||||
"name"
|
||||
],
|
||||
"onDelete": "cascade",
|
||||
"onUpdate": "cascade"
|
||||
}
|
||||
},
|
||||
"compositePrimaryKeys": {},
|
||||
"uniqueConstraints": {},
|
||||
"checkConstraints": {}
|
||||
},
|
||||
"general_table": {
|
||||
"name": "general_table",
|
||||
"columns": {
|
||||
"id": {
|
||||
"name": "id",
|
||||
"type": "integer",
|
||||
"primaryKey": true,
|
||||
"notNull": true,
|
||||
"autoincrement": false,
|
||||
"default": 1
|
||||
},
|
||||
"setup_step": {
|
||||
"name": "setup_step",
|
||||
"type": "integer",
|
||||
"primaryKey": false,
|
||||
"notNull": true,
|
||||
"autoincrement": false
|
||||
},
|
||||
"session_password": {
|
||||
"name": "session_password",
|
||||
"type": "text",
|
||||
"primaryKey": false,
|
||||
"notNull": true,
|
||||
"autoincrement": false
|
||||
},
|
||||
"session_timeout": {
|
||||
"name": "session_timeout",
|
||||
"type": "integer",
|
||||
"primaryKey": false,
|
||||
"notNull": true,
|
||||
"autoincrement": false
|
||||
},
|
||||
"metrics_prometheus": {
|
||||
"name": "metrics_prometheus",
|
||||
"type": "integer",
|
||||
"primaryKey": false,
|
||||
"notNull": true,
|
||||
"autoincrement": false
|
||||
},
|
||||
"metrics_json": {
|
||||
"name": "metrics_json",
|
||||
"type": "integer",
|
||||
"primaryKey": false,
|
||||
"notNull": true,
|
||||
"autoincrement": false
|
||||
},
|
||||
"metrics_password": {
|
||||
"name": "metrics_password",
|
||||
"type": "text",
|
||||
"primaryKey": false,
|
||||
"notNull": false,
|
||||
"autoincrement": false
|
||||
},
|
||||
"created_at": {
|
||||
"name": "created_at",
|
||||
"type": "text",
|
||||
"primaryKey": false,
|
||||
"notNull": true,
|
||||
"autoincrement": false,
|
||||
"default": "(CURRENT_TIMESTAMP)"
|
||||
},
|
||||
"updated_at": {
|
||||
"name": "updated_at",
|
||||
"type": "text",
|
||||
"primaryKey": false,
|
||||
"notNull": true,
|
||||
"autoincrement": false,
|
||||
"default": "(CURRENT_TIMESTAMP)"
|
||||
}
|
||||
},
|
||||
"indexes": {},
|
||||
"foreignKeys": {},
|
||||
"compositePrimaryKeys": {},
|
||||
"uniqueConstraints": {},
|
||||
"checkConstraints": {}
|
||||
},
|
||||
"hooks_table": {
|
||||
"name": "hooks_table",
|
||||
"columns": {
|
||||
"id": {
|
||||
"name": "id",
|
||||
"type": "text",
|
||||
"primaryKey": true,
|
||||
"notNull": true,
|
||||
"autoincrement": false
|
||||
},
|
||||
"pre_up": {
|
||||
"name": "pre_up",
|
||||
"type": "text",
|
||||
"primaryKey": false,
|
||||
"notNull": true,
|
||||
"autoincrement": false
|
||||
},
|
||||
"post_up": {
|
||||
"name": "post_up",
|
||||
"type": "text",
|
||||
"primaryKey": false,
|
||||
"notNull": true,
|
||||
"autoincrement": false
|
||||
},
|
||||
"pre_down": {
|
||||
"name": "pre_down",
|
||||
"type": "text",
|
||||
"primaryKey": false,
|
||||
"notNull": true,
|
||||
"autoincrement": false
|
||||
},
|
||||
"post_down": {
|
||||
"name": "post_down",
|
||||
"type": "text",
|
||||
"primaryKey": false,
|
||||
"notNull": true,
|
||||
"autoincrement": false
|
||||
},
|
||||
"created_at": {
|
||||
"name": "created_at",
|
||||
"type": "text",
|
||||
"primaryKey": false,
|
||||
"notNull": true,
|
||||
"autoincrement": false,
|
||||
"default": "(CURRENT_TIMESTAMP)"
|
||||
},
|
||||
"updated_at": {
|
||||
"name": "updated_at",
|
||||
"type": "text",
|
||||
"primaryKey": false,
|
||||
"notNull": true,
|
||||
"autoincrement": false,
|
||||
"default": "(CURRENT_TIMESTAMP)"
|
||||
}
|
||||
},
|
||||
"indexes": {},
|
||||
"foreignKeys": {
|
||||
"hooks_table_id_interfaces_table_name_fk": {
|
||||
"name": "hooks_table_id_interfaces_table_name_fk",
|
||||
"tableFrom": "hooks_table",
|
||||
"tableTo": "interfaces_table",
|
||||
"columnsFrom": [
|
||||
"id"
|
||||
],
|
||||
"columnsTo": [
|
||||
"name"
|
||||
],
|
||||
"onDelete": "cascade",
|
||||
"onUpdate": "cascade"
|
||||
}
|
||||
},
|
||||
"compositePrimaryKeys": {},
|
||||
"uniqueConstraints": {},
|
||||
"checkConstraints": {}
|
||||
},
|
||||
"interfaces_table": {
|
||||
"name": "interfaces_table",
|
||||
"columns": {
|
||||
"name": {
|
||||
"name": "name",
|
||||
"type": "text",
|
||||
"primaryKey": true,
|
||||
"notNull": true,
|
||||
"autoincrement": false
|
||||
},
|
||||
"device": {
|
||||
"name": "device",
|
||||
"type": "text",
|
||||
"primaryKey": false,
|
||||
"notNull": true,
|
||||
"autoincrement": false
|
||||
},
|
||||
"port": {
|
||||
"name": "port",
|
||||
"type": "integer",
|
||||
"primaryKey": false,
|
||||
"notNull": true,
|
||||
"autoincrement": false
|
||||
},
|
||||
"private_key": {
|
||||
"name": "private_key",
|
||||
"type": "text",
|
||||
"primaryKey": false,
|
||||
"notNull": true,
|
||||
"autoincrement": false
|
||||
},
|
||||
"public_key": {
|
||||
"name": "public_key",
|
||||
"type": "text",
|
||||
"primaryKey": false,
|
||||
"notNull": true,
|
||||
"autoincrement": false
|
||||
},
|
||||
"ipv4_cidr": {
|
||||
"name": "ipv4_cidr",
|
||||
"type": "text",
|
||||
"primaryKey": false,
|
||||
"notNull": true,
|
||||
"autoincrement": false
|
||||
},
|
||||
"ipv6_cidr": {
|
||||
"name": "ipv6_cidr",
|
||||
"type": "text",
|
||||
"primaryKey": false,
|
||||
"notNull": true,
|
||||
"autoincrement": false
|
||||
},
|
||||
"mtu": {
|
||||
"name": "mtu",
|
||||
"type": "integer",
|
||||
"primaryKey": false,
|
||||
"notNull": true,
|
||||
"autoincrement": false
|
||||
},
|
||||
"j_c": {
|
||||
"name": "j_c",
|
||||
"type": "integer",
|
||||
"primaryKey": false,
|
||||
"notNull": false,
|
||||
"autoincrement": false,
|
||||
"default": 7
|
||||
},
|
||||
"j_min": {
|
||||
"name": "j_min",
|
||||
"type": "integer",
|
||||
"primaryKey": false,
|
||||
"notNull": false,
|
||||
"autoincrement": false,
|
||||
"default": 10
|
||||
},
|
||||
"j_max": {
|
||||
"name": "j_max",
|
||||
"type": "integer",
|
||||
"primaryKey": false,
|
||||
"notNull": false,
|
||||
"autoincrement": false,
|
||||
"default": 1000
|
||||
},
|
||||
"s1": {
|
||||
"name": "s1",
|
||||
"type": "integer",
|
||||
"primaryKey": false,
|
||||
"notNull": false,
|
||||
"autoincrement": false,
|
||||
"default": 128
|
||||
},
|
||||
"s2": {
|
||||
"name": "s2",
|
||||
"type": "integer",
|
||||
"primaryKey": false,
|
||||
"notNull": false,
|
||||
"autoincrement": false,
|
||||
"default": 56
|
||||
},
|
||||
"s3": {
|
||||
"name": "s3",
|
||||
"type": "integer",
|
||||
"primaryKey": false,
|
||||
"notNull": false,
|
||||
"autoincrement": false
|
||||
},
|
||||
"s4": {
|
||||
"name": "s4",
|
||||
"type": "integer",
|
||||
"primaryKey": false,
|
||||
"notNull": false,
|
||||
"autoincrement": false
|
||||
},
|
||||
"i1": {
|
||||
"name": "i1",
|
||||
"type": "text",
|
||||
"primaryKey": false,
|
||||
"notNull": false,
|
||||
"autoincrement": false
|
||||
},
|
||||
"i2": {
|
||||
"name": "i2",
|
||||
"type": "text",
|
||||
"primaryKey": false,
|
||||
"notNull": false,
|
||||
"autoincrement": false
|
||||
},
|
||||
"i3": {
|
||||
"name": "i3",
|
||||
"type": "text",
|
||||
"primaryKey": false,
|
||||
"notNull": false,
|
||||
"autoincrement": false
|
||||
},
|
||||
"i4": {
|
||||
"name": "i4",
|
||||
"type": "text",
|
||||
"primaryKey": false,
|
||||
"notNull": false,
|
||||
"autoincrement": false
|
||||
},
|
||||
"i5": {
|
||||
"name": "i5",
|
||||
"type": "text",
|
||||
"primaryKey": false,
|
||||
"notNull": false,
|
||||
"autoincrement": false
|
||||
},
|
||||
"h1": {
|
||||
"name": "h1",
|
||||
"type": "integer",
|
||||
"primaryKey": false,
|
||||
"notNull": false,
|
||||
"autoincrement": false,
|
||||
"default": 0
|
||||
},
|
||||
"h2": {
|
||||
"name": "h2",
|
||||
"type": "integer",
|
||||
"primaryKey": false,
|
||||
"notNull": false,
|
||||
"autoincrement": false,
|
||||
"default": 0
|
||||
},
|
||||
"h3": {
|
||||
"name": "h3",
|
||||
"type": "integer",
|
||||
"primaryKey": false,
|
||||
"notNull": false,
|
||||
"autoincrement": false,
|
||||
"default": 0
|
||||
},
|
||||
"h4": {
|
||||
"name": "h4",
|
||||
"type": "integer",
|
||||
"primaryKey": false,
|
||||
"notNull": false,
|
||||
"autoincrement": false,
|
||||
"default": 0
|
||||
},
|
||||
"enabled": {
|
||||
"name": "enabled",
|
||||
"type": "integer",
|
||||
"primaryKey": false,
|
||||
"notNull": true,
|
||||
"autoincrement": false
|
||||
},
|
||||
"created_at": {
|
||||
"name": "created_at",
|
||||
"type": "text",
|
||||
"primaryKey": false,
|
||||
"notNull": true,
|
||||
"autoincrement": false,
|
||||
"default": "(CURRENT_TIMESTAMP)"
|
||||
},
|
||||
"updated_at": {
|
||||
"name": "updated_at",
|
||||
"type": "text",
|
||||
"primaryKey": false,
|
||||
"notNull": true,
|
||||
"autoincrement": false,
|
||||
"default": "(CURRENT_TIMESTAMP)"
|
||||
}
|
||||
},
|
||||
"indexes": {
|
||||
"interfaces_table_port_unique": {
|
||||
"name": "interfaces_table_port_unique",
|
||||
"columns": [
|
||||
"port"
|
||||
],
|
||||
"isUnique": true
|
||||
}
|
||||
},
|
||||
"foreignKeys": {},
|
||||
"compositePrimaryKeys": {},
|
||||
"uniqueConstraints": {},
|
||||
"checkConstraints": {}
|
||||
},
|
||||
"one_time_links_table": {
|
||||
"name": "one_time_links_table",
|
||||
"columns": {
|
||||
"id": {
|
||||
"name": "id",
|
||||
"type": "integer",
|
||||
"primaryKey": true,
|
||||
"notNull": true,
|
||||
"autoincrement": false
|
||||
},
|
||||
"one_time_link": {
|
||||
"name": "one_time_link",
|
||||
"type": "text",
|
||||
"primaryKey": false,
|
||||
"notNull": true,
|
||||
"autoincrement": false
|
||||
},
|
||||
"expires_at": {
|
||||
"name": "expires_at",
|
||||
"type": "text",
|
||||
"primaryKey": false,
|
||||
"notNull": true,
|
||||
"autoincrement": false
|
||||
},
|
||||
"created_at": {
|
||||
"name": "created_at",
|
||||
"type": "text",
|
||||
"primaryKey": false,
|
||||
"notNull": true,
|
||||
"autoincrement": false,
|
||||
"default": "(CURRENT_TIMESTAMP)"
|
||||
},
|
||||
"updated_at": {
|
||||
"name": "updated_at",
|
||||
"type": "text",
|
||||
"primaryKey": false,
|
||||
"notNull": true,
|
||||
"autoincrement": false,
|
||||
"default": "(CURRENT_TIMESTAMP)"
|
||||
}
|
||||
},
|
||||
"indexes": {
|
||||
"one_time_links_table_one_time_link_unique": {
|
||||
"name": "one_time_links_table_one_time_link_unique",
|
||||
"columns": [
|
||||
"one_time_link"
|
||||
],
|
||||
"isUnique": true
|
||||
}
|
||||
},
|
||||
"foreignKeys": {
|
||||
"one_time_links_table_id_clients_table_id_fk": {
|
||||
"name": "one_time_links_table_id_clients_table_id_fk",
|
||||
"tableFrom": "one_time_links_table",
|
||||
"tableTo": "clients_table",
|
||||
"columnsFrom": [
|
||||
"id"
|
||||
],
|
||||
"columnsTo": [
|
||||
"id"
|
||||
],
|
||||
"onDelete": "cascade",
|
||||
"onUpdate": "cascade"
|
||||
}
|
||||
},
|
||||
"compositePrimaryKeys": {},
|
||||
"uniqueConstraints": {},
|
||||
"checkConstraints": {}
|
||||
},
|
||||
"users_table": {
|
||||
"name": "users_table",
|
||||
"columns": {
|
||||
"id": {
|
||||
"name": "id",
|
||||
"type": "integer",
|
||||
"primaryKey": true,
|
||||
"notNull": true,
|
||||
"autoincrement": true
|
||||
},
|
||||
"username": {
|
||||
"name": "username",
|
||||
"type": "text",
|
||||
"primaryKey": false,
|
||||
"notNull": true,
|
||||
"autoincrement": false
|
||||
},
|
||||
"password": {
|
||||
"name": "password",
|
||||
"type": "text",
|
||||
"primaryKey": false,
|
||||
"notNull": true,
|
||||
"autoincrement": false
|
||||
},
|
||||
"email": {
|
||||
"name": "email",
|
||||
"type": "text",
|
||||
"primaryKey": false,
|
||||
"notNull": false,
|
||||
"autoincrement": false
|
||||
},
|
||||
"name": {
|
||||
"name": "name",
|
||||
"type": "text",
|
||||
"primaryKey": false,
|
||||
"notNull": true,
|
||||
"autoincrement": false
|
||||
},
|
||||
"role": {
|
||||
"name": "role",
|
||||
"type": "integer",
|
||||
"primaryKey": false,
|
||||
"notNull": true,
|
||||
"autoincrement": false
|
||||
},
|
||||
"totp_key": {
|
||||
"name": "totp_key",
|
||||
"type": "text",
|
||||
"primaryKey": false,
|
||||
"notNull": false,
|
||||
"autoincrement": false
|
||||
},
|
||||
"totp_verified": {
|
||||
"name": "totp_verified",
|
||||
"type": "integer",
|
||||
"primaryKey": false,
|
||||
"notNull": true,
|
||||
"autoincrement": false
|
||||
},
|
||||
"enabled": {
|
||||
"name": "enabled",
|
||||
"type": "integer",
|
||||
"primaryKey": false,
|
||||
"notNull": true,
|
||||
"autoincrement": false
|
||||
},
|
||||
"created_at": {
|
||||
"name": "created_at",
|
||||
"type": "text",
|
||||
"primaryKey": false,
|
||||
"notNull": true,
|
||||
"autoincrement": false,
|
||||
"default": "(CURRENT_TIMESTAMP)"
|
||||
},
|
||||
"updated_at": {
|
||||
"name": "updated_at",
|
||||
"type": "text",
|
||||
"primaryKey": false,
|
||||
"notNull": true,
|
||||
"autoincrement": false,
|
||||
"default": "(CURRENT_TIMESTAMP)"
|
||||
}
|
||||
},
|
||||
"indexes": {
|
||||
"users_table_username_unique": {
|
||||
"name": "users_table_username_unique",
|
||||
"columns": [
|
||||
"username"
|
||||
],
|
||||
"isUnique": true
|
||||
}
|
||||
},
|
||||
"foreignKeys": {},
|
||||
"compositePrimaryKeys": {},
|
||||
"uniqueConstraints": {},
|
||||
"checkConstraints": {}
|
||||
},
|
||||
"user_configs_table": {
|
||||
"name": "user_configs_table",
|
||||
"columns": {
|
||||
"id": {
|
||||
"name": "id",
|
||||
"type": "text",
|
||||
"primaryKey": true,
|
||||
"notNull": true,
|
||||
"autoincrement": false
|
||||
},
|
||||
"default_mtu": {
|
||||
"name": "default_mtu",
|
||||
"type": "integer",
|
||||
"primaryKey": false,
|
||||
"notNull": true,
|
||||
"autoincrement": false
|
||||
},
|
||||
"default_persistent_keepalive": {
|
||||
"name": "default_persistent_keepalive",
|
||||
"type": "integer",
|
||||
"primaryKey": false,
|
||||
"notNull": true,
|
||||
"autoincrement": false
|
||||
},
|
||||
"default_dns": {
|
||||
"name": "default_dns",
|
||||
"type": "text",
|
||||
"primaryKey": false,
|
||||
"notNull": true,
|
||||
"autoincrement": false
|
||||
},
|
||||
"default_allowed_ips": {
|
||||
"name": "default_allowed_ips",
|
||||
"type": "text",
|
||||
"primaryKey": false,
|
||||
"notNull": true,
|
||||
"autoincrement": false
|
||||
},
|
||||
"default_j_c": {
|
||||
"name": "default_j_c",
|
||||
"type": "integer",
|
||||
"primaryKey": false,
|
||||
"notNull": false,
|
||||
"autoincrement": false,
|
||||
"default": 7
|
||||
},
|
||||
"default_j_min": {
|
||||
"name": "default_j_min",
|
||||
"type": "integer",
|
||||
"primaryKey": false,
|
||||
"notNull": false,
|
||||
"autoincrement": false,
|
||||
"default": 10
|
||||
},
|
||||
"default_j_max": {
|
||||
"name": "default_j_max",
|
||||
"type": "integer",
|
||||
"primaryKey": false,
|
||||
"notNull": false,
|
||||
"autoincrement": false,
|
||||
"default": 1000
|
||||
},
|
||||
"default_i1": {
|
||||
"name": "default_i1",
|
||||
"type": "text",
|
||||
"primaryKey": false,
|
||||
"notNull": false,
|
||||
"autoincrement": false
|
||||
},
|
||||
"default_i2": {
|
||||
"name": "default_i2",
|
||||
"type": "text",
|
||||
"primaryKey": false,
|
||||
"notNull": false,
|
||||
"autoincrement": false
|
||||
},
|
||||
"default_i3": {
|
||||
"name": "default_i3",
|
||||
"type": "text",
|
||||
"primaryKey": false,
|
||||
"notNull": false,
|
||||
"autoincrement": false
|
||||
},
|
||||
"default_i4": {
|
||||
"name": "default_i4",
|
||||
"type": "text",
|
||||
"primaryKey": false,
|
||||
"notNull": false,
|
||||
"autoincrement": false
|
||||
},
|
||||
"default_i5": {
|
||||
"name": "default_i5",
|
||||
"type": "text",
|
||||
"primaryKey": false,
|
||||
"notNull": false,
|
||||
"autoincrement": false
|
||||
},
|
||||
"host": {
|
||||
"name": "host",
|
||||
"type": "text",
|
||||
"primaryKey": false,
|
||||
"notNull": true,
|
||||
"autoincrement": false
|
||||
},
|
||||
"port": {
|
||||
"name": "port",
|
||||
"type": "integer",
|
||||
"primaryKey": false,
|
||||
"notNull": true,
|
||||
"autoincrement": false
|
||||
},
|
||||
"created_at": {
|
||||
"name": "created_at",
|
||||
"type": "text",
|
||||
"primaryKey": false,
|
||||
"notNull": true,
|
||||
"autoincrement": false,
|
||||
"default": "(CURRENT_TIMESTAMP)"
|
||||
},
|
||||
"updated_at": {
|
||||
"name": "updated_at",
|
||||
"type": "text",
|
||||
"primaryKey": false,
|
||||
"notNull": true,
|
||||
"autoincrement": false,
|
||||
"default": "(CURRENT_TIMESTAMP)"
|
||||
}
|
||||
},
|
||||
"indexes": {},
|
||||
"foreignKeys": {
|
||||
"user_configs_table_id_interfaces_table_name_fk": {
|
||||
"name": "user_configs_table_id_interfaces_table_name_fk",
|
||||
"tableFrom": "user_configs_table",
|
||||
"tableTo": "interfaces_table",
|
||||
"columnsFrom": [
|
||||
"id"
|
||||
],
|
||||
"columnsTo": [
|
||||
"name"
|
||||
],
|
||||
"onDelete": "cascade",
|
||||
"onUpdate": "cascade"
|
||||
}
|
||||
},
|
||||
"compositePrimaryKeys": {},
|
||||
"uniqueConstraints": {},
|
||||
"checkConstraints": {}
|
||||
}
|
||||
},
|
||||
"views": {},
|
||||
"enums": {},
|
||||
"_meta": {
|
||||
"schemas": {},
|
||||
"tables": {},
|
||||
"columns": {}
|
||||
},
|
||||
"internal": {
|
||||
"indexes": {}
|
||||
}
|
||||
}
|
||||
@@ -15,6 +15,13 @@
|
||||
"when": 1748427001203,
|
||||
"tag": "0001_classy_the_stranger",
|
||||
"breakpoints": true
|
||||
},
|
||||
{
|
||||
"idx": 2,
|
||||
"version": "6",
|
||||
"when": 1761298328460,
|
||||
"tag": "0002_keen_sleepwalker",
|
||||
"breakpoints": true
|
||||
}
|
||||
]
|
||||
}
|
||||
@@ -36,6 +36,14 @@ export const client = sqliteTable('clients_table', {
|
||||
.notNull(),
|
||||
persistentKeepalive: int('persistent_keepalive').notNull(),
|
||||
mtu: int().notNull(),
|
||||
jC: int('j_c'),
|
||||
jMin: int('j_min'),
|
||||
jMax: int('j_max'),
|
||||
i1: text(),
|
||||
i2: text(),
|
||||
i3: text(),
|
||||
i4: text(),
|
||||
i5: text(),
|
||||
dns: text({ mode: 'json' }).$type<string[]>(),
|
||||
serverEndpoint: text('server_endpoint'),
|
||||
enabled: int({ mode: 'boolean' }).notNull(),
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
import { eq, sql } from 'drizzle-orm';
|
||||
import { eq, sql, or, like, and } from 'drizzle-orm';
|
||||
import { containsCidr, parseCidr } from 'cidr-tools';
|
||||
import { client } from './schema';
|
||||
import type {
|
||||
@@ -18,6 +18,17 @@ function createPreparedStatement(db: DBType) {
|
||||
},
|
||||
})
|
||||
.prepare(),
|
||||
findAllPublic: db.query.client
|
||||
.findMany({
|
||||
with: {
|
||||
oneTimeLink: true,
|
||||
},
|
||||
columns: {
|
||||
privateKey: false,
|
||||
preSharedKey: false,
|
||||
},
|
||||
})
|
||||
.prepare(),
|
||||
findById: db.query.client
|
||||
.findFirst({ where: eq(client.id, sql.placeholder('id')) })
|
||||
.prepare(),
|
||||
@@ -25,6 +36,43 @@ function createPreparedStatement(db: DBType) {
|
||||
.findMany({
|
||||
where: eq(client.userId, sql.placeholder('userId')),
|
||||
with: { oneTimeLink: true },
|
||||
columns: {
|
||||
privateKey: false,
|
||||
preSharedKey: false,
|
||||
},
|
||||
})
|
||||
.prepare(),
|
||||
findAllPublicFiltered: db.query.client
|
||||
.findMany({
|
||||
where: or(
|
||||
like(client.name, sql.placeholder('filter')),
|
||||
like(client.ipv4Address, sql.placeholder('filter')),
|
||||
like(client.ipv6Address, sql.placeholder('filter'))
|
||||
),
|
||||
with: {
|
||||
oneTimeLink: true,
|
||||
},
|
||||
columns: {
|
||||
privateKey: false,
|
||||
preSharedKey: false,
|
||||
},
|
||||
})
|
||||
.prepare(),
|
||||
findByUserIdFiltered: db.query.client
|
||||
.findMany({
|
||||
where: and(
|
||||
eq(client.userId, sql.placeholder('userId')),
|
||||
or(
|
||||
like(client.name, sql.placeholder('filter')),
|
||||
like(client.ipv4Address, sql.placeholder('filter')),
|
||||
like(client.ipv6Address, sql.placeholder('filter'))
|
||||
)
|
||||
),
|
||||
with: { oneTimeLink: true },
|
||||
columns: {
|
||||
privateKey: false,
|
||||
preSharedKey: false,
|
||||
},
|
||||
})
|
||||
.prepare(),
|
||||
toggle: db
|
||||
@@ -57,6 +105,9 @@ export class ClientService {
|
||||
}));
|
||||
}
|
||||
|
||||
/**
|
||||
* Never return values directly from this function. Use {@link getAllPublic} instead.
|
||||
*/
|
||||
async getAll() {
|
||||
const result = await this.#statements.findAll.execute();
|
||||
return result.map((row) => ({
|
||||
@@ -66,6 +117,53 @@ export class ClientService {
|
||||
}));
|
||||
}
|
||||
|
||||
/**
|
||||
* Returns all clients without sensitive data
|
||||
*/
|
||||
async getAllPublic() {
|
||||
const result = await this.#statements.findAllPublic.execute();
|
||||
return result.map((row) => ({
|
||||
...row,
|
||||
createdAt: new Date(row.createdAt),
|
||||
updatedAt: new Date(row.updatedAt),
|
||||
}));
|
||||
}
|
||||
|
||||
/**
|
||||
* Get clients based on user ID and filter conditions
|
||||
*/
|
||||
async getForUserFiltered(userId: ID, filter: string) {
|
||||
const filterPattern = `%${filter.toLowerCase()}%`;
|
||||
|
||||
const result = await this.#statements.findByUserIdFiltered.execute({
|
||||
userId,
|
||||
filter: filterPattern,
|
||||
});
|
||||
|
||||
return result.map((row) => ({
|
||||
...row,
|
||||
createdAt: new Date(row.createdAt),
|
||||
updatedAt: new Date(row.updatedAt),
|
||||
}));
|
||||
}
|
||||
|
||||
/**
|
||||
* Get all clients based on filter conditions without sensitive data
|
||||
*/
|
||||
async getAllPublicFiltered(filter: string) {
|
||||
const filterPattern = `%${filter.toLowerCase()}%`;
|
||||
|
||||
const result = await this.#statements.findAllPublicFiltered.execute({
|
||||
filter: filterPattern,
|
||||
});
|
||||
|
||||
return result.map((row) => ({
|
||||
...row,
|
||||
createdAt: new Date(row.createdAt),
|
||||
updatedAt: new Date(row.updatedAt),
|
||||
}));
|
||||
}
|
||||
|
||||
get(id: ID) {
|
||||
return this.#statements.findById.execute({ id });
|
||||
}
|
||||
@@ -102,7 +200,7 @@ export class ClientService {
|
||||
const ipv6Cidr = parseCidr(clientInterface.ipv6Cidr);
|
||||
const ipv6Address = nextIP(6, ipv6Cidr, clients);
|
||||
|
||||
await tx
|
||||
return await tx
|
||||
.insert(client)
|
||||
.values({
|
||||
name,
|
||||
@@ -116,10 +214,19 @@ export class ClientService {
|
||||
ipv4Address,
|
||||
ipv6Address,
|
||||
mtu: clientConfig.defaultMtu,
|
||||
jC: clientConfig.defaultJC,
|
||||
jMin: clientConfig.defaultJMin,
|
||||
jMax: clientConfig.defaultJMax,
|
||||
i1: clientConfig.defaultI1,
|
||||
i2: clientConfig.defaultI2,
|
||||
i3: clientConfig.defaultI3,
|
||||
i4: clientConfig.defaultI4,
|
||||
i5: clientConfig.defaultI5,
|
||||
persistentKeepalive: clientConfig.defaultPersistentKeepalive,
|
||||
serverAllowedIps: [],
|
||||
enabled: true,
|
||||
})
|
||||
.returning({ clientId: client.id })
|
||||
.execute();
|
||||
});
|
||||
}
|
||||
@@ -179,6 +286,13 @@ export class ClientService {
|
||||
ipv4Address,
|
||||
ipv6Address,
|
||||
mtu: clientConfig.defaultMtu,
|
||||
jC: clientConfig.defaultJC,
|
||||
jMin: clientConfig.defaultJMin,
|
||||
jMax: clientConfig.defaultJMax,
|
||||
i1: clientConfig.defaultI1,
|
||||
i2: clientConfig.defaultI2,
|
||||
i3: clientConfig.defaultI3,
|
||||
i4: clientConfig.defaultI4,
|
||||
allowedIps: clientConfig.defaultAllowedIps,
|
||||
dns: clientConfig.defaultDns,
|
||||
persistentKeepalive: clientConfig.defaultPersistentKeepalive,
|
||||
|
||||
@@ -39,6 +39,8 @@ const address6 = z
|
||||
.min(1, { message: t('zod.client.address6') })
|
||||
.pipe(safeStringRefine);
|
||||
|
||||
const filter = z.string().optional();
|
||||
|
||||
const serverAllowedIps = z.array(AddressSchema, {
|
||||
message: t('zod.client.serverAllowedIps'),
|
||||
});
|
||||
@@ -50,6 +52,12 @@ export const ClientCreateSchema = z.object({
|
||||
|
||||
export type ClientCreateType = z.infer<typeof ClientCreateSchema>;
|
||||
|
||||
export const ClientQuerySchema = z.object({
|
||||
filter: filter,
|
||||
});
|
||||
|
||||
export type ClientQueryType = z.infer<typeof ClientQuerySchema>;
|
||||
|
||||
export const ClientUpdateSchema = schemaForType<UpdateClientType>()(
|
||||
z.object({
|
||||
name: name,
|
||||
@@ -64,6 +72,14 @@ export const ClientUpdateSchema = schemaForType<UpdateClientType>()(
|
||||
allowedIps: AllowedIpsSchema.nullable(),
|
||||
serverAllowedIps: serverAllowedIps,
|
||||
mtu: MtuSchema,
|
||||
jC: JcSchema,
|
||||
jMin: JminSchema,
|
||||
jMax: JmaxSchema,
|
||||
i1: ISchema,
|
||||
i2: ISchema,
|
||||
i3: ISchema,
|
||||
i4: ISchema,
|
||||
i5: ISchema,
|
||||
persistentKeepalive: PersistentKeepaliveSchema,
|
||||
serverEndpoint: AddressSchema.nullable(),
|
||||
dns: DnsSchema.nullable(),
|
||||
@@ -71,7 +87,7 @@ export const ClientUpdateSchema = schemaForType<UpdateClientType>()(
|
||||
);
|
||||
|
||||
// TODO: investigate if coerce is bad
|
||||
const clientId = z.number({ message: t('zod.client.id'), coerce: true });
|
||||
const clientId = z.coerce.number({ message: t('zod.client.id') });
|
||||
|
||||
export const ClientGetSchema = z.object({
|
||||
clientId: clientId,
|
||||
|
||||
@@ -13,6 +13,22 @@ export const wgInterface = sqliteTable('interfaces_table', {
|
||||
ipv4Cidr: text('ipv4_cidr').notNull(),
|
||||
ipv6Cidr: text('ipv6_cidr').notNull(),
|
||||
mtu: int().notNull(),
|
||||
jC: int('j_c').default(7),
|
||||
jMin: int('j_min').default(10),
|
||||
jMax: int('j_max').default(1000),
|
||||
s1: int().default(128),
|
||||
s2: int().default(56),
|
||||
s3: int(),
|
||||
s4: int(),
|
||||
i1: text(),
|
||||
i2: text(),
|
||||
i3: text(),
|
||||
i4: text(),
|
||||
i5: text(),
|
||||
h1: int().default(0),
|
||||
h2: int().default(0),
|
||||
h3: int().default(0),
|
||||
h4: int().default(0),
|
||||
// does nothing yet
|
||||
enabled: int({ mode: 'boolean' }).notNull(),
|
||||
createdAt: text('created_at')
|
||||
|
||||
@@ -31,6 +31,22 @@ export const InterfaceUpdateSchema = schemaForType<InterfaceUpdateType>()(
|
||||
ipv4Cidr: cidr,
|
||||
ipv6Cidr: cidr,
|
||||
mtu: MtuSchema,
|
||||
jC: JcSchema,
|
||||
jMin: JminSchema,
|
||||
jMax: JmaxSchema,
|
||||
s1: SSchema,
|
||||
s2: SSchema,
|
||||
s3: SSchema,
|
||||
s4: SSchema,
|
||||
i1: ISchema,
|
||||
i2: ISchema,
|
||||
i3: ISchema,
|
||||
i4: ISchema,
|
||||
i5: ISchema,
|
||||
h1: HSchema,
|
||||
h2: HSchema,
|
||||
h3: HSchema,
|
||||
h4: HSchema,
|
||||
port: PortSchema,
|
||||
device: device,
|
||||
enabled: EnabledSchema,
|
||||
|
||||
@@ -16,6 +16,12 @@ function createPreparedStatement(db: DBType) {
|
||||
oneTimeLink: sql.placeholder('oneTimeLink'),
|
||||
expiresAt: sql.placeholder('expiresAt'),
|
||||
})
|
||||
.onConflictDoUpdate({
|
||||
target: oneTimeLink.id,
|
||||
set: {
|
||||
expiresAt: sql.placeholder('expiresAt') as never as string,
|
||||
},
|
||||
})
|
||||
.prepare(),
|
||||
erase: db
|
||||
.update(oneTimeLink)
|
||||
|
||||
@@ -18,6 +18,14 @@ export const userConfig = sqliteTable('user_configs_table', {
|
||||
defaultAllowedIps: text('default_allowed_ips', { mode: 'json' })
|
||||
.$type<string[]>()
|
||||
.notNull(),
|
||||
defaultJC: int('default_j_c').default(7),
|
||||
defaultJMin: int('default_j_min').default(10),
|
||||
defaultJMax: int('default_j_max').default(1000),
|
||||
defaultI1: text('default_i1'),
|
||||
defaultI2: text('default_i2'),
|
||||
defaultI3: text('default_i3'),
|
||||
defaultI4: text('default_i4'),
|
||||
defaultI5: text('default_i5'),
|
||||
host: text().notNull(),
|
||||
port: int().notNull(),
|
||||
createdAt: text('created_at')
|
||||
|
||||
@@ -54,7 +54,7 @@ export class UserConfigService {
|
||||
});
|
||||
}
|
||||
|
||||
update(data: UserConfigUpdateType) {
|
||||
update(data: Partial<UserConfigUpdateType>) {
|
||||
return this.#db
|
||||
.update(userConfig)
|
||||
.set(data)
|
||||
|
||||
@@ -26,6 +26,14 @@ export const UserConfigUpdateSchema = schemaForType<UserConfigUpdateType>()(
|
||||
defaultPersistentKeepalive: PersistentKeepaliveSchema,
|
||||
defaultDns: DnsSchema,
|
||||
defaultAllowedIps: AllowedIpsSchema,
|
||||
defaultJC: JcSchema,
|
||||
defaultJMin: JminSchema,
|
||||
defaultJMax: JmaxSchema,
|
||||
defaultI1: ISchema,
|
||||
defaultI2: ISchema,
|
||||
defaultI3: ISchema,
|
||||
defaultI4: ISchema,
|
||||
defaultI5: ISchema,
|
||||
host: host,
|
||||
})
|
||||
);
|
||||
|
||||
@@ -89,13 +89,18 @@ async function initialSetup(db: DBServiceType) {
|
||||
|
||||
if (WG_INITIAL_ENV.DNS) {
|
||||
DB_DEBUG('Setting initial DNS...');
|
||||
const userConfig = await db.userConfigs.get();
|
||||
await db.userConfigs.update({
|
||||
...userConfig,
|
||||
defaultDns: WG_INITIAL_ENV.DNS,
|
||||
});
|
||||
}
|
||||
|
||||
if (WG_INITIAL_ENV.ALLOWED_IPS) {
|
||||
DB_DEBUG('Setting initial Allowed IPs...');
|
||||
await db.userConfigs.update({
|
||||
defaultAllowedIps: WG_INITIAL_ENV.ALLOWED_IPS,
|
||||
});
|
||||
}
|
||||
|
||||
if (
|
||||
WG_INITIAL_ENV.USERNAME &&
|
||||
WG_INITIAL_ENV.PASSWORD &&
|
||||
|
||||
@@ -30,8 +30,8 @@ export default defineEventHandler(async (event) => {
|
||||
setHeader(
|
||||
event,
|
||||
'Content-Disposition',
|
||||
`attachment; filename="${client.name}.conf"`
|
||||
`attachment; filename="${WireGuard.cleanClientFilename(client.name) || client.id}.conf"`
|
||||
);
|
||||
setHeader(event, 'Content-Type', 'text/plain');
|
||||
setHeader(event, 'Content-Type', 'application/octet-stream');
|
||||
return config;
|
||||
});
|
||||
|
||||
@@ -5,6 +5,9 @@ import type { InterfaceType } from '#db/repositories/interface/types';
|
||||
|
||||
const WG_DEBUG = debug('WireGuard');
|
||||
|
||||
const generateRandomHeaderValue = () =>
|
||||
Math.floor(Math.random() * 2147483642) + 5;
|
||||
|
||||
class WireGuard {
|
||||
/**
|
||||
* Save and sync config
|
||||
@@ -61,10 +64,15 @@ class WireGuard {
|
||||
WG_DEBUG('Config synced successfully.');
|
||||
}
|
||||
|
||||
async getClientsForUser(userId: ID) {
|
||||
async getClientsForUser(userId: ID, filter?: string) {
|
||||
const wgInterface = await Database.interfaces.get();
|
||||
|
||||
const dbClients = await Database.clients.getForUser(userId);
|
||||
let dbClients;
|
||||
if (filter?.trim()) {
|
||||
dbClients = await Database.clients.getForUserFiltered(userId, filter);
|
||||
} else {
|
||||
dbClients = await Database.clients.getForUser(userId);
|
||||
}
|
||||
|
||||
const clients = dbClients.map((client) => ({
|
||||
...client,
|
||||
@@ -93,9 +101,27 @@ class WireGuard {
|
||||
return clients;
|
||||
}
|
||||
|
||||
async getAllClients() {
|
||||
async dumpByPublicKey(publicKey: string) {
|
||||
const wgInterface = await Database.interfaces.get();
|
||||
const dbClients = await Database.clients.getAll();
|
||||
|
||||
const dump = await wg.dump(wgInterface.name);
|
||||
const clientDump = dump.find(
|
||||
({ publicKey: dumpPublicKey }) => dumpPublicKey === publicKey
|
||||
);
|
||||
|
||||
return clientDump;
|
||||
}
|
||||
|
||||
async getAllClients(filter?: string) {
|
||||
const wgInterface = await Database.interfaces.get();
|
||||
|
||||
let dbClients;
|
||||
if (filter?.trim()) {
|
||||
dbClients = await Database.clients.getAllPublicFiltered(filter);
|
||||
} else {
|
||||
dbClients = await Database.clients.getAllPublic();
|
||||
}
|
||||
|
||||
const clients = dbClients.map((client) => ({
|
||||
...client,
|
||||
latestHandshakeAt: null as Date | null,
|
||||
@@ -140,11 +166,32 @@ class WireGuard {
|
||||
|
||||
async getClientQRCodeSVG({ clientId }: { clientId: ID }) {
|
||||
const config = await this.getClientConfiguration({ clientId });
|
||||
return encodeQR(config, 'svg', {
|
||||
ecc: 'high',
|
||||
scale: 2,
|
||||
encoding: 'byte',
|
||||
});
|
||||
const ECMode = ['high', 'quartile', 'medium', 'low'] as const;
|
||||
for (const ecc of ECMode) {
|
||||
try {
|
||||
return encodeQR(config, 'svg', {
|
||||
ecc,
|
||||
scale: 2,
|
||||
encoding: 'byte',
|
||||
});
|
||||
} catch (err) {
|
||||
if (!(err instanceof Error && err.message === 'Capacity overflow')) {
|
||||
throw err;
|
||||
}
|
||||
// retry with lower ecc
|
||||
}
|
||||
}
|
||||
throw new Error(
|
||||
'Failed to generate QR code: Capacity overflow at all ECC levels'
|
||||
);
|
||||
}
|
||||
|
||||
cleanClientFilename(name: string): string {
|
||||
return name
|
||||
.replace(/[^a-zA-Z0-9_=+.-]/g, '-')
|
||||
.replace(/(-{2,}|-$)/g, '-')
|
||||
.replace(/-$/, '')
|
||||
.substring(0, 32);
|
||||
}
|
||||
|
||||
async Startup() {
|
||||
@@ -165,6 +212,24 @@ class WireGuard {
|
||||
wgInterface = await Database.interfaces.get();
|
||||
WG_DEBUG('New Wireguard Keys generated successfully.');
|
||||
}
|
||||
|
||||
if (WG_ENV.WG_EXECUTABLE === 'awg' && wgInterface.h1 === 0) {
|
||||
WG_DEBUG('Generating random AmneziaWG obfuscation parameters...');
|
||||
const headers = new Set<number>();
|
||||
|
||||
while (headers.size < 4) {
|
||||
headers.add(generateRandomHeaderValue());
|
||||
}
|
||||
const [h1, h2, h3, h4] = Array.from(headers);
|
||||
|
||||
wgInterface.h1 = h1!;
|
||||
wgInterface.h2 = h2!;
|
||||
wgInterface.h3 = h3!;
|
||||
wgInterface.h4 = h4!;
|
||||
|
||||
Database.interfaces.update(wgInterface);
|
||||
}
|
||||
|
||||
WG_DEBUG(`Starting Wireguard Interface ${wgInterface.name}...`);
|
||||
await this.#saveWireguardConfig(wgInterface);
|
||||
await wg.down(wgInterface.name).catch(() => {});
|
||||
|
||||
@@ -12,6 +12,24 @@ export const OLD_ENV = {
|
||||
PASSWORD_HASH: process.env.PASSWORD_HASH,
|
||||
};
|
||||
|
||||
const detectAwg = async (): Promise<'awg' | 'wg'> => {
|
||||
/** TODO: delete on next major version */
|
||||
if (process.env.EXPERIMENTAL_AWG === 'true') {
|
||||
const OVERRIDE_AUTO_AWG = process.env.OVERRIDE_AUTO_AWG?.toLowerCase();
|
||||
|
||||
if (
|
||||
OVERRIDE_AUTO_AWG === ('wg' as const) ||
|
||||
OVERRIDE_AUTO_AWG === ('awg' as const)
|
||||
) {
|
||||
return OVERRIDE_AUTO_AWG;
|
||||
} else {
|
||||
return await exec('modinfo amneziawg')
|
||||
.then(() => 'awg' as const)
|
||||
.catch(() => 'wg' as const);
|
||||
}
|
||||
} else return 'wg';
|
||||
};
|
||||
|
||||
export const WG_ENV = {
|
||||
/** UI is hosted on HTTP instead of HTTPS */
|
||||
INSECURE: process.env.INSECURE === 'true',
|
||||
@@ -19,6 +37,7 @@ export const WG_ENV = {
|
||||
PORT: assertEnv('PORT'),
|
||||
/** If IPv6 should be disabled */
|
||||
DISABLE_IPV6: process.env.DISABLE_IPV6 === 'true',
|
||||
WG_EXECUTABLE: await detectAwg(),
|
||||
};
|
||||
|
||||
export const WG_INITIAL_ENV = {
|
||||
@@ -28,6 +47,7 @@ export const WG_INITIAL_ENV = {
|
||||
DNS: process.env.INIT_DNS?.split(',').map((x) => x.trim()),
|
||||
IPV4_CIDR: process.env.INIT_IPV4_CIDR,
|
||||
IPV6_CIDR: process.env.INIT_IPV6_CIDR,
|
||||
ALLOWED_IPS: process.env.INIT_ALLOWED_IPS?.split(',').map((x) => x.trim()),
|
||||
HOST: process.env.INIT_HOST,
|
||||
PORT: process.env.INIT_PORT
|
||||
? Number.parseInt(process.env.INIT_PORT, 10)
|
||||
|
||||
@@ -22,9 +22,22 @@ export const EnabledSchema = z.boolean({ message: t('zod.enabled') });
|
||||
|
||||
export const MtuSchema = z
|
||||
.number({ message: t('zod.mtu') })
|
||||
.min(1280, { message: t('zod.mtu') })
|
||||
// min for IPv6 is 1280, but we allow lower for IPv4
|
||||
.min(1024, { message: t('zod.mtu') })
|
||||
.max(9000, { message: t('zod.mtu') });
|
||||
|
||||
export const JcSchema = z.number().min(1).max(128).nullable();
|
||||
|
||||
export const JminSchema = z.number().max(1279).nullable();
|
||||
|
||||
export const JmaxSchema = z.number().max(1280).nullable();
|
||||
|
||||
export const SSchema = z.number().max(1132).nullable();
|
||||
|
||||
export const HSchema = z.number().min(5).max(2147483647).nullable();
|
||||
|
||||
export const ISchema = z.string().nullable();
|
||||
|
||||
export const PortSchema = z
|
||||
.number({ message: t('zod.port') })
|
||||
.min(1, { message: t('zod.port') })
|
||||
@@ -40,9 +53,7 @@ export const AddressSchema = z
|
||||
.min(1, { message: t('zod.address') })
|
||||
.pipe(safeStringRefine);
|
||||
|
||||
export const DnsSchema = z
|
||||
.array(AddressSchema, { message: t('zod.dns') })
|
||||
.min(1, t('zod.dns'));
|
||||
export const DnsSchema = z.array(AddressSchema, { message: t('zod.dns') });
|
||||
|
||||
export const AllowedIpsSchema = z
|
||||
.array(AddressSchema, { message: t('zod.allowedIps') })
|
||||
@@ -84,7 +95,7 @@ export function validateZod<T>(
|
||||
if (v.message.startsWith('zod.')) {
|
||||
switch (v.code) {
|
||||
case 'too_small':
|
||||
switch (v.type) {
|
||||
switch (v.origin) {
|
||||
case 'string':
|
||||
newMessage = t('zod.generic.stringMin', [
|
||||
t(v.message),
|
||||
@@ -100,7 +111,7 @@ export function validateZod<T>(
|
||||
}
|
||||
break;
|
||||
case 'invalid_type': {
|
||||
if (v.received === 'null' || v.received === 'undefined') {
|
||||
if (v.input === null || v.input === undefined) {
|
||||
newMessage = t('zod.generic.required', [
|
||||
v.path.join('.'),
|
||||
]);
|
||||
|
||||
@@ -9,6 +9,8 @@ type Options = {
|
||||
enableIpv6?: boolean;
|
||||
};
|
||||
|
||||
const wgExecutable = WG_ENV.WG_EXECUTABLE;
|
||||
|
||||
export const wg = {
|
||||
generateServerPeer: (
|
||||
client: Omit<ClientType, 'createdAt' | 'updatedAt'>,
|
||||
@@ -50,6 +52,35 @@ AllowedIPs = ${allowedIps.join(', ')}${extraLines.length ? `\n${extraLines.join(
|
||||
`${ipv4Addr}/${cidr4.prefix}` +
|
||||
(enableIpv6 ? `, ${ipv6Addr}/${cidr6.prefix}` : '');
|
||||
|
||||
let awgLines: string[] = [];
|
||||
|
||||
if (wgExecutable === 'awg') {
|
||||
const parameters = {
|
||||
Jc: wgInterface.jC,
|
||||
Jmin: wgInterface.jMin,
|
||||
Jmax: wgInterface.jMax,
|
||||
S1: wgInterface.s1,
|
||||
S2: wgInterface.s2,
|
||||
S3: wgInterface.s3,
|
||||
S4: wgInterface.s4,
|
||||
i1: wgInterface.i1,
|
||||
i2: wgInterface.i2,
|
||||
i3: wgInterface.i3,
|
||||
i4: wgInterface.i4,
|
||||
i5: wgInterface.i5,
|
||||
H1: wgInterface.h1,
|
||||
H2: wgInterface.h2,
|
||||
H3: wgInterface.h3,
|
||||
H4: wgInterface.h4,
|
||||
} as const;
|
||||
|
||||
awgLines = Object.entries(parameters)
|
||||
.filter(([_, value]) => !!value)
|
||||
.map(([key, value]) => `${key} = ${value}`);
|
||||
}
|
||||
|
||||
const extraLines = [...awgLines].filter((v) => v !== null);
|
||||
|
||||
return `# Note: Do not edit this file directly.
|
||||
# Your changes will be overwritten!
|
||||
|
||||
@@ -59,6 +90,7 @@ PrivateKey = ${wgInterface.privateKey}
|
||||
Address = ${address}
|
||||
ListenPort = ${wgInterface.port}
|
||||
MTU = ${wgInterface.mtu}
|
||||
${extraLines.length ? `${extraLines.join('\n')}\n` : ''}
|
||||
PreUp = ${iptablesTemplate(hooks.preUp, wgInterface)}
|
||||
PostUp = ${iptablesTemplate(hooks.postUp, wgInterface)}
|
||||
PreDown = ${iptablesTemplate(hooks.preDown, wgInterface)}
|
||||
@@ -73,26 +105,57 @@ PostDown = ${iptablesTemplate(hooks.postDown, wgInterface)}`;
|
||||
) => {
|
||||
const { enableIpv6 = true } = options;
|
||||
|
||||
const cidr4Block = parseCidr(wgInterface.ipv4Cidr).prefix;
|
||||
const cidr6Block = parseCidr(wgInterface.ipv6Cidr).prefix;
|
||||
|
||||
const address =
|
||||
`${client.ipv4Address}/${cidr4Block}` +
|
||||
(enableIpv6 ? `, ${client.ipv6Address}/${cidr6Block}` : '');
|
||||
`${client.ipv4Address}/32` +
|
||||
(enableIpv6 ? `, ${client.ipv6Address}/128` : '');
|
||||
|
||||
const hookLines = [
|
||||
client.preUp ? `PreUp = ${client.preUp}` : null,
|
||||
client.postUp ? `PostUp = ${client.postUp}` : null,
|
||||
client.preDown ? `PreDown = ${client.preDown}` : null,
|
||||
client.postDown ? `PostDown = ${client.postDown}` : null,
|
||||
].filter((v) => v !== null);
|
||||
];
|
||||
|
||||
const dnsServers = client.dns ?? userConfig.defaultDns;
|
||||
const dnsLine =
|
||||
dnsServers.length > 0 ? `DNS = ${dnsServers.join(', ')}` : null;
|
||||
|
||||
let awgLines: string[] = [];
|
||||
|
||||
if (wgExecutable === 'awg') {
|
||||
const parameters = {
|
||||
Jc: client.jC,
|
||||
Jmin: client.jMin,
|
||||
Jmax: client.jMax,
|
||||
S1: wgInterface.s1,
|
||||
S2: wgInterface.s2,
|
||||
S3: wgInterface.s3,
|
||||
S4: wgInterface.s4,
|
||||
i1: client.i1,
|
||||
i2: client.i2,
|
||||
i3: client.i3,
|
||||
i4: client.i4,
|
||||
i5: client.i5,
|
||||
H1: wgInterface.h1,
|
||||
H2: wgInterface.h2,
|
||||
H3: wgInterface.h3,
|
||||
H4: wgInterface.h4,
|
||||
} as const;
|
||||
|
||||
awgLines = Object.entries(parameters)
|
||||
.filter(([_, value]) => !!value)
|
||||
.map(([key, value]) => `${key} = ${value}`);
|
||||
}
|
||||
|
||||
const extraLines = [dnsLine, ...hookLines, ...awgLines].filter(
|
||||
(v) => v !== null
|
||||
);
|
||||
|
||||
return `[Interface]
|
||||
PrivateKey = ${client.privateKey}
|
||||
Address = ${address}
|
||||
DNS = ${(client.dns ?? userConfig.defaultDns).join(', ')}
|
||||
MTU = ${client.mtu}
|
||||
${hookLines.length ? `${hookLines.join('\n')}\n` : ''}
|
||||
${extraLines.length ? `${extraLines.join('\n')}\n` : ''}
|
||||
[Peer]
|
||||
PublicKey = ${wgInterface.publicKey}
|
||||
PresharedKey = ${client.preSharedKey}
|
||||
@@ -102,37 +165,41 @@ Endpoint = ${userConfig.host}:${userConfig.port}`;
|
||||
},
|
||||
|
||||
generatePrivateKey: () => {
|
||||
return exec('wg genkey');
|
||||
return exec(`${wgExecutable} genkey`);
|
||||
},
|
||||
|
||||
getPublicKey: (privateKey: string) => {
|
||||
return exec(`echo ${privateKey} | wg pubkey`, {
|
||||
log: 'echo ***hidden*** | wg pubkey',
|
||||
return exec(`echo ${privateKey} | ${wgExecutable} pubkey`, {
|
||||
log: `echo ***hidden*** | ${wgExecutable} pubkey`,
|
||||
});
|
||||
},
|
||||
|
||||
generatePreSharedKey: () => {
|
||||
return exec('wg genpsk');
|
||||
return exec(`${wgExecutable} genpsk`);
|
||||
},
|
||||
|
||||
up: (infName: string) => {
|
||||
return exec(`wg-quick up ${infName}`);
|
||||
return exec(`${wgExecutable}-quick up ${infName}`);
|
||||
},
|
||||
|
||||
down: (infName: string) => {
|
||||
return exec(`wg-quick down ${infName}`);
|
||||
return exec(`${wgExecutable}-quick down ${infName}`);
|
||||
},
|
||||
|
||||
restart: (infName: string) => {
|
||||
return exec(`wg-quick down ${infName}; wg-quick up ${infName}`);
|
||||
return exec(
|
||||
`${wgExecutable}-quick down ${infName}; ${wgExecutable}-quick up ${infName}`
|
||||
);
|
||||
},
|
||||
|
||||
sync: (infName: string) => {
|
||||
return exec(`wg syncconf ${infName} <(wg-quick strip ${infName})`);
|
||||
return exec(
|
||||
`${wgExecutable} syncconf ${infName} <(${wgExecutable}-quick strip ${infName})`
|
||||
);
|
||||
},
|
||||
|
||||
dump: async (infName: string) => {
|
||||
const rawDump = await exec(`wg show ${infName} dump`, {
|
||||
const rawDump = await exec(`${wgExecutable} show ${infName} dump`, {
|
||||
log: false,
|
||||
});
|
||||
|
||||
|
||||
@@ -59,7 +59,7 @@ type RolesWithPermissions = {
|
||||
|
||||
export type Permissions = {
|
||||
clients: {
|
||||
dataType: ClientType;
|
||||
dataType: Pick<ClientType, 'id' | 'userId'>;
|
||||
action: 'view' | 'create' | 'update' | 'delete' | 'custom';
|
||||
};
|
||||
admin: {
|
||||
|
||||
Reference in New Issue
Block a user