From 4deb7a2cff130dc3d1d7d7951a54d0e7b67fab11 Mon Sep 17 00:00:00 2001 From: Pavel Odintsov Date: Mon, 24 Aug 2015 23:17:11 +0300 Subject: [PATCH] Add docs about NAT configuration for OpenVZ --- src/ci/parallel_builder.go | 21 +++++++++++++++++++++ 1 file changed, 21 insertions(+) diff --git a/src/ci/parallel_builder.go b/src/ci/parallel_builder.go index 4093e69..6cebfc3 100644 --- a/src/ci/parallel_builder.go +++ b/src/ci/parallel_builder.go @@ -14,6 +14,27 @@ import "io/ioutil" var target_directory = "" var public_key_path = "/root/.ssh/id_rsa.pub" +/* + +Download all images +vztmpl-dl --update centos-6-x86_64 centos-6-x86 centos-7-x86_64 debian-7.0-x86 debian-7.0-x86_64 debian-8.0-x86_64 ubuntu-12.04-x86 ubuntu-12.04-x86_64 ubuntu-14.04-x86 ubuntu-14.04-x86_64 debian-6.0-x86_64 + +Please configure NAT before: + +Fix /etc/modprobe.d/openvz.conf to following content: +options nf_conntrack ip_conntrack_disable_ve0=0 +vim /etc/sysct.conf + +Uncomment: +net.ipv4.ip_forward=1 +sysctl -p +iptables -t nat -A POSTROUTING -s 10.10.10.1/24 -o eth0 -j SNAT --to 192.168.0.241 + +Save iptables config +/etc/init.d/iptables save + +*/ + /* For renaming of result packages you could use: find -type f| perl -e 'do{ chomp; my @m=split "/", $_; my @n = split /\./, $_; rename($_, "fastnetmon-git-447aa5b86bb5a248e310c15a4d5945e72594d6cf-$m[1]_x86_64.$n[-1]"); } for <>'