diff options
author | Karel Kočí <cynerd@email.cz> | 2020-12-01 07:50:24 +0100 |
---|---|---|
committer | Karel Kočí <cynerd@email.cz> | 2020-12-01 07:50:24 +0100 |
commit | aa49a7bd8f3e230ce81798e9b94ad83c60265c96 (patch) | |
tree | 536ad6768929b80fb4fcd8a8531d5f5bd8b63bc0 /personal-enabler/files | |
parent | 4b7abc62aa0a78eb94f0fb4a2a8210b25f6f136e (diff) | |
download | openwrt-personal-pkgs-aa49a7bd8f3e230ce81798e9b94ad83c60265c96.tar.gz openwrt-personal-pkgs-aa49a7bd8f3e230ce81798e9b94ad83c60265c96.tar.bz2 openwrt-personal-pkgs-aa49a7bd8f3e230ce81798e9b94ad83c60265c96.zip |
personal-enabler: add enabler for public services
Diffstat (limited to 'personal-enabler/files')
-rw-r--r-- | personal-enabler/files/public-ssh.sh | 12 |
1 files changed, 12 insertions, 0 deletions
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 |