os-igmp-proxy: make quickleave optional (currently hardcoded, causes periodic IPTV dropouts)

Open
#5,760 2 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
68/100
Issue type
Feature
Clarity
Mostly clear
Activity status
Active
Tech stack
php
Domain
networking

Research direction

Start with /usr/local/etc/inc/plugins.inc.d/igmpproxy.inc and inspect the existing Services > IGMP Proxy configuration form and related settings handling. Add a Quick leave option with the stated default, make configuration generation honor it, and verify that the resulting igmpproxy.conf omits or includes quickleave as selected.

Written by the indexing model from the issue text.

Description

incomplete

/usr/local/etc/inc/plugins.inc.d/igmpproxy.inc always writes quickleave into /usr/local/etc/igmpproxy.conf, and there is no GUI option to disable it. With quickleave enabled, when a group's membership times out on the downstream side, igmpproxy immediately sends a leave upstream instead of first querying the LAN. The receiver answers 1 to 3 s later and igmpproxy rejoins, so every receiver loses 1 to 4 s of stream.

Evidence (Vodafone Portugal IPTV, OPNsense 26.7.4, upstream IGMPv3 querier every 20 s, LAN IGMPv2):

WAN capture: 192.168.100.2 > 224.0.0.22: igmp v3 report [gaddr 239.196.6.5 to_in, 0 source(s)] (leave), then about 2 s later to_ex (rejoin).
LAN capture over the same window: no IGMP leave from any set-top box, only a v2 report from the box just before the rejoin.
Stream gaps of 1 to 4 s on the WAN interface every 4 to 5 minutes, matching each leave and rejoin.
After removing the quickleave line and restarting igmpproxy: a 15-minute capture shows zero gaps.

Describe the solution you'd like
A checkbox in Services > IGMP Proxy (for example "Quick leave", default unchanged for compatibility) that controls whether quickleave is written to igmpproxy.conf.

Additional context
The current workaround (editing igmpproxy.inc) is lost on every update. Quickleave is only safe when each downstream interface has a single receiver per group; with several set-top boxes or IGMP snooping switches on the LAN, it causes the dropouts above.

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.