Skip to content

Commit

Permalink
kmod-oaf: limit conntrack direction
Browse files Browse the repository at this point in the history
  • Loading branch information
jjm2473 committed Mar 14, 2024
1 parent f6577b2 commit 5b50f7b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion oaf/src/app_filter.c
Original file line number Diff line number Diff line change
Expand Up @@ -980,7 +980,7 @@ u_int32_t app_filter_hook_gateway_handle(struct sk_buff *skb, struct net_device
return NF_ACCEPT;

ct = nf_ct_get(skb, &ctinfo);
if (ct == NULL || !nf_ct_is_confirmed(ct))
if (ct == NULL || CTINFO2DIR(ctinfo) == IP_CT_DIR_REPLY || !nf_ct_is_confirmed(ct))
return NF_ACCEPT;

AF_CLIENT_LOCK_R();
Expand Down

0 comments on commit 5b50f7b

Please sign in to comment.