Skip to content

Commit

Permalink
netfilter: nf_tables_bridge: update hook_mask to allow {pre,post}routing
Browse files Browse the repository at this point in the history
Fixes: 36d2af5 ("netfilter: nf_tables: allow to filter from prerouting and postrouting")
Signed-off-by: Pablo Neira Ayuso <pablo@netfilter.org>
  • Loading branch information
Pablo Neira Ayuso committed Oct 31, 2014
1 parent 3d53666 commit 4d87716
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions net/bridge/netfilter/nf_tables_bridge.c
Original file line number Diff line number Diff line change
Expand Up @@ -75,9 +75,11 @@ static const struct nf_chain_type filter_bridge = {
.type = NFT_CHAIN_T_DEFAULT,
.family = NFPROTO_BRIDGE,
.owner = THIS_MODULE,
.hook_mask = (1 << NF_BR_LOCAL_IN) |
.hook_mask = (1 << NF_BR_PRE_ROUTING) |
(1 << NF_BR_LOCAL_IN) |
(1 << NF_BR_FORWARD) |
(1 << NF_BR_LOCAL_OUT),
(1 << NF_BR_LOCAL_OUT) |
(1 << NF_BR_POST_ROUTING),
};

static int __init nf_tables_bridge_init(void)
Expand Down

0 comments on commit 4d87716

Please sign in to comment.