diff options
Diffstat (limited to 'personal-enabler')
-rw-r--r-- | personal-enabler/Makefile | 1 | ||||
-rw-r--r-- | personal-enabler/files/public-ssh.sh | 12 |
2 files changed, 13 insertions, 0 deletions
diff --git a/personal-enabler/Makefile b/personal-enabler/Makefile index 09cd127..9a6b588 100644 --- a/personal-enabler/Makefile +++ b/personal-enabler/Makefile @@ -35,3 +35,4 @@ Build/Compile:=: $(eval $(call PKG,common,+updater-ng +user-notify)) $(eval $(call PKG,sentinel,+pkglists +sentinel-proxy)) +$(eval $(call PKG,public-ssh,+uci +firewall)) diff --git a/personal-enabler/files/public-ssh.sh b/personal-enabler/files/public-ssh.sh new file mode 100644 index 0000000..6e36eb8 --- /dev/null +++ b/personal-enabler/files/public-ssh.sh @@ -0,0 +1,12 @@ +#!/bin/sh +uci -q batch <<EOF + set firewall.public_ssh=redirect + set firewall.public_ssh.name=SSH access on public + set firewall.public_ssh.dest_port=22 + set firewall.public_ssh.src_dport=222 + set firewall.public_ssh.proto=tcp + set firewall.public_ssh.src=wan + set firewall.public_ssh.target=DNAT + commit firewall.public_ssh +EOF +/etc/init.d/firewall reload |