Skip to content
Open

Vpn #465

Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
29 commits
Select commit Hold shift + click to select a range
9199e14
Update readme.md
nuve-lab Jun 14, 2025
941060c
Update readme.md
nuve-lab Jun 14, 2025
b97f260
Add files via upload
nuve-lab Jun 14, 2025
2ef6099
Update readme.md
nuve-lab Jun 14, 2025
817f786
Create docker-image.yml
nuve-lab Jun 14, 2025
77c283a
Update named.cache Sun Jun 15 01:03:03 UTC 2025
invalid-email-address Jun 15, 2025
b06546a
Update named.cache Thu Jun 19 00:57:17 UTC 2025
invalid-email-address Jun 19, 2025
49fb56a
Update named.cache Wed Jun 25 00:58:10 UTC 2025
invalid-email-address Jun 25, 2025
9857932
Update named.cache Fri Jun 27 00:58:11 UTC 2025
invalid-email-address Jun 27, 2025
41a1b28
Update named.cache Fri Jul 25 01:00:35 UTC 2025
invalid-email-address Jul 25, 2025
6fa949f
Update named.cache Thu Aug 21 00:53:14 UTC 2025
invalid-email-address Aug 21, 2025
2cc7349
Update named.cache Fri Sep 5 00:51:47 UTC 2025
invalid-email-address Sep 5, 2025
479920b
Update named.cache Thu Sep 11 00:52:25 UTC 2025
invalid-email-address Sep 11, 2025
523b91a
Update named.cache Thu Sep 25 00:52:26 UTC 2025
invalid-email-address Sep 25, 2025
f643133
Update named.cache Wed Oct 8 00:51:33 UTC 2025
invalid-email-address Oct 8, 2025
7b5e3a3
Update named.cache Wed Oct 15 00:53:50 UTC 2025
invalid-email-address Oct 15, 2025
7d7a12b
Update named.cache Thu Oct 23 00:54:10 UTC 2025
invalid-email-address Oct 23, 2025
85feca3
Update named.cache Thu Oct 30 00:56:44 UTC 2025
invalid-email-address Oct 30, 2025
0f6d481
Update named.cache Fri Nov 21 00:55:31 UTC 2025
invalid-email-address Nov 21, 2025
ef5102d
Update named.cache Thu Dec 18 00:56:18 UTC 2025
invalid-email-address Dec 18, 2025
a6cd806
Update named.cache Fri Jan 16 01:01:48 UTC 2026
invalid-email-address Jan 16, 2026
e575a2d
Update named.cache Fri Jan 23 01:02:37 UTC 2026
invalid-email-address Jan 23, 2026
ab72b38
Update named.cache Fri Feb 20 01:12:20 UTC 2026
invalid-email-address Feb 20, 2026
6a7e039
Update named.cache Fri Feb 27 01:10:39 UTC 2026
invalid-email-address Feb 27, 2026
bb3124f
Update named.cache Fri Mar 6 01:17:30 UTC 2026
invalid-email-address Mar 6, 2026
c1dec23
Update named.cache Wed Apr 1 01:43:56 UTC 2026
invalid-email-address Apr 1, 2026
1d1b94a
Update named.cache Fri Apr 17 01:29:42 UTC 2026
invalid-email-address Apr 17, 2026
ff7581c
Update named.cache Fri May 1 02:05:11 UTC 2026
invalid-email-address May 1, 2026
694f253
Update named.cache Fri May 22 02:28:34 UTC 2026
invalid-email-address May 22, 2026
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
19 changes: 19 additions & 0 deletions .github/workflows/docker-image.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
name: Docker Image CI

on:
push:
branches: [ "main" ]
pull_request:
branches: [ "main" ]

jobs:

build:

runs-on: ubuntu-latest

steps:
- uses: actions/checkout@v4
- name: Build the Docker image
run: docker build . --file Dockerfile --tag my-image-name:$(date +%s)

8 changes: 8 additions & 0 deletions Dockerfile
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
FROM debian:stable-slim

RUN apt-get update && apt-get install -y wireguard qrencode iproute2 && apt-get clean

COPY entrypoint.sh /entrypoint.sh
RUN chmod +x /entrypoint.sh

ENTRYPOINT ["/entrypoint.sh"]
4 changes: 2 additions & 2 deletions assets/named.cache
Original file line number Diff line number Diff line change
Expand Up @@ -9,8 +9,8 @@
; on server FTP.INTERNIC.NET
; -OR- RS.INTERNIC.NET
;
; last update: June 26, 2024
; related version of root zone: 2024062601
; last update: May 21, 2026
; related version of root zone: 2026052101
;
; FORMERLY NS.INTERNIC.NET
;
Expand Down
50 changes: 50 additions & 0 deletions entrypoint.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,50 @@
#!/bin/bash

# ساخت کلیدها
umask 077
wg genkey | tee server_private.key | wg pubkey > server_public.key
wg genkey | tee client_private.key | wg pubkey > client_public.key

SERVER_PRIV=$(cat server_private.key)
SERVER_PUB=$(cat server_public.key)
CLIENT_PRIV=$(cat client_private.key)
CLIENT_PUB=$(cat client_public.key)

SERVER_PORT=51820
SERVER_IP="10.0.0.1"
CLIENT_IP="10.0.0.2"

# فایل کانفیگ سرور
cat > wg0.conf <<EOF
[Interface]
PrivateKey = $SERVER_PRIV
Address = $SERVER_IP/24
ListenPort = $SERVER_PORT

[Peer]
PublicKey = $CLIENT_PUB
AllowedIPs = $CLIENT_IP/32
EOF

# فایل کانفیگ کلاینت
cat > client.conf <<EOF
[Interface]
PrivateKey = $CLIENT_PRIV
Address = $CLIENT_IP/24
DNS = 1.1.1.1

[Peer]
PublicKey = $SERVER_PUB
Endpoint = YOUR_SERVER_IP:$SERVER_PORT
AllowedIPs = 0.0.0.0/0
PersistentKeepalive = 25
EOF

# تولید QR code
echo ""
echo "🔐 WireGuard Client Config:"
cat client.conf

echo ""
echo "📱 Scan this QR in your WireGuard app:"
qrencode -t ansiutf8 < client.conf
3 changes: 3 additions & 0 deletions readme.md
Original file line number Diff line number Diff line change
Expand Up @@ -472,3 +472,6 @@ https://gitlab.com/complexorganizations/wireguard-manager
## 📝 License

WireGuard-Manager is licensed under the Apache License Version 2.0. For more details, please refer to our [License File](https://github.com/complexorganizations/wireguard-manager/blob/main/license.md).

chmod +x install.sh
./install.sh