#!/bin/bash LAN_IFACE=ens224 WAN_IFACE=ens192 HOSTNAME=brasatore DHCP_START=172.16.77.50 DHCP_END=172.16.77.150 LAN_IP=172.16.77.1 LAN_SUBNET=255.255.255.0 # pacchetti cat >/etc/apt/sources.list < /etc/nginx/sites-available/pxe < /etc/hostname hostname -F /etc/hostname cat > /etc/hosts < /etc/network/interfaces.d/lan < /etc/iptables.rules cat > /etc/network/if-pre-up.d/iptables < /proc/sys/net/ipv4/ip_forward echo "net.ipv4.ip_forward=1" > /etc/sysctl.d/ipv4_forward.conf # dnsmasq config cat > /etc/dnsmasq.d/tftp < /etc/dnsmasq.d/dhcp < /etc/dnsmasq.d/dns < /etc/dnsmasq.d/pxe < /etc/dnsmasq.d/pxe < /srv/pxe/boot-netboot.txt < /etc/exports <> /etc/services < /etc/dnsmasq.d/pxe < /etc/systemd/system/mount-isos.service < /srv/pxe/mount/mount-all.sh <