Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

network/ufw: updated README instructions. #9219

Closed
wants to merge 1 commit into from
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
18 changes: 14 additions & 4 deletions network/ufw/README
Original file line number Diff line number Diff line change
Expand Up @@ -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.
Expand All @@ -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.
2 changes: 1 addition & 1 deletion network/ufw/ufw.SlackBuild
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
# Copyright 2013 Ricardson Williams <[email protected]>
# Copyright 2014-2015 Rodolfo Gouveia <[email protected]>
# Copyright 2016 Brenton Earl <[email protected]>
# Copyright 2023 Jay Lanagan <[email protected]>
# Copyright 2023-2024 Jay Lanagan <[email protected]>
# All rights reserved.
#
# Redistribution and use of this script, with or without modification, is
Expand Down