Do this:
1- Reset Gufw to the install state (clean all rules)
2- Set Gufw to Deny incoming, Allow outgoing.
3- Add a rule "Allow / Outgoing / Both / 12346"
4- Add a rule "Allow / Incoming / Both / 12345"
5- Check "ufw status numbered"
emi...@laptop:~$ sudo ufw status numbered
Estado: activo (Status: Active)

     Hasta (to)                      <emph>Acción</emph> (action) Desde (from)
     -----                      ------------------------
[ 1] 12346                      ALLOW OUT   Anywhere (out)
[ 2] 12345                      ALLOW IN    Anywhere

6- Click on the UI the rule that says "12346 /  ALLOW OUT / Anywhere" and then 
on Remove. The wrong rule will be deleted.
7- Check "ufw status numbered"
emi...@laptop:~$ sudo ufw status numbered
Estado: activo

     Hasta                      <emph>Acción</emph>Desde
     -----                      ------------------------
[ 1] 12346                      ALLOW OUT   Anywhere (out)

8- Check the Gufw logs:
ufw enable
ufw allow out from any to any port 12346
ufw allow in from any to any port 12345
ufw --force delete 2

As you can see, The ALLOW OUT rule is #2 for Gufw, but I don't know why.
I added it first, but nevertheless, after adding the second rule, it
appeared second in Gufw's UI. It might be related to the fact that it
isn't active (grey colored, and it doesn't make much sense as outgoing
is all allowed, why allow it specifically?)

Hope you can debug this issue with this information Marcos!

-- 
GUFW erases the rule not selected to be erased
https://bugs.launchpad.net/bugs/578404
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.

-- 
ubuntu-bugs mailing list
ubuntu-bugs@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs

Reply via email to