← history for chapter-4/enable-forwarding.sh
b01d9c99chapter-4/enable-forwarding.sh8 lines⬡ raw↓ download
1
2
3
4
5
6
7
8
#! /bin/bash -x
#
# This script enables network forwarding
#
# Run as root user
#

echo 'net.ipv4.ip_forward = 1' >> /etc/sysctl.conf