OpenVZ Forum


Home » General » Support » REDIRECT does not work to server running inside a container
REDIRECT does not work to server running inside a container [message #42419] Thu, 14 April 2011 16:31
fsschmidt is currently offline  fsschmidt
Messages: 1
Registered: April 2011
Location: Brasil
Junior Member
Hi, I'm using Openvz on a Debian Squeeze system and created a container to deploy a squid server (also with debian squeeze template).

When I mark the ip address and port of my proxy server in the browsers of the clients it works perfectly, but I need to use transparent proxy so I created a rule on my firewall to redirect connections on the port 80 to my proxy server: iptables -t nat -I PREROUTING -i eth0 -s 192.168.100.0/24 -p tcp -m tcp --dport 80 -j DNAT --to-destination 192.168.100.249:3128

This redirection does not work to my squid server running on a container, but works if I redirect to my old proxy server running on a physical machine. What have I misunderstood?

My best regards,
Fabio S. Schmidt
EspĂ­rito Santo - Brazil
 
Read Message
Previous Topic: LVM for VZ partitions
Next Topic: reboot web panel
Goto Forum:
  


Current Time: Wed Aug 07 18:21:27 GMT 2024

Total time taken to generate the page: 0.02653 seconds