-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #5 from oposs/ip_manager_fix
IP Manager++
- Loading branch information
Showing
28 changed files
with
521 additions
and
274 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
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
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
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
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
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,4 +1,4 @@ | ||
LISTEN_ON=http://127.0.0.1:7171 | ||
MOJO_MODE=production | ||
MOJO_LOG_LEVEL=info | ||
WGwrangler_CONFIG=/etc/opt/wg-wrangler/wgwrangler.yaml | ||
WGwrangler_CONFIG_HOME=/etc/opt/wg-wrangler |
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,5 +1,5 @@ | ||
Subject: Wireguard VPN Configuration | ||
Reply-To: [email protected] | ||
Reply-To: <%= $sender_email %> | ||
---- | ||
Dear <%= $name %> | ||
This is your vpn configuration for your device "<%= $device_name %>" to access <%= $endpoint %>. | ||
|
@@ -8,18 +8,19 @@ Add the config file attached to this message | |
|
||
enjoy! | ||
---- | ||
<html> | ||
<html lang="en"> | ||
<head><title></title></head> | ||
<body> | ||
<p>Dear <%= $name %></p> | ||
<p>This is your vpn configuration for your device "<%= $device_name %>" to access <%= $endpoint %>.</p> | ||
<p>This is your vpn configuration for your device "<%= $device_name %>" to access <%= $endpoint %>.</p> | ||
<ol> | ||
<li>Install a Wireguard <a href="https://www.wireguard.com/install">client</a>.</li> | ||
<li>Add the config file attached to this message</li> | ||
<li>Install a Wireguard <a href="https://www.wireguard.com/install">client</a>.</li> | ||
<li>Add the config file attached to this message</li> | ||
</ol> | ||
<p>Your Wireguard Configuration as a QR Code, readable by mobile Wireguard clients</p> | ||
<div> | ||
<img style="image-rendering: crisp-edges;width: 300px;max-width: 100%"src="data:image/svg+xml;base64,<%= $qr %>" alt="qr_config"/> | ||
<img style="image-rendering: crisp-edges;width: 300px;max-width: 100%" src="data:image/svg+xml;base64,<%= $qr %>" | ||
alt="qr_config"/> | ||
</div> | ||
<p>enjoy!</p> | ||
</body> | ||
|
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,20 +1,37 @@ | ||
|
||
BACKEND: | ||
cfg_db: /var/opt/wg-wrangler/wgwrangler.db | ||
sesame_user: adfadsfasdf4ee3r | ||
# perl -MDigest::SHA -e 'print Digest::SHA::hmac_sha1_hex("access"),"\n"' | ||
sesame_pass: 393afhkjhffjj | ||
vpn_name: your_vpn_name | ||
# A name for your VPN service, available as tag in the email template | ||
vpn_name: 'Awesome Wireguard VPN' | ||
# Enable versioning for wireguard configurations | ||
enable_git: false | ||
no_apply: true | ||
# Instead of applying the configuration automatically after every edit, show a button to apply the configuration manually | ||
no_apply: false | ||
not_applied_suffix: .not_applied | ||
wireguard_home: /dummy_home/ | ||
# Where does your wireguard configuration reside? (trailing slash expected) | ||
wireguard_home: /etc/wireguard/ | ||
wg_apply_command: sudo -n wg-quick strip %interface% > /tmp/wg_tmp && sudo -n wg syncconf %interface% /tmp/wg_tmp && rm /tmp/wg_tmp | ||
wg_show_command: sudo -n wg show all dump | ||
# Ranges defined here are not possible to acquire | ||
# Note: Make sure your subnet calculations are correct, e.g 192.168.1.1/24 is not a valid network _per se_, the | ||
# correct notation is 192.168.1.0/24 (!) | ||
reserved_ranges: | ||
wg0: | ||
- 10.0.0.0/29 | ||
default_dns: | ||
wg1: 192.168.2.1 | ||
default_allowed_ips: | ||
wg0: | ||
- 192.168.0.0/24 | ||
wg1: | ||
- 192.168.0.0/24 | ||
sender_email: [email protected] | ||
|
||
FRONTEND: | ||
# logo = ../resource/wgwrangler/logo.png | ||
# logo_small = ../resource/wgwrangler/logo-small.png | ||
# logo = ../resource/wgwrangler/logo.png | ||
# logo_small = ../resource/wgwrangler/logo-small.png | ||
title: WGwrangler | ||
initial_plugin: WireguardShow | ||
company_name: OETIKER+PARTNER AG | ||
|
@@ -31,9 +48,6 @@ PLUGIN: | |
- WireguardShow: | ||
module: WireguardShow | ||
tab-name: Wireguard | ||
default-dns: 192.168.0.1 | ||
default-allowed-ips: 192.168.0.0/24 | ||
sender-email: [email protected] | ||
|
||
- WireguardVersions: | ||
module: WireguardVersions | ||
|
Oops, something went wrong.