Skip to content

[Bug Report] Invalid CIDR addres error when setting LAN as network address #1559

@justuswilhelm

Description

@justuswilhelm

Describe the bug:

Include the following information:

  • OpenSnitch version: 1.7.2
  • OS: NixOS
  • OS version: 25.11 (Xantusia)
  • Window Manager: sway version 1.11
  • Kernel version: Linux helium 6.12.73 #1-NixOS SMP PREEMPT_DYNAMIC Mon Feb 16 16:09:13 UTC 2026 x86_64 GNU/Linux

To Reproduce:

Steps to reproduce the behavior:

  1. Open OpenSnitch Network Statistics
  2. Press Create a new rule...
  3. Enter LAN-invalid-CIDR in Name field
  4. Select Network tab
  5. Check To this IP / Network
  6. Select LAN from the drop down to the right of the To this IP / Network field
  7. See the following error appear below:

Error applying rule: (2) error compiling rule: CIDR parsing error: invalid CIDR address: LAN

Post error logs:

From journalctl -f -u opensnitchd.service:

Mar 06 10:54:25 XXX opensnitchd[87218]: [2026-03-06 01:54:25] WAR Operator.Compile() error: CIDR parsing error: invalid CIDR address: LAN: LAN
Mar 06 10:54:25 XXX opensnitchd[87218]: [2026-03-06 01:54:25] WAR [notification] Error changing rule: (2) error compiling rule: CIDR parsing error: invalid CIDR address: LAN [Enabled] LAN-invalid-CIDR: if(dest.network is 'LAN'){ deny once }

Expected behavior (optional):

OpenSnitch should let me use the LAN network for filtering.

Screenshots:

Image

Additional context:

I've tried setting it directly as a JSON rule. In that case, the To this IP / Network field shows 169.254.0.0/16 when setting the value to LAN in JSON.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions