net/igmp-proxy: expose per-interface multicast whitelist in the GUI

Open
#5,755 0 comments 0 reactions 0 assignees View on GitHub

Maintainers usually reply within 1 day

Nobody has claimed this yet.

Assessment

Difficulty
3/5
Estimated time
1-2 days
Newbie friendliness
76/100
Issue type
Feature
Clarity
Clearly specified
Activity status
Active
Tech stack
php

Research direction

Start at /services_igmpproxy_edit.php and compare the requested Whitelist rows with the existing Network(s) layout. Review the attached patch and trace the plugin's persistent storage and configuration generation paths. Done means upstream and downstream interfaces accept validated multicast whitelist entries, preserve empty-field behavior, and regenerate the expected configuration.

Written by the indexing model from the issue text.

Description

Important notices

Before you add a new report, we ask you kindly to acknowledge the following:

Is your feature request related to a problem? Please describe.

The IGMP Proxy GUI does not expose igmpproxy's whitelist option. I need to restrict the multicast groups allowed on individual interfaces without manually editing the generated configuration.

This is useful in networks where multicast serves several purposes, such as IPTV and local services. An upstream whitelist limits the multicast groups requested on the ISP’s IPTV VLAN, preventing requests for unrelated local groups from being forwarded to the ISP.

The existing Network(s) field configures altnet, which controls source networks rather than multicast group whitelisting.

Describe the solution you'd like

Add a Whitelist section below Network(s) in the interface editor at /services_igmpproxy_edit.php, available for both upstream and downstream interfaces.

It should follow the existing Network(s) layout: a Network input, a CIDR dropdown, and add/remove buttons for each row.

Leaving the field empty should preserve the existing behavior of allowing all multicast groups.

Describe alternatives you've considered

Manually editing /usr/local/etc/igmpproxy.conf, but those changes are overwritten when OPNsense regenerates the configuration. A GUI setting would make the whitelist persistent and easier to maintain.

Additional context

A patch is available that adds GUI input, validation, persistent storage, and configuration generation. It rejects invalid or non-multicast ranges and removes duplicate entries.

I also successfully applied and tested the patch on my live OPNsense system.

Image
Dominant language
PHP
Stars
1.2k
Forks
926
Avg merge
1d 10h
Merged PRs (30d)
25

Getting set up

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

More from opnsense/plugins

All issues in opnsense/plugins

Similar issues

More PHP issues

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.