mirror of
https://github.com/AlbrechtL/openwrt-docker.git
synced 2026-10-15 16:01:25 +00:00
Add ssh fw helper script
This commit is contained in:
@@ -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
|
||||
Reference in New Issue
Block a user