[NLUUG]   Welcome to ftp.vim.org,
Hosted by ftp.nluug.nl
Current directory: /os/Linux/distr/salix/x86_64/extra-14.2/source/network/ufw/
Contents of README:
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. It is not intended to provide a complete firewall functionality via
its command interface, but provides an easy way to add or remove simple rules.

To run ufw at boot you can add the following code to rc.local file:

if [ -x /lib/ufw/ufw-init ]; then
/lib/ufw/ufw-init start
fi

Rules can be added with ports, services or application names. To specify an 
application you need a profile stored under /etc/ufw/applications.d directory.

To add a profile create a app_name.INI file as the following:

[Samba]
title=File/printer server for Unix
description=Samba is a collection of programs that implements the SMB/CIFS protocol for unix systems.
ports=137,138/udp|139,445/tcp

Then, for example you can run:
ufw allow from xx.xx.xx.xx app samba


Icon  Name                                                    Last modified      Size  
[DIR] Parent Directory - [TXT] README 30-Aug-2016 07:20 904 [TXT] slack-desc 30-Aug-2016 07:20 752 [   ] ufw-0.35-fix-iptables-path.patch 30-Aug-2016 07:20 728 [   ] ufw-0.35.tar.gz 30-Aug-2016 07:23 367K [TXT] ufw.SlackBuild 30-Aug-2016 07:23 2.8K [TXT] ufw.conf.patch 30-Aug-2016 07:20 444 [   ] ufw.info 30-Aug-2016 07:20 286

NLUUG - Open Systems. Open Standards
Become a member and get discounts on conferences and more, see the NLUUG website!