openvz et sysctl.conf sous squeeze

Open with your favorite editor (eg: nano, vim) /etc/sysctl.conf and edit as following :

  • net.ipv4.conf.all.rp_filter=1
  • net.ipv4.icmp_echo_ignore_broadcasts=1
  • net.ipv4.conf.default.forwarding=1
  • net.ipv4.conf.default.proxy_arp = 0
  • net.ipv4.ip_forward=1 kernel.sysrq = 1
  • net.ipv4.conf.default.send_redirects = 1
  • net.ipv4.conf.all.send_redirects = 0
  • net.ipv4.conf.eth0.proxy_arp=1

After you’ve edited /etc/sysctl.conf file run: sysctl -p Step 4. Open /etc/vz/vz.conf and set as following: NOTE: This is important! If you don’t do this, networking will not work in the virtual machines!

NEIGHBOUR_DEVS=all