diskimage-builder/flavours/mysql/first-boot.d/05-ipforwarding
2012-11-12 16:49:27 -08:00

5 lines
140 B
Bash
Executable file

#!/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