Skip to content

Commit

Permalink
netfilter: Add full cone NAT support
Browse files Browse the repository at this point in the history
Link: https://github.com/llccd/netfilter-full-cone-nat
Signed-off-by: Alexandre Frade <kernel@xanmod.org>
  • Loading branch information
xanmod committed Jan 12, 2022
1 parent 9463259 commit 08e0b98
Show file tree
Hide file tree
Showing 4 changed files with 1,426 additions and 0 deletions.
9 changes: 9 additions & 0 deletions net/ipv4/netfilter/Kconfig
Expand Up @@ -245,6 +245,15 @@ config IP_NF_TARGET_NETMAP
(e.g. when running oldconfig). It selects
CONFIG_NETFILTER_XT_TARGET_NETMAP.

config IP_NF_TARGET_FULLCONENAT
tristate "FULLCONENAT target support"
depends on NETFILTER_ADVANCED
select NETFILTER_XT_TARGET_FULLCONENAT
help
This is a backwards-compat option for the user's convenience
(e.g. when running oldconfig). It selects
CONFIG_NETFILTER_XT_TARGET_FULLCONENAT.

config IP_NF_TARGET_REDIRECT
tristate "REDIRECT target support"
depends on NETFILTER_ADVANCED
Expand Down
8 changes: 8 additions & 0 deletions net/netfilter/Kconfig
Expand Up @@ -994,6 +994,14 @@ config NETFILTER_XT_TARGET_NETMAP

To compile it as a module, choose M here. If unsure, say N.

config NETFILTER_XT_TARGET_FULLCONENAT
tristate '"FULLCONENAT" target support'
depends on NF_NAT
help
Full Cone NAT

To compile it as a module, choose M here. If unsure, say N.

config NETFILTER_XT_TARGET_NFLOG
tristate '"NFLOG" target support'
default m if NETFILTER_ADVANCED=n
Expand Down
3 changes: 3 additions & 0 deletions net/netfilter/Makefile
Expand Up @@ -215,3 +215,6 @@ obj-$(CONFIG_IP_VS) += ipvs/

# lwtunnel
obj-$(CONFIG_LWTUNNEL) += nf_hooks_lwtunnel.o

# FullconeNAT
obj-$(CONFIG_NETFILTER_XT_TARGET_FULLCONENAT) += xt_FULLCONENAT.o

0 comments on commit 08e0b98

Please sign in to comment.