Page 1 of 1

IPTABLES / NAT / MASQUERADE?

PostPosted: Wed Aug 12, 2015 3:26 am
by andyconn7
Any gurus out there with thoughts on how to get this working? Any attempt to reference the "nat" chain is unsuccessful.

* Kickstarter Parallella with fresh install of the Headless Ubuntu from the Getting Starting instructions

* iptables -t nat -L generates this error:

parallella@parallella:~$ sudo iptables -t nat -L
modprobe: ERROR: ../libkmod/libkmod.c:556 kmod_search_moddep() could not open moddep file '/lib/modules/3.14.12-parallella-xilinx-g40a90c3/modules.dep.bin'
iptables v1.4.21: can't initialize iptables table `nat': No chain/target/match by that name
Perhaps iptables or your kernel needs to be upgraded.

Re: IPTABLES / NAT / MASQUERADE?

PostPosted: Wed Aug 12, 2015 7:24 pm
by sebraa
Try the following:
- run "depmod -a" as root, then do the iptables command again
- try to manually load the "iptable_nat" kernel module
- check if the NAT module is actually part of the kernel (see /proc/config.gz, uncompress and check whether CONFIG_NF_NAT is "y" or "m"). If this is not enabled, you need to compile your own kernel.

Best Regards,
sebraa