config: shione: incomplete wireguard setup
This commit is contained in:
parent
81b8b02ac9
commit
900156b511
11 changed files with 51 additions and 0 deletions
1
.gitignore
vendored
1
.gitignore
vendored
|
@ -8,3 +8,4 @@
|
|||
*.postinst.debhelper
|
||||
*.substvars
|
||||
*.tar.xz
|
||||
config/shione/wireguard/files/etc/wireguard
|
||||
|
|
5
config/shione/wireguard/debian/changelog
Normal file
5
config/shione/wireguard/debian/changelog
Normal file
|
@ -0,0 +1,5 @@
|
|||
wireguard-config (1.0) unstable; urgency=low
|
||||
|
||||
* Initial release.
|
||||
|
||||
-- Renken <renken@shione.net> Sun, 24 Dec 2023 23:46:00 +0100
|
1
config/shione/wireguard/debian/compat
Normal file
1
config/shione/wireguard/debian/compat
Normal file
|
@ -0,0 +1 @@
|
|||
9
|
16
config/shione/wireguard/debian/control
Normal file
16
config/shione/wireguard/debian/control
Normal file
|
@ -0,0 +1,16 @@
|
|||
Source: wireguard-config
|
||||
Section: tasks
|
||||
Priority: optional
|
||||
Maintainer: Renken <renken@shione.net>
|
||||
Rules-Requires-Root: no
|
||||
Build-Depends: debhelper (>= 13.11~), config-package-dev (>= 4.15~)
|
||||
Standards-Version: 4.1.0
|
||||
|
||||
Package: wireguard-config
|
||||
Architecture: all
|
||||
Multi-Arch: foreign
|
||||
Depends: ${misc:Depends}, wireguard, wireguard-tools
|
||||
Provides: ${diverted-files}
|
||||
Conflicts: ${diverted-files}
|
||||
Description: Shione wireguard configuration.
|
||||
Shione wireguard configuration.
|
8
config/shione/wireguard/debian/copyright
Normal file
8
config/shione/wireguard/debian/copyright
Normal file
|
@ -0,0 +1,8 @@
|
|||
Format: https://www.debian.org/doc/packaging-manuals/copyright-format/1.0/
|
||||
Source: https://gitlab.com/renken/nichijou
|
||||
Upstream-Contact: Renken <renken@shione.net>
|
||||
|
||||
Files:
|
||||
*
|
||||
Copyright: 2023, Renken <renken@shione.net>
|
||||
License: GPL-3
|
2
config/shione/wireguard/debian/files
Normal file
2
config/shione/wireguard/debian/files
Normal file
|
@ -0,0 +1,2 @@
|
|||
wireguard-config_1.0_all.deb tasks optional
|
||||
wireguard-config_1.0_amd64.buildinfo tasks optional
|
4
config/shione/wireguard/debian/rules
Executable file
4
config/shione/wireguard/debian/rules
Executable file
|
@ -0,0 +1,4 @@
|
|||
#!/usr/bin/make -f
|
||||
|
||||
%:
|
||||
dh $@ --with config-package
|
1
config/shione/wireguard/debian/source/format
Normal file
1
config/shione/wireguard/debian/source/format
Normal file
|
@ -0,0 +1 @@
|
|||
3.0 (native)
|
1
config/shione/wireguard/debian/wireguard-config.install
Normal file
1
config/shione/wireguard/debian/wireguard-config.install
Normal file
|
@ -0,0 +1 @@
|
|||
files/* /
|
|
@ -0,0 +1,3 @@
|
|||
# Configuration required for wireguard.
|
||||
net.ipv4.ip_forward = 1
|
||||
net.ipv6.conf.all.forwarding = 1
|
9
config/shione/wireguard/generate_keys.sh
Executable file
9
config/shione/wireguard/generate_keys.sh
Executable file
|
@ -0,0 +1,9 @@
|
|||
#!/bin/sh
|
||||
|
||||
set -eux
|
||||
|
||||
cd -- files/etc/wireguard
|
||||
(umask 077; wg genkey | tee shione.private.key | wg pubkey > shione.public.key)
|
||||
# TODO: chmod 0600 all files under files/etc/wireguard.
|
||||
# TODO: Update files/etc/wireguard/wg0.conf accordingly.
|
||||
cd -- -
|
Loading…
Reference in a new issue