Ensure that the cjdns port is open

This commit is contained in:
Bob Mottram 2015-01-13 20:29:11 +00:00
parent 34628ad0f7
commit 0da00d8df3
1 changed files with 4 additions and 0 deletions

View File

@ -826,6 +826,10 @@ function install_cjdns {
fi
fi
ip6tables -A INPUT -i eth0 -p udp --dport $CJDNS_PORT -j ACCEPT
ip6tables -A INPUT -i eth0 -p tcp --dport $CJDNS_PORT -j ACCEPT
save_firewall_settings
if ! grep -q "Mesh Networking" /home/$MY_USERNAME/README; then
CURRENT_IP_ADDRESS=$(ip addr show | grep "inet " | sed -n 2p | awk -F ' ' '{print $2}' | awk -F '/' '{print $1}')