Hello,
I have a question
I converted a physical machine to a virtual openvz / proxmox and it work fine - thanks to the proxmox team - !
But on the virtual openvz machine my iptables rule does not seem to work
I explain what i want to do :
redirect the tcp traffic on port 22000 to another machine (192.168.151.100) on the lan :
iptables -A PREROUTING -t nat -p tcp --dport 22000 -j DNAT --to 192.168.151.100:22
This rule works fine on my physical machine but nut on this virtulized machine
On the destination machine (192.168.151.100) i don't see anything comming on the 22000 port (with tcpdump)
My proxmox version is : 2.6.24-8-pve #1 SMP PREEMPT Fri Oct 16 11:17:55 CEST 2009 x86_64 GNU/Linux
My virtual Openvz Machine is CentOS 4.6
I already put in /etc/vz/vz.conf :
IPTABLES="ipt_REJECT ipt_tos ipt_TOS ipt_LOG ip_conntrack ipt_limit ipt_multiport iptable_filter iptable_mangle ipt_TCPMSS ipt_tcpmss ipt_ttl ipt_length ipt_state iptable_nat ip_nat_ftp"
and the same in file /etc/vz/conf/104.conf
Can you explain me what i've done wrong ?
Thank's
ced
I have a question
I converted a physical machine to a virtual openvz / proxmox and it work fine - thanks to the proxmox team - !
But on the virtual openvz machine my iptables rule does not seem to work
I explain what i want to do :
redirect the tcp traffic on port 22000 to another machine (192.168.151.100) on the lan :
iptables -A PREROUTING -t nat -p tcp --dport 22000 -j DNAT --to 192.168.151.100:22
This rule works fine on my physical machine but nut on this virtulized machine
On the destination machine (192.168.151.100) i don't see anything comming on the 22000 port (with tcpdump)
My proxmox version is : 2.6.24-8-pve #1 SMP PREEMPT Fri Oct 16 11:17:55 CEST 2009 x86_64 GNU/Linux
My virtual Openvz Machine is CentOS 4.6
I already put in /etc/vz/vz.conf :
IPTABLES="ipt_REJECT ipt_tos ipt_TOS ipt_LOG ip_conntrack ipt_limit ipt_multiport iptable_filter iptable_mangle ipt_TCPMSS ipt_tcpmss ipt_ttl ipt_length ipt_state iptable_nat ip_nat_ftp"
and the same in file /etc/vz/conf/104.conf
Can you explain me what i've done wrong ?
Thank's
ced