Slackware-13.1-Hacks-UFW
Posted 02-11-2011 at 02:22 PM by arniekat
UFW - Uncomplicated Firewall
This firewall for Linux allows you use plain English to control the iptables rules. It is a Command-Line program, but is very easy to create a simple firewall to protect your box.
You need to compile and install this from SlackBuilds:
ufw-0.27
NOTE - Slacky.eu has the current version ufw-0.30. You can also get the source code for any version at https://launchpad.net/ufw/+download
Modify rc.local so ufw will be run at boot time.
# vi /etc/rc.d/rc.local
Add these 4 lines to /etc/rc.d/rc.local at the end of the file.
# This will enable the Uncomplicated Firewall (ufw) to run at boot time
if [ -x /etc/init.d/ufw ]; then
/etc/init.d/ufw start
fi
Save the file and exit.
Now, you can either reboot to start the firewall or do it manually with:
# ufw enable
Firewall is active and enabled on system startup
ufw is set by default to a default deny policy, which means that your machine will not allow incoming connections to your machine. This setup will allow your browser to make connections outbound to the Internet.
To check the status of the firewall:
# ufw status
Status: active
This firewall for Linux allows you use plain English to control the iptables rules. It is a Command-Line program, but is very easy to create a simple firewall to protect your box.
You need to compile and install this from SlackBuilds:
ufw-0.27
NOTE - Slacky.eu has the current version ufw-0.30. You can also get the source code for any version at https://launchpad.net/ufw/+download
Modify rc.local so ufw will be run at boot time.
# vi /etc/rc.d/rc.local
Add these 4 lines to /etc/rc.d/rc.local at the end of the file.
# This will enable the Uncomplicated Firewall (ufw) to run at boot time
if [ -x /etc/init.d/ufw ]; then
/etc/init.d/ufw start
fi
Save the file and exit.
Now, you can either reboot to start the firewall or do it manually with:
# ufw enable
Firewall is active and enabled on system startup
ufw is set by default to a default deny policy, which means that your machine will not allow incoming connections to your machine. This setup will allow your browser to make connections outbound to the Internet.
To check the status of the firewall:
# ufw status
Status: active
Total Comments 0