-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
6934999
commit 50a043b
Showing
26 changed files
with
1,943 additions
and
106 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,26 @@ | ||
name: Build | ||
|
||
on: | ||
push: | ||
branches: | ||
- '*' | ||
pull_request: | ||
branches: | ||
- '*' | ||
|
||
jobs: | ||
build: | ||
runs-on: ubuntu-latest | ||
strategy: | ||
matrix: | ||
nim: | ||
- '1.6.14' | ||
- 'stable' | ||
name: Nim ${{ matrix.nim }} sample | ||
steps: | ||
- uses: actions/checkout@v3 | ||
- name: Setup nim | ||
uses: jiro4989/setup-nim-action@v1 | ||
with: | ||
nim-version: ${{ matrix.nim }} | ||
- run: nimble build |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,5 @@ | ||
nimcache/ | ||
nimblecache/ | ||
htmldocs/ | ||
|
||
wireguardmanager |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1 +1,34 @@ | ||
# nim_wireguardmanager | ||
# wireguardmanager | ||
|
||
Simple manager for wireguard. | ||
|
||
Create server and peer configurations, and manage them. | ||
|
||
Supports 1 wireguard server. | ||
|
||
## Installation | ||
|
||
```bash | ||
curl https://nim-lang.org/choosenim/init.sh -sSf | sh | ||
git clone https://github.com/ThomasTJdev/nim_wireguardmanager.git | ||
cd nim_wireguardmanager | ||
nimble build | ||
sudo ./wireguardmanager | ||
# http://127.0.0.1:8080 | ||
``` | ||
|
||
## Requirements | ||
|
||
1) Linux machine | ||
2) You have wireguard (wg) installed | ||
3) You run it as root (or with sudo) | ||
|
||
## Screenshots | ||
|
||
**Status** | ||
|
||
![alt text](screenshots/status.png) | ||
|
||
**Server** | ||
|
||
![alt text](screenshots/server.png) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
switch("mm", "orc") | ||
switch("d", "ssl") | ||
switch("threads", "on") |
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,18 @@ | ||
|
||
|
||
|
||
const | ||
defaultPath* = "/etc/wireguard" | ||
defaultKeyPath* = defaultPath & "/keys" | ||
defaultConfigPath* = defaultPath & "/configs" | ||
defaultBackupPath* = defaultPath & "/backups" | ||
|
||
defaultWgInstance* = "wg0" | ||
defaultWgInstancePath* = defaultPath & "/" & defaultWgInstance & ".conf" | ||
|
||
const | ||
defaultPort* = "51820" | ||
interfaceName* = "eth0" | ||
defaultDns* = "8.8.8.8" | ||
defaultIpStart* = "10.6.0." | ||
peerAllowedIPs* = "0.0.0.0/0" |
This file was deleted.
Oops, something went wrong.
Oops, something went wrong.