prak3-scripts/Dumbledore/02.sh

13 lines
218 B
Bash

#!/bin/bash
cat > /etc/default/isc-dhcp-relay <<EOL
SERVERS="10.67.3.2"
INTERFACES="eth1 eth2 eth3 eth4 eth5 eth6"
OPTIONS=
EOL
cat > /etc/sysctl.conf <<EOL
net.ipv4.ip_forward=1
EOL
service isc-dhcp-relay restart