X-Git-Url: https://git.archive.openwrt.org/?a=blobdiff_plain;f=contrib%2Fpackage%2Fmeshwizard%2Ffiles%2Fusr%2Fbin%2Fmeshwizard%2Fhelpers%2Fsetup_wan_static.sh;h=570470aa777300cc8a35c31301d62e58c88b5bd8;hb=af116017873f81ab9948317c6a4be5befea6ab01;hp=01352d2c189d3e9bc210d5f1ebe8f910c47badff;hpb=163b224b25d003cc6ca555b305bdbc89b2dd61b6;p=project%2Fluci.git diff --git a/contrib/package/meshwizard/files/usr/bin/meshwizard/helpers/setup_wan_static.sh b/contrib/package/meshwizard/files/usr/bin/meshwizard/helpers/setup_wan_static.sh index 01352d2c1..570470aa7 100755 --- a/contrib/package/meshwizard/files/usr/bin/meshwizard/helpers/setup_wan_static.sh +++ b/contrib/package/meshwizard/files/usr/bin/meshwizard/helpers/setup_wan_static.sh @@ -18,31 +18,3 @@ uci_commitverbose "Setup static ip settings for wan" network uci delete meshwizard.wan && uci commit meshwizard -# Firewall rules to allow incoming ssh and web - -if [ "$wan_allowssh" == 1 ]; then - uci batch <<- EOF - set firewall.wanssh=rule - set firewall.wanssh.src=wan - set firewall.wanssh.target=ACCEPT - set firewall.wanssh.proto=tcp - set firewall.wanssh.dest_port=22 - EOF - uci_commitverbose "Allow incoming connections to port 22 (ssh) on wan" firewall -fi - -if [ "$wan_allowweb" == 1 ]; then - uci batch <<- EOF - set firewall.wanweb=rule - set firewall.wanweb.src=wan - set firewall.wanweb.target=ACCEPT - set firewall.wanweb.proto=tcp - set firewall.wanweb.dest_port=80 - set firewall.wanwebhttps=rule - set firewall.wanwebhttps.src=wan - set firewall.wanwebhttps.target=ACCEPT - set firewall.wanwebhttps.proto=tcp - set firewall.wanwebhttps.dest_port=443 - EOF - uci_commitverbose "Allow incoming connections to port 80 and 443 (http and https) on wan" firewall -fi