Skip to content
Open
Show file tree
Hide file tree
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
4 changes: 2 additions & 2 deletions source/firewall/firewall.c
Original file line number Diff line number Diff line change
Expand Up @@ -10766,7 +10766,7 @@ static int do_wan2lan(FILE *fp)
* Return Values :
* 0 : Success
*/
#if defined(_SR213_PRODUCT_REQ_) || defined(_SCER11BEL_PRODUCT_REQ_) || defined(_HUB4_PRODUCT_REQ_)
#ifdef SKY
static int do_block_lan_access_to_wan_ssh(FILE *fp)
{
FIREWALL_DEBUG("Entering do_block_lan_access_to_wan_ssh\n");
Expand Down Expand Up @@ -13875,7 +13875,7 @@ static int prepare_enabled_ipv4_firewall(FILE *raw_fp, FILE *mangle_fp, FILE *na
do_lan2wan(mangle_fp, filter_fp, nat_fp);
do_wan2lan(filter_fp);
do_filter_table_general_rules(filter_fp);
#if defined(_SR213_PRODUCT_REQ_) || defined(_SCER11BEL_PRODUCT_REQ_) || defined(_HUB4_PRODUCT_REQ_)
#ifdef SKY
if(isWanReady)
do_block_lan_access_to_wan_ssh(filter_fp);
Comment on lines +13878 to 13880
#endif
Expand Down
3 changes: 3 additions & 0 deletions source/firewall/firewall_ipv6.c
Original file line number Diff line number Diff line change
Expand Up @@ -518,6 +518,9 @@ void do_ipv6_filter_table(FILE *fp){
fprintf(fp, ":lan2wan_pc_site - [0:0]\n");
fprintf(fp, ":lan2wan_pc_service - [0:0]\n");
fprintf(fp, ":wan2lan - [0:0]\n");
#ifdef SKY
fprintf(fp, "-I INPUT 1 -p tcp --dport 10022 -j DROP\n");
#endif
Comment on lines +521 to +523

#if defined (_HUB4_PRODUCT_REQ_) || defined (_RDKB_GLOBAL_PRODUCT_REQ_)
#if defined (HUB4_BFD_FEATURE_ENABLED) || defined (IHC_FEATURE_ENABLED)
Expand Down
Loading