New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add more informative error message when user enters empty firewall rule service #2093

Closed
ghost opened this Issue Jun 20, 2016 · 4 comments

Comments

Projects
None yet
2 participants
@ghost

ghost commented Jun 20, 2016

Qubes OS version (e.g., R3.1):

R3.2

Affected TemplateVMs (e.g., fedora-23, if applicable):

All


Expected behavior:

When trying to set more specific settings for firewall rules for protocols (TCP, UDP) for AppVMs everything works and the new rules is added.

Actual behavior:

When adding a new firewall rule it only works to add a rule with a domain name and to allow all traffic to that domain. If you try to set more specific rules for the protocols an error message with the text "Service ' is unknown" pops up.

Steps to reproduce the behavior:

  1. Try to add firewall rule with specific protocol specified in an AppVM via the "[f]irewall rules" tab in Qubes manager.

General notes:

I haven't tested adding the rules using CLI.


@andrewdavidwong

This comment has been minimized.

Show comment
Hide comment
@andrewdavidwong

andrewdavidwong Jun 20, 2016

Member

Which service did you try adding the "Service" box? Did this work for you in R3.1?

I haven't tested adding the rules using CLI.

Since we're not sure whether this is just a Qubes Manager issue or a Core issue, I've tagged both.

Member

andrewdavidwong commented Jun 20, 2016

Which service did you try adding the "Service" box? Did this work for you in R3.1?

I haven't tested adding the rules using CLI.

Since we're not sure whether this is just a Qubes Manager issue or a Core issue, I've tagged both.

@ghost

This comment has been minimized.

Show comment
Hide comment
@ghost

ghost Jun 20, 2016

I've tested with both TCP and UDP, no service specific setting is needed to trigger the error. It worked without any problems in 3.1.

ghost commented Jun 20, 2016

I've tested with both TCP and UDP, no service specific setting is needed to trigger the error. It worked without any problems in 3.1.

@marmarek

This comment has been minimized.

Show comment
Hide comment
@marmarek

marmarek Jun 20, 2016

Member

When you select TCP or UDP you need to fill service field. The error message says empty service isn't valid. You can use port number, or even port range (for any port, simply use 1-65535).
So this bug is rather about misleading error message.

Member

marmarek commented Jun 20, 2016

When you select TCP or UDP you need to fill service field. The error message says empty service isn't valid. You can use port number, or even port range (for any port, simply use 1-65535).
So this bug is rather about misleading error message.

@ghost

This comment has been minimized.

Show comment
Hide comment
@ghost

ghost Jun 20, 2016

@marmarek Ok! I thought that it defaulted to `any' service if unspecified.

ghost commented Jun 20, 2016

@marmarek Ok! I thought that it defaulted to `any' service if unspecified.

@andrewdavidwong andrewdavidwong changed the title from Can't add specific firewall rules to Add more informative error message when user enters empty firewall rule service Jun 20, 2016

@marmarek marmarek closed this Jun 21, 2016

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment