aboutsummaryrefslogtreecommitdiff
path: root/network/ufw
diff options
context:
space:
mode:
authorJay Lanagan <1995739+mac-a-r0ni@users.noreply.github.com>2024-12-26 09:27:33 -0500
committerWilly Sudiarto Raharjo <willysr@slackbuilds.org>2024-12-26 22:39:24 +0700
commit15019afa3b32a2a59197dabcc2a08aa57e4fe7ce (patch)
tree9bcfd3e598fed666ab002b227cc15a446e63391a /network/ufw
parent5cda7344aa99d6286c002e8e33670c740657cec1 (diff)
network/ufw: updated README instructions.
Signed-off-by: Willy Sudiarto Raharjo <willysr@slackbuilds.org>
Diffstat (limited to 'network/ufw')
-rw-r--r--network/ufw/README18
-rw-r--r--network/ufw/ufw.SlackBuild2
2 files changed, 15 insertions, 5 deletions
diff --git a/network/ufw/README b/network/ufw/README
index 54d8cd35bf..23b18a7c42 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 f3b65a2a13..82f88f9d05 100644
--- a/network/ufw/ufw.SlackBuild
+++ b/network/ufw/ufw.SlackBuild
@@ -6,7 +6,7 @@
# Copyright 2013 Ricardson Williams <ricardsonwilliams@gmail.com>
# Copyright 2014-2015 Rodolfo Gouveia <rgouveia@cosmico.net>
# Copyright 2016 Brenton Earl <brent@exitstatusone.com>
-# Copyright 2023 Jay Lanagan <j@lngn.net>
+# Copyright 2023-2024 Jay Lanagan <j@lngn.net>
# All rights reserved.
#
# Redistribution and use of this script, with or without modification, is