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 f3d5116 commit a1d8a69
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
Original file line number Diff line number Diff line change
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
Original file line number Diff line number Diff line change
Expand Up @@ -973,6 +973,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
Original file line number Diff line number Diff line change
Expand Up @@ -211,3 +211,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 a1d8a69

Please sign in to comment.