Hello Danushka, On Tue, Dec 01, 2015 at 03:29:33PM -0500, Danushka Menikkumbura wrote: > Hi Erik, > > I am happy to look into the network namespace-based approach that you > have mentioned but before that I tried to use DNAT on my Linux box but > ended up having the following error. > > iptables v1.4.21: can't initialize iptables table `nat': Table does > not exist (do you need to insmod?) That error message hints at a missing module. On my Ubuntu system with NAT I have the following related modules loaded: iptable_nat nf_nat nf_conntrack_ipv4 nf_conntrack nf_defrag_ipv4 iptable_filter ip_tables x_tables > Perhaps iptables or your kernel needs to be upgraded. > > Please note that I used a kernel source version (3.19.8-ckt5+) to > compile and install iptables module using "menuconfig" (Networking > support > Networking options > Network packet filtering framework > (Netfilter) > IP: Netfilter Configuration > IP tables support > (required for filtering/masq/NAT)). > > Could you shed some light on this please? If you are compiling your own kernel, be sure to include all features you need. I'd advise to use distribution kernels unless you know how to configure a kernel to fit your needs. Best regards, Erik -- I think of math as a splendid way to learn to think straight. -- Bjarne Stroustrup -- To unsubscribe from this list: send the line "unsubscribe lartc" in the body of a message to majordomo@xxxxxxxxxxxxxxx More majordomo info at http://vger.kernel.org/majordomo-info.html