Updating kernel is not an option, I'm getting the following message when trying to run iptablesroot@mail:/etc/postfix# iptables -L    libkmod: ERROR ../libkmod/libkmod.c:554 kmod_search_moddep: could not open moddep file '/lib/modules/2.6.32-5-xen-amd64/modules.dep.bin'    iptables v1.4.14: can't initialize iptables table `filter': Table does not exist (do you need to insmod?)    Perhaps iptables or your kernel needs to be upgraded.UPDATE:after running root@mail:/home/admin#  sudo depmodI getERROR: could not open directory /lib/modules/2.6.32-5-xen-amd64: No such file or directoryFATAL: could not search modules: No such file or directoryand after root@mail:/home/admin#  sudo modinfo ip_tablesI getlibkmod: ERROR ../libkmod/libkmod.c:554 kmod_search_moddep: could not open moddep file '/lib/modules/2.6.32-5-xen-amd64/modules.dep.bin'ERROR: Module alias ip_tables not found.It looks like kernel update is a must.
iptables - could not open moddep file'
debian;iptables
Did you recently upgrade the kernel on this installation? Typically iptables is built into the kernel and by default is not an external module (typically - I'm sure there are plenty of situations where that is not the case).Try the depmod command to have the module load order recalculated; it will fix this issue on occasion: sudo depmodYou will need to reboot after running depmod for it to have an impact. If you get an error, please update your question with it.Then see if ip_tables.ko is present at all: sudo modinfo ip_tablesIf it's not loaded, try loading it: sudo modprobe ip_tablesLastly, as a potentially valuable data point, see what iptables related kernel modules are in use with this command, and update your question with the details. cat /proc/net/ip_tables_matchesIf it is just not found, try to see if the file is on the system: find / -name ip_tables.koIf it's not, I believe you will have to at a minimum rebuild (or reinstall from packages) the kernel modules for your kernel release.