added firewall settings...

Signed-off-by: Alex A. Naanou <alex.nanou@gmail.com>
This commit is contained in:
Alex A. Naanou 2024-01-15 16:46:32 +03:00
parent a89bd08c44
commit 6c88be17f2
2 changed files with 13 additions and 0 deletions

10
syncthing/fw/ID.fw Normal file
View File

@ -0,0 +1,10 @@
[OPTIONS]
enable: 1
[RULES]
IN ACCEPT -i net1 -log nolog
IN HTTPS(DROP) -i net0 -log nolog
IN HTTP(DROP) -i net0 -log nolog

View File

@ -77,6 +77,9 @@ sleep ${TIMEOUT:=5}
-e 's/127\.0\.0\.1:8384/0.0.0.0:8384/g' \
-i /var/lib/syncthing/.config/syncthing/config.xml
echo "# Setup: firewall..."
@ cp fw/ID.fw /etc/firewall/$ID.fw
echo "# Post config..."
pctSet $ID "${OPTS_STAGE_2}" $REBOOT