Sha256: bca84368b59a0235ded890bea205f04dc209b93205f8ecb398f96ec4c4c4a4ed
Contents?: true
Size: 639 Bytes
Versions: 13
Compression:
Stored size: 639 Bytes
Contents
set -x # Update APT and ensure our required packages are installed apt-get -y update apt-get -y install lxc bridge-utils debootstrap yum iptables ntpdate ntp sshpass # Ensure the default lxc networking services are off service lxc-net stop # Ensure NTP services are enabled and running service ntp restart || service ntp start # Enable ipv4 forwarding sysctl net.ipv4.ip_forward | grep "net.ipv4.ip_forward = 1" || sysctl -w net.ipv4.ip_forward=1 # Install an iptable NAT rule iptables -t nat --list -v | grep "MASQUERADE all -- any eth0 anywhere anywhere" || iptables -t nat -A POSTROUTING -o eth0 -j MASQUERADE
Version data entries
13 entries across 13 versions & 1 rubygems