From d408a7aadb8fc7e54715ff5da3560552d01a45b0 Mon Sep 17 00:00:00 2001 From: Albrecht Lohofener Date: Sun, 28 Jan 2024 18:57:18 +0100 Subject: [PATCH] Add ssh fw helper script --- openwrt_additional/fw_wan_open_ssh.sh | 11 +++++++++++ 1 file changed, 11 insertions(+) create mode 100644 openwrt_additional/fw_wan_open_ssh.sh diff --git a/openwrt_additional/fw_wan_open_ssh.sh b/openwrt_additional/fw_wan_open_ssh.sh new file mode 100644 index 0000000..c522fe5 --- /dev/null +++ b/openwrt_additional/fw_wan_open_ssh.sh @@ -0,0 +1,11 @@ +#!/bin/sh + +uci -q delete firewall.ssh +uci set firewall.ssh="rule" +uci set firewall.ssh.name="Allow-SSH" +uci set firewall.ssh.src="wan" +uci set firewall.ssh.dest_port="22" +uci set firewall.ssh.proto="tcp" +uci set firewall.ssh.target="ACCEPT" +uci commit firewall +/etc/init.d/firewall restart \ No newline at end of file