From 3f058ebc3a8b5f5e51dfe3c8e5d17895d7491dd5 Mon Sep 17 00:00:00 2001 From: Bob Mottram Date: Sun, 23 Aug 2015 22:58:49 +0100 Subject: [PATCH] Stateless mDNS --- src/freedombone-client | 24 ++++++++++++------------ 1 file changed, 12 insertions(+), 12 deletions(-) diff --git a/src/freedombone-client b/src/freedombone-client index f91f9e56..65892eab 100755 --- a/src/freedombone-client +++ b/src/freedombone-client @@ -297,12 +297,12 @@ function mesh_batman { 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 ' if [ -f /bin/systemctl ]; then' >> $batman_script echo ' systemctl restart avahi-daemon' >> $batman_script @@ -335,12 +335,12 @@ function mesh_batman { 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 ' if [ -f /bin/systemctl ]; then' >> $batman_script echo ' systemctl restart network-manager' >> $batman_script