1 2 3 4
#!/bin/sh sed -i -r 's/^\s*(net\.ipv4\.ip_forward.*)/net.ipv4.ip_forward=1/' /etc/sysctl.conf exit 0