Stateless mDNS
This commit is contained in:
parent
895ebbdea2
commit
32eee30170
|
@ -1972,12 +1972,12 @@ function mesh_batman_bridge {
|
|||
echo ' ifconfig $BRIDGE up' >> $batman_script
|
||||
echo ' fi' >> $batman_script
|
||||
echo '' >> $batman_script
|
||||
echo ' iptables -A INPUT -p tcp -m state -m tcp --dport 548 --state NEW -j ACCEPT' >> $batman_script
|
||||
echo ' iptables -A INPUT -p udp -m state -m udp --dport 548 --state NEW -j ACCEPT' >> $batman_script
|
||||
echo ' iptables -A INPUT -p tcp -m state -m tcp --dport 5353 --state NEW -j ACCEPT' >> $batman_script
|
||||
echo ' iptables -A INPUT -p udp -m state -m udp --dport 5353 --state NEW -j ACCEPT' >> $batman_script
|
||||
echo ' iptables -A INPUT -p tcp -m state -m tcp --dport 5354 --state NEW -j ACCEPT' >> $batman_script
|
||||
echo ' iptables -A INPUT -p udp -m state -m udp --dport 5354 --state NEW -j ACCEPT' >> $batman_script
|
||||
echo ' iptables -A INPUT -p tcp --dport 548 -j ACCEPT' >> $batman_script
|
||||
echo ' iptables -A INPUT -p udp --dport 548 -j ACCEPT' >> $batman_script
|
||||
echo ' iptables -A INPUT -p tcp --dport 5353 -j ACCEPT' >> $batman_script
|
||||
echo ' iptables -A INPUT -p udp --dport 5353 -j ACCEPT' >> $batman_script
|
||||
echo ' iptables -A INPUT -p tcp --dport 5354 -j ACCEPT' >> $batman_script
|
||||
echo ' iptables -A INPUT -p udp --dport 5354 -j ACCEPT' >> $batman_script
|
||||
echo '' >> $batman_script
|
||||
echo ' systemctl restart avahi-daemon' >> $batman_script
|
||||
echo '}' >> $batman_script
|
||||
|
@ -2005,12 +2005,12 @@ function mesh_batman_bridge {
|
|||
echo ' ifconfig $IFACE down' >> $batman_script
|
||||
echo ' iwconfig $IFACE mode managed' >> $batman_script
|
||||
echo '' >> $batman_script
|
||||
echo ' iptables -D INPUT -p tcp -m state -m tcp --dport 548 --state NEW -j ACCEPT' >> $batman_script
|
||||
echo ' iptables -D INPUT -p udp -m state -m udp --dport 548 --state NEW -j ACCEPT' >> $batman_script
|
||||
echo ' iptables -D INPUT -p tcp -m state -m tcp --dport 5353 --state NEW -j ACCEPT' >> $batman_script
|
||||
echo ' iptables -D INPUT -p udp -m state -m udp --dport 5353 --state NEW -j ACCEPT' >> $batman_script
|
||||
echo ' iptables -D INPUT -p tcp -m state -m tcp --dport 5354 --state NEW -j ACCEPT' >> $batman_script
|
||||
echo ' iptables -D INPUT -p udp -m state -m udp --dport 5354 --state NEW -j ACCEPT' >> $batman_script
|
||||
echo ' iptables -D INPUT -p tcp --dport 548 -j ACCEPT' >> $batman_script
|
||||
echo ' iptables -D INPUT -p udp --dport 548 -j ACCEPT' >> $batman_script
|
||||
echo ' iptables -D INPUT -p tcp --dport 5353 -j ACCEPT' >> $batman_script
|
||||
echo ' iptables -D INPUT -p udp --dport 5353 -j ACCEPT' >> $batman_script
|
||||
echo ' iptables -D INPUT -p tcp --dport 5354 -j ACCEPT' >> $batman_script
|
||||
echo ' iptables -D INPUT -p udp --dport 5354 -j ACCEPT' >> $batman_script
|
||||
echo '' >> $batman_script
|
||||
echo ' systemctl restart network-manager' >> $batman_script
|
||||
echo '}' >> $batman_script
|
||||
|
@ -5935,12 +5935,12 @@ function configure_firewall_for_avahi {
|
|||
if [[ $ENABLE_CJDNS != "yes" && $ENABLE_BATMAN != "yes" && $ENABLE_BABEL != "yes" ]]; then
|
||||
return
|
||||
fi
|
||||
iptables -A INPUT -p tcp -m state -m tcp --dport 548 --state NEW -j ACCEPT
|
||||
iptables -A INPUT -p udp -m state -m udp --dport 548 --state NEW -j ACCEPT
|
||||
iptables -A INPUT -p tcp -m state -m tcp --dport 5353 --state NEW -j ACCEPT
|
||||
iptables -A INPUT -p udp -m state -m udp --dport 5353 --state NEW -j ACCEPT
|
||||
iptables -A INPUT -p tcp -m state -m tcp --dport 5354 --state NEW -j ACCEPT
|
||||
iptables -A INPUT -p udp -m state -m udp --dport 5354 --state NEW -j ACCEPT
|
||||
iptables -A INPUT -p tcp --dport 548 -j ACCEPT
|
||||
iptables -A INPUT -p udp --dport 548 -j ACCEPT
|
||||
iptables -A INPUT -p tcp --dport 5353 -j ACCEPT
|
||||
iptables -A INPUT -p udp --dport 5353 -j ACCEPT
|
||||
iptables -A INPUT -p tcp --dport 5354 -j ACCEPT
|
||||
iptables -A INPUT -p udp --dport 5354 -j ACCEPT
|
||||
save_firewall_settings
|
||||
echo 'configure_firewall_for_avahi' >> $COMPLETION_FILE
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue