You are not logged in.

#1 2009-09-14 08:09:48

jerik
Member
Registered: 2009-03-02
Posts: 197

UFW firewall script

Hi, to use UFW to I need to enable the iptables daemon?

Offline

#2 2009-09-14 08:13:39

tomk
Forum Fellow
From: Ireland
Registered: 2004-07-21
Posts: 9,839

Re: UFW firewall script

Probably - iptables is at the heart of most linux firewall apps. It would help, though, if you told us what UFW is.

Offline

#3 2009-09-14 08:23:02

combuster
Member
From: Serbia
Registered: 2008-09-30
Posts: 711
Website

Re: UFW firewall script

Universal firewall smile

http://www.archlinux.org/packages/community/x86_64/ufw/

It's the easy way to setup iptables...

It's enough to put ufw in DAEMONS in rc.conf, no need for iptables...

Offline

#4 2009-09-14 08:37:28

zyghom
Member
From: Poland/currently Africa
Registered: 2006-05-11
Posts: 432
Website

Re: UFW firewall script

it is not enough to put ufw in rc.conf
you must also enable ufw itself: "ufw enable"
I'm using this software for long time already - very very nice one


Zygfryd Homonto

Offline

#5 2009-09-14 10:07:31

jerik
Member
Registered: 2009-03-02
Posts: 197

Re: UFW firewall script

ufw (uncomplicated firewall) is a simple frontend for iptables and is available in the community repository.

I did as the wiki said, I punched in

sudo ufw allow ssh/tcp
sudo ufw logging on
sudo ufw enable

then I tried /etc/rc.d/iptables start
but I got this:

Cannot load iptables rules: /etc/iptables/iptables.rules is missing!

Offline

#6 2009-09-14 10:08:49

jerik
Member
Registered: 2009-03-02
Posts: 197

Re: UFW firewall script

Aha, I missed your post comnuster, that worked big_smile Thanks!!

Offline

#7 2009-09-14 11:25:27

combuster
Member
From: Serbia
Registered: 2008-09-30
Posts: 711
Website

Re: UFW firewall script

Good, I always miss the U as universal (it's uncomplicated as u've said)... big_smile

Offline

#8 2010-02-24 03:26:57

pecenac
Member
Registered: 2009-09-27
Posts: 14

Re: UFW firewall script

jerik wrote:

ufw (uncomplicated firewall) is a simple frontend for iptables and is available in the community repository.

I did as the wiki said, I punched in

sudo ufw allow ssh/tcp
sudo ufw logging on
sudo ufw enable

then I tried /etc/rc.d/iptables start
but I got this:

Cannot load iptables rules: /etc/iptables/iptables.rules is missing!

I would like to stress the importnce on entering

ufw enable

AFTER adding the rules. It seems to be the magic line that makes ufw apply the rules. Simply restarting ufw throught etc/rc.d/ufw doesnt work.

I know its kindda off topic, but it might help someone.

Last edited by pecenac (2010-02-24 03:27:39)

Offline

Board footer

Powered by FluxBB