From 98486714c7042203b12cea736ebf0bfe9d9a7bcb Mon Sep 17 00:00:00 2001 From: Martin Winkler Date: Tue, 16 Aug 2022 21:35:56 +0200 Subject: [PATCH] kodi - Step to add ufw rules for remote, jsonrpc and cli --- seqs/kodi.sh | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/seqs/kodi.sh b/seqs/kodi.sh index e1be9a3..7350ba9 100755 --- a/seqs/kodi.sh +++ b/seqs/kodi.sh @@ -173,6 +173,14 @@ step_12() { exe systemctl start "$kodiSyslogName" } +step_14_info() { echo "Add ufw rules for kodi"; } +step_14_alias() { echo "ufw"; } +step_14() { + exe ufw allow in on eth0 to any proto tcp port 8080 comment "kodi remote" + exe ufw allow in on eth0 to any proto tcp port 9090 comment "kodi jsonrpc" + exe ufw allow in on eth0 to any proto udp port 9777 comment "kodi event client" +} + step_40_info() { echo "Reset music database"; } step_40_alias() { echo "resetmusic"; } step_40() {