#!/bin/bash -x

echo "net.ipv4.ip_forward=1" > /etc/sysctl.d/ipforward.conf
echo "net.ipv6.conf.all.forwarding=1" >> /etc/sysctl.d/ipforward.conf
echo 1 > /proc/sys/net/ipv4/ip_forward
echo 1 > /proc/sys/net/ipv6/conf/all/forwarding
