In short, sell me on ufw.

I learned recently that yfw is basically replacing iptables “everywhere”, and as I’m getting old and crusty, this means that I have to learn something new when I’d much rather practice yelling at kids to get off my lawn.

To me, iptables is fine, and I like its flexibility. I’ve been using it ever since it de facto replaced ipchains, so ease of use isn’treally a factor in this equation.

So my more pointed question is: Can I just stick to iptables, or am I missing out on something that can only be done with ufw?

  • iii@mander.xyz
    link
    fedilink
    English
    arrow-up
    10
    arrow-down
    1
    ·
    4 days ago

    UFW is an interface to a subset of iptables.

    There’s things iptables can do that UFW can’t. Nothing that UFW does, is impossible to do with iptables.

    By why might one use UFW I hear you wonder? Convenience.

    If you already master the art of iptables, no reason to learn UFW instead.

  • Shimitar@downonthestreet.eu
    link
    fedilink
    English
    arrow-up
    6
    arrow-down
    2
    ·
    4 days ago

    I think you got it wrong. Nft is replacing iptables. Ufw is only a frontend.

    Actually, your uoyabled might just be a wrapper on nft.

  • Xanza@lemm.ee
    link
    fedilink
    English
    arrow-up
    4
    arrow-down
    1
    ·
    4 days ago

    UFW is a wrapper which just makes interfacing with iptables bearable. UFW is iptables.

  • a_fancy_kiwi@lemmy.world
    link
    fedilink
    arrow-up
    4
    arrow-down
    1
    ·
    4 days ago

    If you know iptables, just stick with that. In my testing, docker containers seem to ignore ufw rules. Supposedly, iptable rules are respected but I haven’t learned iptables yet so I can’t verify.

    • iii@mander.xyz
      link
      fedilink
      English
      arrow-up
      6
      arrow-down
      1
      ·
      edit-2
      4 days ago

      There’s a forked ufw specifically to solve docker’s issues. (1)

      But yes, docker + ufw is something to be carefull about.

    • dan@upvote.au
      link
      fedilink
      arrow-up
      3
      arrow-down
      1
      ·
      4 days ago

      Docker really doesn’t like firewalls, and doesn’t seem to play nicely with them.

  • dan@upvote.au
    link
    fedilink
    arrow-up
    5
    arrow-down
    4
    ·
    edit-2
    4 days ago

    iptables is a legacy system that’s going away. If you don’t learn ufw, you’ll have to learn nftables.

    Edit: Not sure why I’m being downvoted for telling the truth lol

    • N0x0n@lemmy.ml
      link
      fedilink
      arrow-up
      1
      ·
      3 days ago

      Don’t know either, other than they can’t stand the thruth for a good reason? :/ We have been using iptables for years and now we have to relearn everything?

      • dan@upvote.au
        link
        fedilink
        arrow-up
        2
        ·
        edit-2
        3 days ago

        Yeah it’s unfortunate. The nftables syntax is a lot easier though!

        The same thing has happened before, around 15 years ago… Before iptables there was a system called ipchains. Migration took a while, but it was eventually done, and nobody talks about ipchains any more.