Skip to content

RDKBACCL-1853 SSH and WebUI not working - Ethernet Configurable WAN I…#363

Open
anatar818 wants to merge 1 commit into
developfrom
anatar818-patch-2
Open

RDKBACCL-1853 SSH and WebUI not working - Ethernet Configurable WAN I…#363
anatar818 wants to merge 1 commit into
developfrom
anatar818-patch-2

Conversation

@anatar818

Copy link
Copy Markdown

…nterface Integration

Reason for change: Verify configurable wan interface in BPI R4 (ethagent functionality)
Test Procedure: Build and flash the image ,Validate wan functionality for the customized interface name
Risks: None

…nterface Integration

Reason for change: Verify configurable wan interface in BPI R4 (ethagent functionality)
Test Procedure: Build and flash the image ,Validate wan functionality for the customized interface name
Risks: None
Copilot AI review requested due to automatic review settings July 7, 2026 08:00
@anatar818 anatar818 requested review from a team as code owners July 7, 2026 08:00

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Pull request overview

This PR aims to restore SSH/WebUI accessibility when the WAN interface name is configurable (e.g., on BPI R4), by ensuring firewall logic uses the correct WAN interface name when generating iptables rules.

Changes:

  • When FEATURE_RDKB_CONFIGURABLE_WAN_INTERFACE is enabled, initialize current_wan_ifname from syscfg (wan_physical_ifname) if sysevent doesn’t provide it.
  • When ETH WAN is enabled, generate the SSH filter iptables rule using current_wan_ifname (when set) under the configurable-WAN feature flag.

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

Comment on lines +2386 to +2393
if ('\0' == current_wan_ifname[0]) {
char wanInterface[BUFLEN_64] = {'\0'};
syscfg_get(NULL, "wan_physical_ifname", wanInterface, sizeof(wanInterface));
if(wanInterface[0] != '\0')
snprintf(current_wan_ifname, sizeof(current_wan_ifname), "%s", wanInterface);
else
snprintf(current_wan_ifname, sizeof(current_wan_ifname), "%s", default_wan_ifname);
}
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