ufw is not installing on opensuse 15.6

I am trying to install ufw on openSuse 15.6 I gives me this error (I am root!):

    static:~ # zypper in ufw
    Loading repository data...
    Reading installed packages...
    'ufw' not found in package names. Trying capabilities.
    No provider of 'ufw' found.
    Resolving package dependencies...
    Nothing to do.
    static:~ #

I have tried to add the ufw to zypper, but it is reporting that the url is not found:

    static:~ # zypper addrepo https://download.opensuse.org/repositories/openSUSE:Factory/standard/openSUSE:Factory.repo
    Problem accessing the file at the specified URI:
    File '/repositories/openSUSE:Factory/standard/openSUSE:Factory.repo' not found on medium 'https://download.opensuse.org/'
    Please check if the URI is valid and accessible.
    static:~ #

Do you have any idea what to do?

@mpj Hi and welcome to the Forum :smile:
Looks like you have non standard repositories, Factory should not be used on Leap 15.6…

You need to get from the Development repo (Totally unsupported) https://build.opensuse.org/package/show/security/ufw

Hi malcomlewis I am rather new to openSuse, and I sure what to do. I am not aware of what “Factory” means and what I should do to add the development repository to my zypper?
Is 15.6 a development version that is not supported? I did just install the newest from my CloudServer host.
Lots of questions. I have tried to figure it out on opensuse page. But I can’t find the information.

No, it is the fully supported Leap version at this time in history.

But you tried to add a “Factory” repo (that is one where developers are creating and testing new versions of something) to the repos to be used by your system. That failed (I think lucky for you) because it does not exist.

OK, I still don’t have a clue howto to install ufw. What repro should i add to zypper. I see that both ufw and knockd is installing fine on ubuntu. Why all these problems on openSuse?

quit simple what should be, so I can install ufw and knockd?
zypper addrepo

Debian/Ubuntu folks use UFW to bring in insecure firewall rules.

SUSE/RedHAT folks use Firewalld to bring in insecure firewall rules

https://en.opensuse.org/Firewalld

Probably overlooked Post #2

[quote=“mpj, post:5, topic:182585, full:true”]

I see the editor is removing “lt”“gt” brackets, so I try again with () brackets

OK, I still don’t have a clue howto to install ufw. What repro should i add to zypper. I see that both ufw and knockd is installing fine on ubuntu. Why all these problems on openSuse?

quit simple what should be (url repo file), so I can install ufw and knockd?

zypper addrepo (url repo file)?

Apart from the fact that you seem to have problems implementing what @malcolmlewis suggested in post #2 above (of which you do report nothing), the question is why you insist on using uwf instead of using the distributions native tool.

I can easily answer hcvv’s question. I am taking a course on Udemy. The instructor is using opensuse, ufw, knockd among other tools. Thats why ! I can not get hold on the instructor, he is not responding.
I’m starting to get the feeling that no one wants to help. Everyone just wants to tell me that ufw and knockd are the wrong tools to use.

That is nonsense. In openSUSE these are not normally used. And is this is a “users helps users” forum, you depend on fellow users that hopefully have experience with the product you have questions about. I asume most people here have no experience whatsoever with ufw. Personally I did not even know what it was until @GrandDixence2 posted post #6.

And when I counted correct, this is the third time that we ask you what you did with post #2 above from @malcolmlewis .

Repo for ufw:
https://download.opensuse.org/repositories/security/15.6/

Repo for knockd:
https://download.opensuse.org/repositories/network:/utilities/15.6/

These packages are not used in Standard openSUSE but offered from the OBS as explained.

Wait at least for a week to get answers.

Search at https://software.opensuse.org/, add repo if needed.

Ufw: openSUSE Software

https://software.opensuse.org/download/package?package=ufw&project=security

For 15.6 run the following as root:
zypper addrepo https://download.opensuse.org/repositories/security/15.6/security.repo 
zypper refresh
zypper install ufw

Knockd: openSUSE Software

For 15.6 run the following as root:
zypper addrepo https://download.opensuse.org/repositories/network:utilities/15.6/network:utilities.repo 
zypper refresh 
zypper install knockd

The more experimental repos you add the more manual work you need to avoid collisions.
I recommend to use separate OS installation for experiments.

Delete all Factory repos, uninstall packages from them.

Thank you very much, I am further on. :grinning: