Port forwarding from multiple source zones in one rule?

Is it possible to setup forwarding from multiple source zones in one rule through Luci or cli?

Yes, you would use the following in your rule:

option src '*'

1 Like

Can something alike be used for selective choice of multiple zones?

  • Making a rule for each zone
  • You could try 'zonea zoneb' - I've never tried that before, not sure it works
1 Like

Is this through Luci or CLI?

1 Like

Configurations can be made via either method.

In relation to Luci, is it Network -> Firewall -> Port Forwards ?

I assume you already created a rule, which you wanted to apply to multiple zones.

What is your use case, describe the rule you're attempting to create that will solve your issue?

1 Like

DNAT port forwards / redirects require a single source zone. It impacts the zone-specific nftables chain where the rule would be written (e.g. dstnat_lan).

2 Likes