|
@@ -236,6 +236,8 @@ function mesh_batman {
|
236
|
236
|
echo ' ifconfig $BRIDGE up' >> $batman_script
|
237
|
237
|
echo ' fi' >> $batman_script
|
238
|
238
|
echo '' >> $batman_script
|
|
239
|
+ echo ' iptables -A INPUT -i $IFACE -p udp --dport 5353 -j ACCEPT' >> $batman_script
|
|
240
|
+ echo '' >> $batman_script
|
239
|
241
|
echo ' if [ -f /bin/systemctl ]; then' >> $batman_script
|
240
|
242
|
echo ' systemctl restart avahi-daemon' >> $batman_script
|
241
|
243
|
echo ' else' >> $batman_script
|
|
@@ -265,6 +267,8 @@ function mesh_batman {
|
265
|
267
|
echo ' avahi-autoipd -k bat0' >> $batman_script
|
266
|
268
|
echo ' iwconfig $IFACE mode managed' >> $batman_script
|
267
|
269
|
echo '' >> $batman_script
|
|
270
|
+ echo ' iptables -D INPUT -i $IFACE -p udp --dport 5353 -j ACCEPT' >> $batman_script
|
|
271
|
+ echo '' >> $batman_script
|
268
|
272
|
echo ' if [ -f /bin/systemctl ]; then' >> $batman_script
|
269
|
273
|
echo ' systemctl restart network-manager' >> $batman_script
|
270
|
274
|
echo ' else' >> $batman_script
|