Skip to content

Commit

Permalink
netfilter: Add full cone NAT support
Browse files Browse the repository at this point in the history
  • Loading branch information
build authored and xanmod committed Aug 4, 2021
1 parent b0b7c72 commit 6f46f7f
Show file tree
Hide file tree
Showing 4 changed files with 753 additions and 0 deletions.
9 changes: 9 additions & 0 deletions net/ipv4/netfilter/Kconfig
Expand Up @@ -239,6 +239,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 @@ -949,6 +949,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 @@ -214,3 +214,6 @@ obj-$(CONFIG_IP_SET) += ipset/

# IPVS
obj-$(CONFIG_IP_VS) += ipvs/

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

0 comments on commit 6f46f7f

Please sign in to comment.