From 52d03c3730ffbdfb130ecd951c9becd5e457850a Mon Sep 17 00:00:00 2001 From: Martin Winkler Date: Sun, 28 Mar 2021 23:39:17 +0200 Subject: [PATCH] Add step for ufw rules to access rpc port --- seqs/aria2.sh | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/seqs/aria2.sh b/seqs/aria2.sh index ce916c3..1013a1f 100755 --- a/seqs/aria2.sh +++ b/seqs/aria2.sh @@ -75,5 +75,11 @@ Restart=on-failure [Install] WantedBy=multi-user.target" +step_10_info() { echo "Add ufw rule for rpc port 6800"; } +step_10_alias() { ALIAS="ufw"; } +step_10() { + exe ufw allow in on eth0 to any port 6800 proto tcp comment "Aria2 rpc" +} + VERSION_SEQREV=12 . /usr/local/bin/sequencer.sh