Use wifi for mesh

This commit is contained in:
Bob Mottram 2015-08-17 18:30:28 +01:00
parent 142a41319a
commit 67e4c6bb48
1 changed files with 7 additions and 5 deletions

View File

@ -5859,7 +5859,7 @@ function configure_firewall {
iptables -P INPUT DROP
ip6tables -P INPUT DROP
iptables -A INPUT -i lo -j ACCEPT
iptables -A INPUT -i eth0 -m conntrack --ctstate ESTABLISHED,RELATED -j ACCEPT
iptables -A INPUT -m conntrack --ctstate ESTABLISHED,RELATED -j ACCEPT
# Make sure incoming tcp connections are SYN packets
iptables -A INPUT -p tcp ! --syn -m state --state NEW -j DROP
@ -5951,8 +5951,6 @@ function configure_firewall_for_batman {
if [[ $ENABLE_BATMAN != "yes" ]]; then
return
fi
# DHCP
iptables -A INPUT -i eth0 -p udp --dport 547 -j ACCEPT
save_firewall_settings
echo 'configure_firewall_for_batman' >> $COMPLETION_FILE
@ -6044,7 +6042,7 @@ function configure_firewall_for_ftp {
# docker does its own firewalling
return
fi
iptables -I INPUT -i eth0 -p tcp --dport 1024:65535 --sport 20:21 -j ACCEPT
iptables -I INPUT -p tcp --dport 1024:65535 --sport 20:21 -j ACCEPT
save_firewall_settings
echo 'configure_firewall_for_ftp' >> $COMPLETION_FILE
}
@ -9573,7 +9571,11 @@ function install_dlna_server {
echo "media_dir=V,$USB_MOUNT/Videos" >> /etc/minidlna.conf
fi
sed -i 's/#root_container=./root_container=B/g' /etc/minidlna.conf
sed -i 's/#network_interface=/network_interface=eth0/g' /etc/minidlna.conf
if [[ $SYSTEM_TYPE != "$VARIANT_MESH" ]]; then
sed -i 's/#network_interface=/network_interface=eth0/g' /etc/minidlna.conf
else
sed -i 's/#network_interface=/network_interface=$WIFI_INTERFACE/g' /etc/minidlna.conf
fi
sed -i 's/#friendly_name=/friendly_name="Freedombone Media"/g' /etc/minidlna.conf
sed -i 's|#db_dir=/var/cache/minidlna|db_dir=/var/cache/minidlna|g' /etc/minidlna.conf
sed -i 's/#inotify=yes/inotify=yes/g' /etc/minidlna.conf