Gufw not accepting subnet range in advanced firewall rule

Bug #1540077 reported by Kevin Reid
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Gufw
Invalid
Undecided
Unassigned

Bug Description

This is observed in Gufw v14.04.2 LTS. Creating a rule with a subnet in the 'from' field of an advanced rule results in an error.

The example would be a requirement to only allow hosts in the same subnet to have access to a particular service (e.g. RDP) and so the 'from' field would be set to a subnet of 192.168.0.0/24.

Attempting to add the rule results in an error in the log of "Error running: ufw allow in log from 192.168.0.0/24 3389 > ERROR: Wrong number of arguments".

Gufw appears to be trying to run the command: "ufw allow in log from 192.168.0.0/24 3389" which errors but compare this with the syntax of ufw which would be "ufw allow in log from 192.168.0.0/24 to any port 3389". This works successfully so it looks like Gufw is presenting incorrect syntax for this configuration in this version.

Revision history for this message
Kevin Reid (professor-knr) wrote :
Revision history for this message
costales (costales) wrote :

Thanks for your feedback Kevin :)

In the last version, I'm trying your screenshot and the command is:
ufw allow in log from 192.168.0.0/24 to any port 3389

Could you try the last version? It should work in your Mint version.

Thanks in advance!

Revision history for this message
Kevin Reid (professor-knr) wrote :

Hello Costales,

When you say the last version, which specific version do you mean? I am a Linux newbie so not fully knowledgeable on updates and versions unfortunately :-( . There is someone on linux mint forum who has tried Gufw subnet with latest ubuntu 16.04 build with success (see here http://forums.linuxmint.com/viewtopic.php?f=90&t=215465#wrap) - was this the latest version you were meaning?

Revision history for this message
costales (costales) wrote : Re: [Bug 1540077] Re: Gufw not accepting subnet range in advanced firewall rule

Don't worry :)
A new version of Mint will have a new version of Gufw.
This is fixed after your current version, then it's fixed in the last
versions of Mint :)
A hug!
--
Sent using Dekko from my Ubuntu device

costales (costales)
Changed in gui-ufw:
status: New → Invalid
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.