diff --git a/files/sn_startup.sh.j2 b/files/sn_startup.sh.j2 index 5c84904..a637274 100644 --- a/files/sn_startup.sh.j2 +++ b/files/sn_startup.sh.j2 @@ -40,6 +40,12 @@ done # Allow MAC address spoofing /sbin/sysctl net.ipv4.conf.bat0.rp_filter=0 +# Create Tunneldigger Bridge +/sbin/brctl addbr br-nodes +/sbin/ip link set dev br-nodes up +/sbin/ebtables -A FORWARD --logical-in br-nodes -j DROP +/usr/local/sbin/batctl if add br-nodes + sleep 5 # Start tunneldigger @@ -54,10 +60,4 @@ sleep 5 /bin/systemctl restart isc-dhcp-server /bin/systemctl enable isc-dhcp-server -# Create Tunneldigger Bridge -brctl addbr br-nodes -ip link set dev br-nodes up -ebtables -A FORWARD --logical-in br-nodes -j DROP - - exit 0