diskimage-builder/elements/nova-vm/first-boot.d/05-ipforwarding

6 lines
140 B
Text
Raw Normal View History

2012-11-13 00:49:27 +00:00
#!/bin/bash
set -e
set -o xtrace
sed -i -r 's/^\s*#(net\.ipv4\.ip_forward=1.*)/\1/' /etc/sysctl.conf
echo 1 > /proc/sys/net/ipv4/ip_forward