iptables rule not working on local network [message #40363] |
Fri, 13 August 2010 18:01 |
newovz
Messages: 4 Registered: August 2010
|
Junior Member |
|
|
Hi,
I have installed OpenVZ on a CentOS 5.5 server in our Office.
The HN IP is static and its IP is 192.168.1.70
I have created a VPS/VE/Container with ID 110 and IP 192.168.1.110
/proc/sys/net/ipv4/ip_forward is set TO 1
Now I have passed the following iptables command:
/sbin/iptables -t nat -A PREROUTING -p tcp --dport 5454 -d ! 192.168.1.70/32 -j DNAT --to-destination 192.168.1.70:5454
http://192.168.1.70:5454 has our Control Panel and we wanted that anyone accessing the address http://192.168.1.110:5454 to view the Control Panel.
But this is not working. I can ping the IP 192.168.1.110 from anywhere on the network. But the URL http://192.168.1.110:5454 is not being forwarded to http://192.168.1.70:5454
What could be the reason for it ?
Please help me!
I am a newbie!
[Updated on: Fri, 13 August 2010 18:02] Report message to a moderator
|
|
|