syncthing firewall
This commit is contained in:
parent
68f913f2e7
commit
f096b085d6
|
@ -4076,6 +4076,16 @@ function configure_firewall_for_voip {
|
||||||
echo 'configure_firewall_for_voip' >> $COMPLETION_FILE
|
echo 'configure_firewall_for_voip' >> $COMPLETION_FILE
|
||||||
}
|
}
|
||||||
|
|
||||||
|
function configure_firewall_for_syncthing {
|
||||||
|
if grep -Fxq "configure_firewall_for_syncthing" $COMPLETION_FILE; then
|
||||||
|
return
|
||||||
|
fi
|
||||||
|
iptables -A INPUT -p udp --dport $SYNCTHING_PORT -j ACCEPT
|
||||||
|
iptables -A INPUT -p tcp --dport $SYNCTHING_PORT -j ACCEPT
|
||||||
|
save_firewall_settings
|
||||||
|
echo 'configure_firewall_for_syncthing' >> $COMPLETION_FILE
|
||||||
|
}
|
||||||
|
|
||||||
function configure_firewall_for_voip_turn {
|
function configure_firewall_for_voip_turn {
|
||||||
if [[ $SYSTEM_TYPE == "$VARIANT_WRITER" || $SYSTEM_TYPE == "$VARIANT_MAILBOX" || $SYSTEM_TYPE == "$VARIANT_CLOUD" || $SYSTEM_TYPE == "$VARIANT_SOCIAL" || $SYSTEM_TYPE == "$VARIANT_MEDIA" || $SYSTEM_TYPE == "$VARIANT_DEVELOPER" ]]; then
|
if [[ $SYSTEM_TYPE == "$VARIANT_WRITER" || $SYSTEM_TYPE == "$VARIANT_MAILBOX" || $SYSTEM_TYPE == "$VARIANT_CLOUD" || $SYSTEM_TYPE == "$VARIANT_SOCIAL" || $SYSTEM_TYPE == "$VARIANT_MEDIA" || $SYSTEM_TYPE == "$VARIANT_DEVELOPER" ]]; then
|
||||||
return
|
return
|
||||||
|
@ -10492,6 +10502,7 @@ script_for_attaching_usb_drive
|
||||||
install_web_server
|
install_web_server
|
||||||
install_web_server_access_control
|
install_web_server_access_control
|
||||||
configure_firewall_for_web_server
|
configure_firewall_for_web_server
|
||||||
|
configure_firewall_for_syncthing
|
||||||
install_syncthing
|
install_syncthing
|
||||||
upgrade_golang
|
upgrade_golang
|
||||||
install_gogs
|
install_gogs
|
||||||
|
|
Loading…
Reference in New Issue