netfilter: nf_tables: add new expression nft_redir
This new expression provides NAT in the redirect flavour, which is to redirect packets to local machine. Signed-off-by: Arturo Borrero Gonzalez <arturo.borrero.glez@gmail.com> Signed-off-by: Pablo Neira Ayuso <pablo@netfilter.org>
This commit is contained in:
parent
9de920eddb
commit
e9105f1bea
11 changed files with 319 additions and 0 deletions
|
|
@ -837,6 +837,22 @@ enum nft_masq_attributes {
|
|||
};
|
||||
#define NFTA_MASQ_MAX (__NFTA_MASQ_MAX - 1)
|
||||
|
||||
/**
|
||||
* enum nft_redir_attributes - nf_tables redirect expression netlink attributes
|
||||
*
|
||||
* @NFTA_REDIR_REG_PROTO_MIN: source register of proto range start (NLA_U32: nft_registers)
|
||||
* @NFTA_REDIR_REG_PROTO_MAX: source register of proto range end (NLA_U32: nft_registers)
|
||||
* @NFTA_REDIR_FLAGS: NAT flags (see NF_NAT_RANGE_* in linux/netfilter/nf_nat.h) (NLA_U32)
|
||||
*/
|
||||
enum nft_redir_attributes {
|
||||
NFTA_REDIR_UNSPEC,
|
||||
NFTA_REDIR_REG_PROTO_MIN,
|
||||
NFTA_REDIR_REG_PROTO_MAX,
|
||||
NFTA_REDIR_FLAGS,
|
||||
__NFTA_REDIR_MAX
|
||||
};
|
||||
#define NFTA_REDIR_MAX (__NFTA_REDIR_MAX - 1)
|
||||
|
||||
/**
|
||||
* enum nft_gen_attributes - nf_tables ruleset generation attributes
|
||||
*
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue