[Request] How to enable CONFIG_NF_NAT_IPV4 kernel module?
by finalturismo from LinuxQuestions.org on (#4THB2)
So i am trying to enable NAT capabilities on my Gentoo based server i am working on.
The problem is when i try to do anything with the nat table i get the following error
Code:iptables -t nat -Fiptables v1.8.3 (legacy): can't initialize iptables table `nat': Table does not exist (do you need to insmod?)
Perhaps iptables or your kernel needs to be upgraded.
When i check the enable kernel options it says that CONFIG_NF_NAT_IPV4 is not enabled
Code:zgrep NAT /proc/config.gzCONFIG_ARCH_HIBERNATION_POSSIBLE=y
CONFIG_ARCH_HIBERNATION_HEADER=y
CONFIG_HIBERNATE_CALLBACKS=y
CONFIG_HIBERNATION=y
CONFIG_NF_NAT=m
CONFIG_NF_NAT_NEEDED=y
CONFIG_NF_NAT_PROTO_DCCP=y
CONFIG_NF_NAT_PROTO_UDPLITE=y
CONFIG_NF_NAT_PROTO_SCTP=y
CONFIG_NF_NAT_AMANDA=m
CONFIG_NF_NAT_FTP=m
CONFIG_NF_NAT_IRC=m
CONFIG_NF_NAT_SIP=m
CONFIG_NF_NAT_TFTP=m
CONFIG_NFT_NAT=m
# CONFIG_NETFILTER_XT_NAT is not set
CONFIG_NF_NAT_IPV4=m
CONFIG_NF_NAT_SNMP_BASIC=m
CONFIG_NF_NAT_PROTO_GRE=m
CONFIG_NF_NAT_PPTP=m
CONFIG_NF_NAT_H323=m
# CONFIG_IP_NF_NAT is not set
CONFIG_NF_NAT_IPV6=m
# CONFIG_IP6_NF_NAT is not set
CONFIG_BRIDGE_EBT_T_NAT=m
CONFIG_BRIDGE_EBT_DNAT=m
CONFIG_BRIDGE_EBT_SNAT=m
CONFIG_NET_ACT_NAT=m
CONFIG_NET_VENDOR_NATSEMI=y
CONFIG_NATSEMI=m
CONFIG_NATIONAL_PHY=m
# CONFIG_INTEGRITY_SIGNATURE is not set
CONFIG_CHECK_SIGNATURE=y
So anyone know how to enable this option, i cant seem to find a solution.


The problem is when i try to do anything with the nat table i get the following error
Code:iptables -t nat -Fiptables v1.8.3 (legacy): can't initialize iptables table `nat': Table does not exist (do you need to insmod?)
Perhaps iptables or your kernel needs to be upgraded.
When i check the enable kernel options it says that CONFIG_NF_NAT_IPV4 is not enabled
Code:zgrep NAT /proc/config.gzCONFIG_ARCH_HIBERNATION_POSSIBLE=y
CONFIG_ARCH_HIBERNATION_HEADER=y
CONFIG_HIBERNATE_CALLBACKS=y
CONFIG_HIBERNATION=y
CONFIG_NF_NAT=m
CONFIG_NF_NAT_NEEDED=y
CONFIG_NF_NAT_PROTO_DCCP=y
CONFIG_NF_NAT_PROTO_UDPLITE=y
CONFIG_NF_NAT_PROTO_SCTP=y
CONFIG_NF_NAT_AMANDA=m
CONFIG_NF_NAT_FTP=m
CONFIG_NF_NAT_IRC=m
CONFIG_NF_NAT_SIP=m
CONFIG_NF_NAT_TFTP=m
CONFIG_NFT_NAT=m
# CONFIG_NETFILTER_XT_NAT is not set
CONFIG_NF_NAT_IPV4=m
CONFIG_NF_NAT_SNMP_BASIC=m
CONFIG_NF_NAT_PROTO_GRE=m
CONFIG_NF_NAT_PPTP=m
CONFIG_NF_NAT_H323=m
# CONFIG_IP_NF_NAT is not set
CONFIG_NF_NAT_IPV6=m
# CONFIG_IP6_NF_NAT is not set
CONFIG_BRIDGE_EBT_T_NAT=m
CONFIG_BRIDGE_EBT_DNAT=m
CONFIG_BRIDGE_EBT_SNAT=m
CONFIG_NET_ACT_NAT=m
CONFIG_NET_VENDOR_NATSEMI=y
CONFIG_NATSEMI=m
CONFIG_NATIONAL_PHY=m
# CONFIG_INTEGRITY_SIGNATURE is not set
CONFIG_CHECK_SIGNATURE=y
So anyone know how to enable this option, i cant seem to find a solution.