From 00cb3c9ac4836a1f132b647c6fcc67bab16df831 Mon Sep 17 00:00:00 2001 From: sean Date: Tue, 16 Jul 2019 12:20:33 -0700 Subject: [PATCH] tweaks --- setup.sh | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/setup.sh b/setup.sh index 943315e..6ff870f 100644 --- a/setup.sh +++ b/setup.sh @@ -461,7 +461,7 @@ for nic in "$nics"; do done echo "iface br0 inet dhcp" >> /mnt/etc/network/interfaces.d/br0 #echo " post-up ip link set br0 address $macaddr" >> /mnt/etc/network/interfaces.d/br0 -echo " bridge_hw $macaddr" >> /mnt/etc/network/interfaces.d/br0 +#echo " bridge_hw $macaddr" >> /mnt/etc/network/interfaces.d/br0 echo " bridge_waitport 0" >> /mnt/etc/network/interfaces.d/br0 echo " bridge_fd 0" >> /mnt/etc/network/interfaces.d/br0 echo " bridge_ports${niclist}" >> /mnt/etc/network/interfaces.d/br0 @@ -479,8 +479,14 @@ echo " exit 1">> /mnt/setup-chroot.sh echo "fi">> /mnt/setup-chroot.sh echo "echo \"Done.\"" >> /mnt/setup-chroot.sh +# add the firewall rule for SSH, but there may already be an exception for this, test the network in the live environment + +sed -ir 's/### RULES ###/### RULES ###\n-A ufw-user-input -i br0 -p tcp --dport 22 -j ACCEPT/g' /mnt/etc/ufw/user.rules exit 0 + + + # commented out for debugging echo "" echo "Clearing chroot configuration script..."