summaryrefslogtreecommitdiff
path: root/personal-enabler/files/public-ssh.sh
blob: 6e36eb8b615eba744a412b28589433ed6c103aad (plain)
1
2
3
4
5
6
7
8
9
10
11
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