LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Blogs > arniekat
User Name
Password

Notices


Rate this Entry

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
Posted in Uncategorized
Views 1503 Comments 0
« Prev     Main     Next »
Total Comments 0

Comments

 

  



All times are GMT -5. The time now is 01:41 AM.

Main Menu
Advertisement
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration