You are not logged in.

#1 2012-03-11 12:33:33

jdn06
Member
Registered: 2010-02-01
Posts: 67

[SOLVED] UFW rules disappeared

After these last days upgrade of ufw, my rules disappeared on my 3 computers with Archlinux.
Pacman log says it saved them as /lib/ufw/user.rules.pacsave. I recovered them by doing a:

mv /lib/ufw/user.rules.pacsave /usr/lib/ufw/user.rules
ufw reload

I don't understand why the maintainer chose to save configuration without moving this file to its new destination. I hope there is no problem to do as I did.

Last edited by jdn06 (2012-03-11 13:08:39)

Offline

#2 2012-03-11 12:40:10

karol
Archivist
Registered: 2009-05-06
Posts: 25,440

Re: [SOLVED] UFW rules disappeared

Try to understand how pacman works.
If the package doesn't ship that file anymore and the file is in the 'backup' array, this is what is going to happen.
The configs have been moved to /usr/lib/ufw/user.rules:
http://projects.archlinux.org/svntogit/ … 9213d95504

Offline

#3 2012-03-11 12:43:45

jaco
Member
From: Toulouse, France
Registered: 2011-03-17
Posts: 149

Re: [SOLVED] UFW rules disappeared

Maybe it's part of the new Arch politic of moving /bin, /lib, /sbin under /usr...

Offline

#4 2012-03-11 12:48:17

karol
Archivist
Registered: 2009-05-06
Posts: 25,440

Re: [SOLVED] UFW rules disappeared

jaco wrote:

Maybe it's part of the new Arch politic of moving /bin, /lib, /sbin under /usr...

Yup, but the .pacsave files work like this no matter the reason for the change see e.g. https://bbs.archlinux.org/viewtopic.php … 0#p1044870

Offline

#5 2012-03-11 13:00:32

jdn06
Member
Registered: 2010-02-01
Posts: 67

Re: [SOLVED] UFW rules disappeared

Carole wrote:

Try to understand how pacman works.
If the package doesn't ship that file anymore and the file is in the 'backup' array, this is what is going to happen.

I don't agree with you. The message from the maintainer in pacman could be at least more precise by indicating where to put the new config file and by warning about unloading of all rules. On a distant server, this situation could be quite critical - I know, you don't use ufw on a distant server smile

Last edited by jdn06 (2012-03-11 13:09:33)

Offline

#6 2012-03-11 13:03:44

karol
Archivist
Registered: 2009-05-06
Posts: 25,440

Re: [SOLVED] UFW rules disappeared

The thread I linked to suggested the need for a better maintainer - users communication too: https://bbs.archlinux.org/viewtopic.php?id=134045

Offline

#7 2012-03-14 19:51:42

MilanKnizek
Member
Registered: 2005-12-13
Posts: 88

Re: [SOLVED] UFW rules disappeared

karol wrote:

Yup, but the .pacsave files work like this no matter the reason for the change see e.g. https://bbs.archlinux.org/viewtopic.php … 0#p1044870

Still, there are also *.install script which can help to workaround such a behaviour in cases like these. I guess majority wants to keep their rules.

P.S. I was quite surprised today when I could not ssh to by home box...


--
Milan Knizek
http://knizek.net

Offline

#8 2012-03-20 23:58:54

Birkov
Member
Registered: 2011-10-26
Posts: 22

Re: [SOLVED] UFW rules disappeared

With my latest upgrade, the new libgl 'replaced' mach64-dri which gave me a blank screen and a non-responsive keyboard. Ufw also upgraded and I couldn't login with ssh. Took me some hours to get stuff working again.

We have a front page, please use it to warn your userbase about changes like this.

Offline

Board footer

Powered by FluxBB