zeronet port for mesh peers
This commit is contained in:
parent
3f058ebc3a
commit
8ab2707f62
|
@ -401,6 +401,7 @@ TOX_NODE=
|
||||||
#)
|
#)
|
||||||
|
|
||||||
ZERONET_REPO='https://github.com/HelloZeroNet/ZeroNet.git'
|
ZERONET_REPO='https://github.com/HelloZeroNet/ZeroNet.git'
|
||||||
|
ZERONET_PORT=15441
|
||||||
|
|
||||||
# Default diffie-hellman key length in bits
|
# Default diffie-hellman key length in bits
|
||||||
DH_KEYLENGTH=1024
|
DH_KEYLENGTH=1024
|
||||||
|
@ -759,6 +760,9 @@ function read_configuration {
|
||||||
fi
|
fi
|
||||||
|
|
||||||
if [ -f $CONFIGURATION_FILE ]; then
|
if [ -f $CONFIGURATION_FILE ]; then
|
||||||
|
if grep -q "ZERONET_PORT" $CONFIGURATION_FILE; then
|
||||||
|
ZERONET_PORT=$(grep "ZERONET_PORT" $CONFIGURATION_FILE | awk -F '=' '{print $2}')
|
||||||
|
fi
|
||||||
if grep -q "DH_KEYLENGTH" $CONFIGURATION_FILE; then
|
if grep -q "DH_KEYLENGTH" $CONFIGURATION_FILE; then
|
||||||
DH_KEYLENGTH=$(grep "DH_KEYLENGTH" $CONFIGURATION_FILE | awk -F '=' '{print $2}')
|
DH_KEYLENGTH=$(grep "DH_KEYLENGTH" $CONFIGURATION_FILE | awk -F '=' '{print $2}')
|
||||||
fi
|
fi
|
||||||
|
@ -5982,6 +5986,19 @@ function configure_firewall_for_babel {
|
||||||
echo 'configure_firewall_for_babel' >> $COMPLETION_FILE
|
echo 'configure_firewall_for_babel' >> $COMPLETION_FILE
|
||||||
}
|
}
|
||||||
|
|
||||||
|
function configure_firewall_for_zeronet {
|
||||||
|
if grep -Fxq "configure_firewall_for_zeronet" $COMPLETION_FILE; then
|
||||||
|
return
|
||||||
|
fi
|
||||||
|
if [[ $SYSTEM_TYPE != "$VARIANT_MESH" ]]; then
|
||||||
|
return
|
||||||
|
fi
|
||||||
|
iptables -A INPUT -i $WIFI_INTERFACE -p udp --dport $ZERONET_PORT -j ACCEPT
|
||||||
|
iptables -A INPUT -i $WIFI_INTERFACE -p tcp --dport $ZERONET_PORT -j ACCEPT
|
||||||
|
save_firewall_settings
|
||||||
|
echo 'configure_firewall_for_zeronet' >> $COMPLETION_FILE
|
||||||
|
}
|
||||||
|
|
||||||
function configure_firewall_for_dlna {
|
function configure_firewall_for_dlna {
|
||||||
if grep -Fxq "configure_firewall_for_dlna" $COMPLETION_FILE; then
|
if grep -Fxq "configure_firewall_for_dlna" $COMPLETION_FILE; then
|
||||||
return
|
return
|
||||||
|
@ -10304,6 +10321,7 @@ configure_firewall_for_ftp
|
||||||
configure_firewall_for_web_access
|
configure_firewall_for_web_access
|
||||||
configure_firewall_for_voip
|
configure_firewall_for_voip
|
||||||
configure_firewall_for_avahi
|
configure_firewall_for_avahi
|
||||||
|
configure_firewall_for_zeronet
|
||||||
remove_proprietary_repos
|
remove_proprietary_repos
|
||||||
change_debian_repos
|
change_debian_repos
|
||||||
enable_backports
|
enable_backports
|
||||||
|
|
Loading…
Reference in New Issue