04-10-2017, 08:37 AM
(04-03-2017, 04:36 PM)Morkin Wrote: With the new TinkerOs V1.6, iptables_nat should be integrated in the kernel.
But it seems that there are other kernel modules missing that I need for NAT.
The command 'sudo iptables -t nat -A POSTROUTING -o eth0 -j MASQUERADE'
now results in the error message 'iptables: No chain/target/match by that name.'
So even with V1.6 it is not possible for me to configure a wireless router.
I can confirm this with V1.6 (Beta):
Code:
sudo iptables -t nat -A POSTROUTING -s 10.9.0.0/24 -o eth0 -j MASQUERADE
iptables: No chain/target/match by that name.Looking at the config, I guess the missing entry is CONFIG_NF_NAT_MASQUERADE_IPV4 (and CONFIG_NF_NAT_MASQUERADE_IPV6, respectively):
Code:
zcat /proc/config.gz | grep -i nf_nat
CONFIG_NF_NAT=y
CONFIG_NF_NAT_NEEDED=y
# 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_NAT_IPV4=y
# 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_NAT=y
CONFIG_NF_NAT_IPV6=y
# CONFIG_NF_NAT_MASQUERADE_IPV6 is not set
# CONFIG_IP6_NF_NAT is not setSo, could you please enable this as well? Thank you!
IP masquerading is an important feature, e.g., for a VPN server to route VPN traffic to the internal network correctly, which seems to be a common use case for the Tinker Board.



![[-]](https://tinkerboarding.co.uk/forum/images/collapse.png)