Skip to content

igmpproxy: support new phyint options in init script - #30486

Open
RewardedIvan wants to merge 1 commit into
openwrt:masterfrom
RewardedIvan:igmpproxy-uci
Open

igmpproxy: support new phyint options in init script#30486
RewardedIvan wants to merge 1 commit into
openwrt:masterfrom
RewardedIvan:igmpproxy-uci

Conversation

@RewardedIvan

Copy link
Copy Markdown

📦 Package Details

Maintainer: @nbd168

Description:

  • made ratelimit configurable
  • added whitelist and blacklist
  • stopped dropping SSDP by default
  • increased pkg release

🧪 Run Testing Details

  • OpenWrt Version: x86
  • OpenWrt Target/Subtarget: 64
  • OpenWrt Device: qemu

✅ Formalities

  • I have reviewed the CONTRIBUTING.md file for detailed contributing guidelines.

If your PR contains a patch:

  • It can be applied using git am
  • It has been refreshed to avoid offsets, fuzzes, etc., using
    make package/<your-package>/refresh V=s
  • It is structured in a way that it is potentially upstreamable

@openwrt-ai openwrt-ai left a comment

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Commit checks

  • 832aafe "igmpproxy: update the uci config" — no UCI config is updated: files/igmpproxy.config is untouched, so the new ratelimit/threshold/whitelist/blacklist options ship undocumented while altnet and verbose are shown there. Add them to the sample config, or retitle to describe the init-script change.
  • 832aafe body — threshold is also made configurable but is not listed; and "stopped dropping SSDP by default" describes an opt-out that remains available, whereas the diff deletes the rule with no way to re-enable it.

The three red build jobs (x86_64, arm_cortex-a15, mips_24kc) fail in the feed setup step (wget: exited with error 8 / UNTRUSTED signature fetching packages.adb), not on this package — looks like CI infrastructure, not this PR.


Generated by Claude Code

Comment thread net/igmpproxy/files/igmpproxy.init
Comment thread net/igmpproxy/files/igmpproxy.init
made ratelimit and threshold configurable
added whitelist and blacklist
made SSDP firewall dropping configurable
increase pkg release

Signed-off-by: Ivan Klichenko <ivan@int4.cc>
@RewardedIvan RewardedIvan changed the title igmpproxy: update the uci config igmpproxy: support new phyint options in init script Sep 9, 2026
igmp_add_firewall_routing() {
config_get direction $1 direction
config_get zone $1 zone
config_get fw_drop_ssdp $1 fw_drop_ssdp

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

/etc/config/igmpproxy is listed in conffiles, so an existing install keeps its old config on upgrade, fw_drop_ssdp is unset, and the SSDP drop rule silently disappears. Default it to 1, and use config_get_bool so true/on/yes are accepted like quickleave in igmp_header.

Suggested change
config_get fw_drop_ssdp $1 fw_drop_ssdp
config_get_bool fw_drop_ssdp $1 fw_drop_ssdp 1

Generated by Claude Code

for whitelist in $whitelists; do
echo -e "\twhitelist $whitelist" >> /var/etc/igmpproxy.conf
done
elif [ -n "$blacklists" ]; then

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

A phyint that sets both list whitelist and list blacklist now gets every blacklist entry silently dropped from the generated conf, with no diagnostic. Either emit both lists, or keep the exclusivity and log it (e.g. procd_append_param error) so the discarded config is visible.


Generated by Claude Code

config phyint
option network lan
option zone lan
option fw_drop_ssdp 1

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

nit: fw_drop_ssdp is the only one of the five new options that reaches the sample config; ratelimit, threshold, whitelist and blacklist ship undiscoverable. Add commented examples for them here, the way verbose is documented on line 3.


Generated by Claude Code

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

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants