Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 5 additions & 1 deletion source/firewall/firewall.c
Original file line number Diff line number Diff line change
Expand Up @@ -12479,14 +12479,18 @@ static int prepare_subtables(FILE *raw_fp, FILE *mangle_fp, FILE *nat_fp, FILE *
if(bEthWANEnable)
{
//ETH WAN is TC XB6 exclusive feature
if (strcmp(current_wan_ifname, default_wan_ifname ) == 0)
#ifdef FEATURE_RDKB_CONFIGURABLE_WAN_INTERFACE
fprintf(filter_fp, "-A INPUT -i %s -p tcp -m tcp --dport 22 -j SSH_FILTER\n", current_wan_ifname);
#else
if (strcmp(current_wan_ifname, default_wan_ifname ) == 0)
{
Comment thread
anatar818 marked this conversation as resolved.
fprintf(filter_fp, "-A INPUT -i %s -p tcp -m tcp --dport 22 -j SSH_FILTER\n", current_wan_ifname);
}
else
{
fprintf(filter_fp, "-A INPUT -i %s -p tcp -m tcp --dport 22 -j SSH_FILTER\n", default_wan_ifname);
}
#endif
}
else if (erouterSSHEnable) // Applicable only for PUMA7 platforms
{
Expand Down
Loading