From 20b9c4178f380a3fae92d84f2395fcc11fede74a Mon Sep 17 00:00:00 2001 From: Jay Lanagan <1995739+mac-a-r0ni@users.noreply.github.com> Date: Thu, 26 Dec 2024 09:27:33 -0500 Subject: [PATCH] network/ufw: updated README instructions. --- network/ufw/README | 18 ++++++++++++++---- network/ufw/ufw.SlackBuild | 2 +- 2 files changed, 15 insertions(+), 5 deletions(-) diff --git a/network/ufw/README b/network/ufw/README index 54d8cd35bfd..23b18a7c426 100644 --- a/network/ufw/README +++ b/network/ufw/README @@ -2,11 +2,18 @@ Ufw (Uncomplicated Firewall) is program for managing a netfilter firewall. It provides a command line interface and aims to be uncomplicated and easy to use. -Add the following code to /etc/rc.d/rc.local to start Ufw at boot time: +Slackware's 'rc.init2' script has an entry for a 'rc.firewall' script +which is not a default included file in the distribution which we can +hook into to start UFW as early as we can in the boot process by +creating a symlink like so: -if [ -x /lib/ufw/ufw-init ]; then - /lib/ufw/ufw-init start -fi +ln -s /etc/rc.d/rc.ufw /etc/rc.d/rc.firewall + +Then ensure you've set the 'rc.ufw' script exec permissions with: + +chmod 755 /etc/rc.d/rc.ufw + +to start UFW at system startup. Ufw comes with a number of common application profiles. Create additional application profiles under /etc/ufw/applications.d. @@ -24,3 +31,6 @@ Where xx.xx.xx.xx is the IP address of an external host, enable this application profile by executing the following as root: # ufw allow from xx.xx.xx.xx app Application + +For a nice GUI program to control UFW with, check out 'gui-ufw' as +well on SBo. diff --git a/network/ufw/ufw.SlackBuild b/network/ufw/ufw.SlackBuild index f3b65a2a135..82f88f9d05b 100644 --- a/network/ufw/ufw.SlackBuild +++ b/network/ufw/ufw.SlackBuild @@ -6,7 +6,7 @@ # Copyright 2013 Ricardson Williams # Copyright 2014-2015 Rodolfo Gouveia # Copyright 2016 Brenton Earl -# Copyright 2023 Jay Lanagan +# Copyright 2023-2024 Jay Lanagan # All rights reserved. # # Redistribution and use of this script, with or without modification, is