OpenVZ Forum


Home » General » Support » iptables and NAT inside VE
iptables and NAT inside VE [message #34584] Mon, 19 January 2009 13:39 Go to previous message
digidax is currently offline  digidax
Messages: 30
Registered: March 2008
Member
Hello,

I'm doing inside the VE the iptables command on shell and get an error:

# iptables -t nat -A PREROUTING -s 0.0.0.0/0 -p tcp --dport 80 -j REDIRECT --to-port 8080
iptables v1.3.5: can't initialize iptables table `nat': Table does not exist (do you need to insmod?)
Perhaps iptables or your kernel needs to be upgraded.


On the HN I have expand in /etc/vz/vz.conf the line with iptables_nat:

IPTABLES="ipt_REJECT ipt_tos ipt_limit ipt_multiport iptable_filter iptable_mangle ipt_TCPMSS ipt_tcpmss ipt_ttl ipt_length iptables_nat"


Using Kernel: 2.6.18-92.1.13.el5.028stab059.6 #1 SMP

finished with rebooting the HN. What did I have forgot?

best regards
Frank
 
Read Message
Read Message
Read Message
Read Message
Read Message
Previous Topic: Oops.
Next Topic: simple internet router in VE?
Goto Forum:
  


Current Time: Mon Jul 15 17:32:12 GMT 2024

Total time taken to generate the page: 0.02351 seconds