Skip to content
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

Support firewall rules for opensnitch-ui #6164

Open
Dietr1ch opened this issue Dec 2, 2024 · 2 comments
Open

Support firewall rules for opensnitch-ui #6164

Dietr1ch opened this issue Dec 2, 2024 · 2 comments
Assignees

Comments

@Dietr1ch
Copy link

Dietr1ch commented Dec 2, 2024

Description

We currently have services.opensnitch-ui.enable, but there's no way to specify rules for it.

NixOS on the other hand, supports adding rules.

I have no idea if there's a nice way to support a configuration file that would be read by opensnitch/opensnitch-ui right now, so this might be blocked on them supporting it in the first place.

This support would be the groundwork to support exposing rules config under programs.*, so similar to how today we can use programs.foo.openFirewallForBar = true, we could get the firewall configured if we didn't care to write our own opensnitch rules for some program.

@rycee
Copy link
Member

rycee commented Dec 2, 2024

I'm not familiar with opensnitch. Does it support having user-specified rules? If it's a system level firewall then Home Manager would have no way to do anything.

@Dietr1ch
Copy link
Author

Dietr1ch commented Dec 3, 2024

I'm not familiar with opensnitch. Does it support having user-specified rules? If it's a system level firewall then Home Manager would have no way to do anything.

It's a two-part system, a System-level firewall that can have system level rules (Allow reaching to systemd-resolved at localhost:53), and a user-level UI to adjust rules that can be at an application level (Allow *:443, but only for firefox running as my user).

I find myself maintaining user/application level rules on my own, and writing down system level rules on my NixOS config. It'd be nice to be able to write the rules for my applications managed by home-manager with the home-manager config itself.

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

No branches or pull requests

4 participants