I am trying to set up my Raspberry Pi as a Man In The Middle device to monitor devices on my home network. When I try to forward port 80 to port 8080 (to allow the webpage to be loaded on the device) I receive an error. Here is the command I'm running to forward the port.
iptables -t nat -A PREROUTING -i eth0 -p tcp --dport 80 -j REDIRECT --to-port 8080
I receive the following error.
libkmod: ERROR ../libkmod/libkmod.c:554 kmod_search_moddep: could not open moddep file '/lib/modules/3.10.28+/modules.dep.bin' iptables v1.4.14: can't initialize iptables table `nat': Table does not exist (do you need to insmod?)
Can someone help me, did I not install a package correctly?