Skip to content

Commit

Permalink
fix: when deny a client, delete its both src and dst connection
Browse files Browse the repository at this point in the history
Signed-off-by: Dengfeng Liu <[email protected]>
  • Loading branch information
liudf0716 committed Sep 26, 2024
1 parent d007144 commit ff01ca4
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/fw4_nft.c
Original file line number Diff line number Diff line change
Expand Up @@ -483,6 +483,7 @@ nft_fw_access(fw_access_t type, const char *ip, const char *mac, int tag)
nft_fw_del_rule_by_ip_and_mac(ip, NULL, "mangle_postrouting_wifidogx_incoming");
if (config->enable_del_conntrack) {
run_cmd("conntrack -D -s %s", ip);
run_cmd("conntrack -D -d %s", ip);
}
break;
default:
Expand Down

0 comments on commit ff01ca4

Please sign in to comment.