Try to enable upnp on mesh

This commit is contained in:
Bob Mottram 2015-09-02 12:57:29 +01:00
parent b52ac00db5
commit 36f1951f89
1 changed files with 2 additions and 0 deletions

View File

@ -344,6 +344,7 @@ function mesh_batman {
echo " iptables -A INPUT -p tcp --dport $TRACKER_PORT -j ACCEPT" >> $batman_script
echo " iptables -A INPUT -p udp --dport 1900 -j ACCEPT" >> $batman_script
echo " iptables -A INPUT -p tcp --dport 80 -j ACCEPT" >> $batman_script
echo " iptables -A INPUT -p udp -m udp -j ACCEPT" >> $batman_script
echo '' >> $batman_script
echo ' if [ -f /bin/systemctl ]; then' >> $batman_script
echo ' systemctl restart avahi-daemon' >> $batman_script
@ -388,6 +389,7 @@ function mesh_batman {
echo " iptables -D INPUT -p tcp --dport $TRACKER_PORT -j ACCEPT" >> $batman_script
echo " iptables -D INPUT -p udp --dport 1900 -j ACCEPT" >> $batman_script
echo " iptables -D INPUT -p tcp --dport 80 -j ACCEPT" >> $batman_script
echo " iptables -D INPUT -p udp -m udp -j ACCEPT" >> $batman_script
echo '' >> $batman_script
echo ' if [ -f /bin/systemctl ]; then' >> $batman_script
echo ' systemctl restart network-manager' >> $batman_script