iptables nat error
hi..i try this iptables -t nat -A POSTROUTING -j SNAT --to-source XXXXXXXXX (xxx my vps ip) and i get this error:
WARNING: Deprecated config file /etc/modprobe.conf, all config files belong into /etc/modprobe.d/. FATAL: Module ip_tables not found. iptables v1.4.10: can't initialize iptables table `nat': Table does not exist (do you need to insmod?) Perhaps iptables or your kernel needs to be upgraded. its a vps(openvz) that i rent.. uname -r: Quote:
|
mv modprobe.conf modprobe.d/modprobe.con
then rm modprobe.conf |
Quote:
FATAL: Module ip_tables not found. iptables v1.4.10: can't initialize iptables table `nat': Table does not exist (do you need to insmod?) Perhaps iptables or your kernel needs to be upgraded. |
can you please type the command you used ,there was a typo error in my command...
|
Quote:
where 111.111.111.111 i enter my vps ip.. thank you very much! PS that command didnt really work because --to--source didnt worked and i then used: iptables -t nat -A POSTROUTING -j SNAT --source 111.111.111.111 but still same problem with 'nat' table.. |
Quote:
you gave me: mv modprobe.conf modprobe.d/modprobe.con but i did it: mv modprobe.conf modprobe.d/modprobe.conf (i first went to cd /etc) |
I'd suggest first try to update your system with yum or yours distros update tool.It will install and update iptables and the kernel if needed.
If that doesnt work then try this link.. http://forums.gentoo.org/viewtopic-t...oosources.html |
All times are GMT -5. The time now is 02:29 AM. |