config: shione: incomplete wireguard setup

This commit is contained in:
Renken 2023-12-25 22:55:06 +01:00
parent 81b8b02ac9
commit 900156b511
Signed by: renken
GPG key ID: 1F2BB159B645E575
11 changed files with 51 additions and 0 deletions

1
.gitignore vendored
View file

@ -8,3 +8,4 @@
*.postinst.debhelper
*.substvars
*.tar.xz
config/shione/wireguard/files/etc/wireguard

View 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

View file

@ -0,0 +1 @@
9

View 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.

View 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

View file

@ -0,0 +1,2 @@
wireguard-config_1.0_all.deb tasks optional
wireguard-config_1.0_amd64.buildinfo tasks optional

View file

@ -0,0 +1,4 @@
#!/usr/bin/make -f
%:
dh $@ --with config-package

View file

@ -0,0 +1 @@
3.0 (native)

View file

@ -0,0 +1 @@
files/* /

View file

@ -0,0 +1,3 @@
# Configuration required for wireguard.
net.ipv4.ip_forward = 1
net.ipv6.conf.all.forwarding = 1

View 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 -- -