This thread has been locked.
If you have a related question, please click the "Ask a related question" button in the top right corner. The newly created question will be automatically linked to this question.
Hi,
in ap_start.sh the following command is causing an issue (PSDK 3.01.00.06)
iptables -t nat -A POSTROUTING -o eth0 -j MASQUERADE
root@am437x-evm:/usr/share/wl18xx# iptables -t nat -A POSTROUTING -o eth0 -j MASQUERADE
iptables v1.6.0: can't initialize iptables table `nat': Table does not exist (do you need to insmod?)
Perhaps iptables or your kernel needs to be upgraded.
currently loaded modules
root@am437x-evm:/lib/modules/4.4.19-gdb0b54cdad# lsmod |grep "table"
iptable_filter 1608 0
ip_tables 11185 1 iptable_filter
x_tables 17691 2 ip_tables,iptable_filter
Am I missing the following config??
# CONFIG_IP_NF_NAT is not set
current .config settings, could you check if everything is as expected there?
CONFIG_NF_CONNTRACK=m
# CONFIG_NF_CONNTRACK_MARK is not set
CONFIG_NF_CONNTRACK_PROCFS=y
# CONFIG_NF_CONNTRACK_EVENTS is not set
# CONFIG_NF_CONNTRACK_TIMEOUT is not set
# CONFIG_NF_CONNTRACK_TIMESTAMP is not set
# CONFIG_NF_CT_PROTO_DCCP is not set
CONFIG_NF_CT_PROTO_SCTP=m
# CONFIG_NF_CT_PROTO_UDPLITE is not set
# CONFIG_NF_CONNTRACK_AMANDA is not set
# CONFIG_NF_CONNTRACK_FTP is not set
# CONFIG_NF_CONNTRACK_H323 is not set
# CONFIG_NF_CONNTRACK_IRC is not set
# CONFIG_NF_CONNTRACK_NETBIOS_NS is not set
# CONFIG_NF_CONNTRACK_SNMP is not set
# CONFIG_NF_CONNTRACK_PPTP is not set
# CONFIG_NF_CONNTRACK_SANE is not set
# CONFIG_NF_CONNTRACK_SIP is not set
# CONFIG_NF_CONNTRACK_TFTP is not set
# CONFIG_NF_CT_NETLINK is not set
# CONFIG_NF_CT_NETLINK_TIMEOUT is not set
CONFIG_NF_NAT=m
CONFIG_NF_NAT_NEEDED=y
CONFIG_NF_NAT_PROTO_SCTP=m
# CONFIG_NF_NAT_AMANDA is not set
# CONFIG_NF_NAT_FTP is not set
# CONFIG_NF_NAT_IRC is not set
# CONFIG_NF_NAT_SIP is not set
# CONFIG_NF_NAT_TFTP is not set
# CONFIG_NF_NAT_REDIRECT is not set
# CONFIG_NF_TABLES is not set
CONFIG_NF_DEFRAG_IPV4=m
CONFIG_NF_CONNTRACK_IPV4=m
CONFIG_NF_CONNTRACK_PROC_COMPAT=y
# CONFIG_NF_DUP_IPV4 is not set
# CONFIG_NF_LOG_ARP is not set
# CONFIG_NF_LOG_IPV4 is not set
# CONFIG_NF_REJECT_IPV4 is not set
CONFIG_NF_NAT_IPV4=m
# CONFIG_NF_NAT_MASQUERADE_IPV4 is not set
# CONFIG_NF_NAT_PPTP is not set
# CONFIG_NF_NAT_H323 is not set
CONFIG_IP_NF_IPTABLES=m
# CONFIG_IP_NF_MATCH_AH is not set
# CONFIG_IP_NF_MATCH_ECN is not set
# CONFIG_IP_NF_MATCH_TTL is not set
CONFIG_IP_NF_FILTER=m
# CONFIG_IP_NF_TARGET_REJECT is not set
# CONFIG_IP_NF_TARGET_SYNPROXY is not set
# CONFIG_IP_NF_NAT is not set
# CONFIG_IP_NF_MANGLE is not set
# CONFIG_IP_NF_RAW is not set
CONFIG_IP_NF_ARPTABLES=m
CONFIG_IP_NF_ARPFILTER=m
CONFIG_IP_NF_ARP_MANGLE=m
# CONFIG_NF_DEFRAG_IPV6 is not set
# CONFIG_NF_CONNTRACK_IPV6 is not set
# CONFIG_NF_DUP_IPV6 is not set
# CONFIG_NF_REJECT_IPV6 is not set
# CONFIG_NF_LOG_IPV6 is not set
# CONFIG_IP6_NF_IPTABLES is not set
CONFIG_BRIDGE_NF_EBTABLES=m
I looked through the following thread, but could not find any missing CONFIG.
iptables error on Linux SDK03.00.00.04 - Processors forum - Processors - TI E2E support forums
Thanks!
--Gunter
Hi Eyal,
checked the .config and the CONFIG
CONFIG_NETFILTER=y
CONFIG_NETFILTER_ADVANCED=y
are there.
To be sure I also ran verify_kernel_config.sh on the .config (this was after a git pull on the build-utilities to make sure it is the latest)
~/wl18xx/git/build-utilites/verify_kernel_config.sh .config
Validating kernel .config (base_config[@])
Missing - CONFIG_SECURITY=y
Do you want to add it [y/n] ? n
CONFIG_SECURITY=y was not added.
Missing - CONFIG_WIRELESS_EXT=y
Do you want to add it [y/n] ? n
CONFIG_WIRELESS_EXT=y was not added.
Missing - CONFIG_CRYPTO_ARC4=y
Do you want to add it [y/n] ? n
CONFIG_CRYPTO_ARC4=y was not added.
Missing - CONFIG_CRYPTO_ECB=y
Do you want to add it [y/n] ? n
CONFIG_CRYPTO_ECB=y was not added.
Missing - CONFIG_CRYPTO_MICHAEL_MIC=y
Do you want to add it [y/n] ? n
CONFIG_CRYPTO_MICHAEL_MIC=y was not added.
Missing - CONFIG_CRYPTO_CCM=y
Do you want to add it [y/n] ? n
CONFIG_CRYPTO_CCM=y was not added.
Missing - CONFIG_CRYPTO_GCM=y
Do you want to add it [y/n] ? n
CONFIG_CRYPTO_GCM=y was not added.
Missing - CONFIG_CRC7=y
Do you want to add it [y/n] ? n
CONFIG_CRC7=y was not added.
Missing - CONFIG_INPUT_UINPUT=y
Do you want to add it [y/n] ? n
CONFIG_INPUT_UINPUT=y was not added.
It doesn't look like any of the netfilter configs are missing. Could you check what else could be missing?
I am attaching the .config (this should be the one from a stock OOB PSDK3.01.00.06)
Regards,
--Gunter
Hi Eyal,
could you test the CONFIG_IP)NF_NAT change and then push the updated kernel configuration (maybe in an updated config fragment) back to the Linux PSDK team, so they can update their OOB as well?
Thanks!
--Gunter
Hi Eyal,
I was using the PSDK3.01.00.06 and the OOB defconfig.
As far as I understand, this defconfig is a result of a basic defconfig and then merged with additional fragments.
So the PSDK team needs to make sure what they merge has this CONFIG_
Regards,
--Gunter