port used by avahi
This commit is contained in:
parent
58b6fb011b
commit
82a2142fce
|
@ -5770,6 +5770,7 @@ function configure_firewall_for_batman {
|
|||
fi
|
||||
# DHCP
|
||||
iptables -A INPUT -i eth0 -p udp --dport 547 -j ACCEPT
|
||||
iptables -A INPUT -i wlan0 -p udp --dport 5353 -j ACCEPT
|
||||
save_firewall_settings
|
||||
echo 'configure_firewall_for_batman' >> $COMPLETION_FILE
|
||||
}
|
||||
|
@ -5782,6 +5783,7 @@ function configure_firewall_for_babel {
|
|||
return
|
||||
fi
|
||||
iptables -A INPUT -i wlan0 -p udp --dport $BABEL_PORT -j ACCEPT
|
||||
iptables -A INPUT -i wlan0 -p udp --dport 5353 -j ACCEPT
|
||||
save_firewall_settings
|
||||
echo 'configure_firewall_for_babel' >> $COMPLETION_FILE
|
||||
}
|
||||
|
|
|
@ -236,6 +236,8 @@ function mesh_batman {
|
|||
echo ' ifconfig $BRIDGE up' >> $batman_script
|
||||
echo ' fi' >> $batman_script
|
||||
echo '' >> $batman_script
|
||||
echo ' iptables -A INPUT -i $IFACE -p udp --dport 5353 -j ACCEPT' >> $batman_script
|
||||
echo '' >> $batman_script
|
||||
echo ' if [ -f /bin/systemctl ]; then' >> $batman_script
|
||||
echo ' systemctl restart avahi-daemon' >> $batman_script
|
||||
echo ' else' >> $batman_script
|
||||
|
@ -265,6 +267,8 @@ function mesh_batman {
|
|||
echo ' avahi-autoipd -k bat0' >> $batman_script
|
||||
echo ' iwconfig $IFACE mode managed' >> $batman_script
|
||||
echo '' >> $batman_script
|
||||
echo ' iptables -D INPUT -i $IFACE -p udp --dport 5353 -j ACCEPT' >> $batman_script
|
||||
echo '' >> $batman_script
|
||||
echo ' if [ -f /bin/systemctl ]; then' >> $batman_script
|
||||
echo ' systemctl restart network-manager' >> $batman_script
|
||||
echo ' else' >> $batman_script
|
||||
|
|
Loading…
Reference in New Issue