mirror of
https://github.com/flynx/proxmox-utils.git
synced 2025-10-29 11:10:09 +00:00
added firewall settings...
Signed-off-by: Alex A. Naanou <alex.nanou@gmail.com>
This commit is contained in:
parent
a89bd08c44
commit
6c88be17f2
10
syncthing/fw/ID.fw
Normal file
10
syncthing/fw/ID.fw
Normal 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
|
||||||
|
|
||||||
@ -77,6 +77,9 @@ sleep ${TIMEOUT:=5}
|
|||||||
-e 's/127\.0\.0\.1:8384/0.0.0.0:8384/g' \
|
-e 's/127\.0\.0\.1:8384/0.0.0.0:8384/g' \
|
||||||
-i /var/lib/syncthing/.config/syncthing/config.xml
|
-i /var/lib/syncthing/.config/syncthing/config.xml
|
||||||
|
|
||||||
|
echo "# Setup: firewall..."
|
||||||
|
@ cp fw/ID.fw /etc/firewall/$ID.fw
|
||||||
|
|
||||||
echo "# Post config..."
|
echo "# Post config..."
|
||||||
pctSet $ID "${OPTS_STAGE_2}" $REBOOT
|
pctSet $ID "${OPTS_STAGE_2}" $REBOOT
|
||||||
|
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user