+ # NB: if MASQUERADING for IPv6 becomes available we'll need a family check here
+ if [ "$zone_masq" == 1 ]; then
+ local msrc mdst
+ for msrc in ${zone_masq_src:-0.0.0.0/0}; do
+ fw_get_negation msrc '-s' "$msrc"
+ for mdst in ${zone_masq_dest:-0.0.0.0/0}; do
+ fw_get_negation mdst '-d' "$mdst"
+ fw add $mode n ${chain}_nat MASQUERADE $ { $msrc $mdst }
+ done
+ done
+ fi
+