|
|
@ -51,7 +51,7 @@ omcproxy_add_firewall() { |
|
|
|
config_get uplink $1 uplink |
|
|
|
config_get uplink $1 uplink |
|
|
|
config_get downlink $1 downlink |
|
|
|
config_get downlink $1 downlink |
|
|
|
|
|
|
|
|
|
|
|
upzone=$(fw3 network $uplink) |
|
|
|
upzone=$(fw3 -q network $uplink 2>/dev/null) |
|
|
|
[ -n "$upzone" ] || return 0 |
|
|
|
[ -n "$upzone" ] || return 0 |
|
|
|
|
|
|
|
|
|
|
|
json_add_object "" |
|
|
|
json_add_object "" |
|
|
@ -77,7 +77,7 @@ omcproxy_add_firewall() { |
|
|
|
json_close_object |
|
|
|
json_close_object |
|
|
|
|
|
|
|
|
|
|
|
for network in $downlink; do |
|
|
|
for network in $downlink; do |
|
|
|
downzone=$(fw3 network $network) |
|
|
|
downzone=$(fw3 -q network $network 2>/dev/null) |
|
|
|
[ -n "$downzone" ] || continue |
|
|
|
[ -n "$downzone" ] || continue |
|
|
|
|
|
|
|
|
|
|
|
json_add_object "" |
|
|
|
json_add_object "" |
|
|
|