Add ssh fw helper script

This commit is contained in:
Albrecht Lohofener
2024-01-28 18:57:18 +01:00
parent 33d3b41a33
commit d408a7aadb
+11
View File
@@ -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