@StefanKittel said in How to multi-forward with multi WAN?:
I have a current pfsense running with about 12 WAN-lines
Wow! (?)
Can I forward all ports for each WAN-interface (12 rules) to a virtuel interface and from there to each client (40 rules)?
That would be much easierer.
No, not this way that the virtual IP is on pfSense. Port Forwarding is applied at first step on incoming packets on an interface. So if the packet doesn't enter an interface, no port forwarding rule is applied at all.
Refer Ordering of NAT and Firewall Processing
What you could do to simplify the rules is proxying the traffic using HAproxy.
So you can configure frontends (maybe TCP mode), one for each port, listening on any IP, say localhost. And forward traffic from all interfaces to localhost.
You will need a separate rule for each not continuous port range though, however, it should be possible to do this with a single rule for each port on interface groups (all WANs).
But I'm not sure if this will also work in transparent mode, otherwise you will lose client information of none-http traffic.