From: Michael Tremer Date: Thu, 24 Apr 2025 14:47:33 +0000 (+0000) Subject: core195: Ship WireGuard X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=a4e20441ff08401644fc29342338ef8f6bd7984a;p=people%2Fstevee%2Fipfire-2.x.git core195: Ship WireGuard Signed-off-by: Michael Tremer --- diff --git a/config/rootfiles/core/195/filelists/files b/config/rootfiles/core/195/filelists/files index ca8972dd2..c482e0f9c 100644 --- a/config/rootfiles/core/195/filelists/files +++ b/config/rootfiles/core/195/filelists/files @@ -1,6 +1,22 @@ +etc/fcron.cyclic/wg-dynamic +etc/rc.d/init.d/firewall +etc/rc.d/init.d/networking/functions.network +etc/rc.d/init.d/wireguard +lib/udev/network-aqm opt/pakfire/lib/functions.pl srv/web/ipfire/cgi-bin/ddns.cgi +srv/web/ipfire/cgi-bin/firewall.cgi +srv/web/ipfire/cgi-bin/fwhosts.cgi srv/web/ipfire/cgi-bin/pakfire.cgi +srv/web/ipfire/cgi-bin/services.cgi +srv/web/ipfire/cgi-bin/wireguard.cgi +srv/web/ipfire/html/themes/ipfire/include/css/style.css +usr/lib/firewall/firewall-lib.pl +usr/local/bin/wireguardctrl +usr/sbin/firewall-policy var/ipfire/general-functions.pl +var/ipfire/header.pl var/ipfire/http-client-functions.pl var/ipfire/ids-functions.pl +var/ipfire/menu.d/40-services.menu +var/ipfire/wireguard-functions.pl diff --git a/config/rootfiles/core/195/filelists/wireguard-tools b/config/rootfiles/core/195/filelists/wireguard-tools new file mode 120000 index 000000000..412bf8c38 --- /dev/null +++ b/config/rootfiles/core/195/filelists/wireguard-tools @@ -0,0 +1 @@ +../../../common/wireguard-tools \ No newline at end of file diff --git a/config/rootfiles/core/195/update.sh b/config/rootfiles/core/195/update.sh index ee9b53497..1895513b1 100644 --- a/config/rootfiles/core/195/update.sh +++ b/config/rootfiles/core/195/update.sh @@ -41,6 +41,12 @@ extract_files # update linker config ldconfig +# Create the Wireguard configuration directory +if [ ! -d "/var/ipfire/wireguard" ]; then + mkdir -pv "/var/ipfire/wireguard" + chown nobody:nobody "/var/ipfire/wireguard" +fi + # Update Language cache /usr/local/bin/update-lang-cache @@ -48,6 +54,7 @@ ldconfig /usr/local/bin/filesystem-cleanup # Start services +/etc/init.d/firewall restart # This update needs a reboot... #touch /var/run/need_reboot