Changeset 8884
- Timestamp:
- 07/09/12 18:57:24 (11 months ago)
- Location:
- luci/trunk/contrib/package/meshwizard/files/usr/bin/meshwizard
- Files:
-
- 1 added
- 3 modified
-
helpers/setup_firewall.sh (modified) (1 diff)
-
helpers/setup_wan_dhcp.sh (added)
-
helpers/setup_wan_static.sh (modified) (1 diff)
-
wizard.sh (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
luci/trunk/contrib/package/meshwizard/files/usr/bin/meshwizard/helpers/setup_firewall.sh
r8699 r8884 110 110 fi 111 111 112 # Firewall rules to allow incoming ssh and web if enabled 113 114 if [ "$wan_allowssh" == 1 ]; then 115 uci batch <<- EOF 116 set firewall.wanssh=rule 117 set firewall.wanssh.src=wan 118 set firewall.wanssh.target=ACCEPT 119 set firewall.wanssh.proto=tcp 120 set firewall.wanssh.dest_port=22 121 EOF 122 fi 123 124 if [ "$wan_allowweb" == 1 ]; then 125 uci batch <<- EOF 126 set firewall.wanweb=rule 127 set firewall.wanweb.src=wan 128 set firewall.wanweb.target=ACCEPT 129 set firewall.wanweb.proto=tcp 130 set firewall.wanweb.dest_port=80 131 set firewall.wanwebhttps=rule 132 set firewall.wanwebhttps.src=wan 133 set firewall.wanwebhttps.target=ACCEPT 134 set firewall.wanwebhttps.proto=tcp 135 set firewall.wanwebhttps.dest_port=443 136 EOF 137 fi 138 112 139 uci_commitverbose "Setup rules, forwardings, advanced config and includes." firewall -
luci/trunk/contrib/package/meshwizard/files/usr/bin/meshwizard/helpers/setup_wan_static.sh
r8697 r8884 19 19 uci delete meshwizard.wan && uci commit meshwizard 20 20 21 # Firewall rules to allow incoming ssh and web22 23 if [ "$wan_allowssh" == 1 ]; then24 uci batch <<- EOF25 set firewall.wanssh=rule26 set firewall.wanssh.src=wan27 set firewall.wanssh.target=ACCEPT28 set firewall.wanssh.proto=tcp29 set firewall.wanssh.dest_port=2230 EOF31 uci_commitverbose "Allow incoming connections to port 22 (ssh) on wan" firewall32 fi33 34 if [ "$wan_allowweb" == 1 ]; then35 uci batch <<- EOF36 set firewall.wanweb=rule37 set firewall.wanweb.src=wan38 set firewall.wanweb.target=ACCEPT39 set firewall.wanweb.proto=tcp40 set firewall.wanweb.dest_port=8041 set firewall.wanwebhttps=rule42 set firewall.wanwebhttps.src=wan43 set firewall.wanwebhttps.target=ACCEPT44 set firewall.wanwebhttps.proto=tcp45 set firewall.wanwebhttps.dest_port=44346 EOF47 uci_commitverbose "Allow incoming connections to port 80 and 443 (http and https) on wan" firewall48 fi -
luci/trunk/contrib/package/meshwizard/files/usr/bin/meshwizard/wizard.sh
r8799 r8884 65 65 fi 66 66 67 if [ "$wan_proto" == "dhcp" ]; then 68 $dir/helpers/setup_wan_dhcp.sh 69 fi 70 67 71 if [ "$lan_proto" == "static" ] && [ -n "$lan_ip4addr" ] && [ -n "$lan_netmask" ]; then 68 72 $dir/helpers/setup_lan_static.sh
