Received: from knopi.disroot.org (knopi.disroot.org [178.21.23.139]) by nld3-dev1.alpinelinux.org (Postfix) with ESMTPS id 83A95780DB3 for <~alpine/users@lists.alpinelinux.org>; Fri, 24 Dec 2021 10:19:34 +0000 (UTC) Received: from localhost (localhost [127.0.0.1]) by disroot.org (Postfix) with ESMTP id EE3FA50F64 for <~alpine/users@lists.alpinelinux.org>; Fri, 24 Dec 2021 11:19:32 +0100 (CET) X-Virus-Scanned: SPAM Filter at disroot.org Received: from knopi.disroot.org ([127.0.0.1]) by localhost (disroot.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id DBexbE8zOV-c for <~alpine/users@lists.alpinelinux.org>; Fri, 24 Dec 2021 11:19:32 +0100 (CET) From: Patrick Useldinger DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=disroot.org; s=mail; t=1640341172; bh=0tSXZz2WVWgGEqiQXFnfhIMC0zBKQq+kquqwze6sXec=; h=From:Subject:Date:To; b=AEfT4KbsxPGo+PJkoftoVeq5krR/UOO0c1B8acjmd1c5e+pbgaJkNQIGq93KOKC/y ROQVcdXUDAMfcE3eiwypKDxnRLYwRrR6a2HblIjPvbbEXhbLUVfLJfSXJIrw9QUaMs +56eygPEOeVABlea/fVdVrwfpJogy16O2ReipEEAqbRnWm4Bf+2oPNrJJ/XZR6KS9G Pr6e/PwY6jgl6wymMG4SlAsG3evEHscx+7EYCY4H9S6pbFMRtL4cr7ikFBDyv/uZ9s BAnlO15a7DtgiyadejwGRo37r+NXDhMCaABfrLUX2wV8LbYKg9eXo5Gm9yq4SFIaVh L1QpMooSwQJag== Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Mime-Version: 1.0 Subject: ufw Message-Id: <4CEFB62D-9188-4E21-A37B-12F7FD90575E@disroot.org> Date: Fri, 24 Dec 2021 11:19:31 +0100 To: ~alpine/users@lists.alpinelinux.org Greetings, I=E2=80=99m very new to Alpine Linux, running it under qemu as a DHCP = and PiHole (docker) server currently. Being familiar with Debian I installed ufw for packet filtering and = it=E2=80=99s working well. However, there=E2=80=99s a problematic behaviour - when starting the OS = instance, ufw start fails with - - - - - - * Starting ufw =E2=80=A6 Another app is currently holding the xtables lock. Perhaps you want to = use the -w option? ip6tables-restore: line 2 failed Problem running =E2=80=98/etc/ufw/before6.rules=E2=80=99 * Failed to start ufw. * ERROR: ufw failed to start - - - - - - The rest appears to be working correctly, although I seem to be unable = to ssh into the instance unless I wait=20 around 2 minutes after the startup, and without any action from my side = (possibly unrelated). To correct the problem, I console in into the instance and start ufw = manually, and it works without a hitch. So I suspect a dependency problem at startup. I am not familiar with OpenRC but all symptoms seem to disappear when, = in /etc/init.d/ufw, I change =E2=80=9Cbefore net=E2=80=9D -> =E2=80=9Cafter net=E2=80=9D. My question is: - what is the correct dependency for the ufw init script? Regards, -Patrick=