I tried without any NAT, just to test from OPNsense to the modem as that is supposed to work without any NAT, however that gives me the same results:
- The reply from the modem is sent incorrectly to the ISP with default WAN interface NAT applied. (The destination IP is the OPNsense IP, but the destination MAC is the ISP gateway.)
(And when making a NAT exception, the reply from the modem is still sent to the ISP, only with with the modem IP as source.)
In the end I gave up on using an IP alias and now use a bridge interface.
I removed the IP alias, created a new bridge device on WAN, assigned a new interface to this bridge with the same IP as previously used as alias and this worked without any issue.
First from OPNsense itself and after adding a NAT rule it works from everywhere.
I still can't explain why IP aliases didn't work for me.
- The reply from the modem is sent incorrectly to the ISP with default WAN interface NAT applied. (The destination IP is the OPNsense IP, but the destination MAC is the ISP gateway.)
(And when making a NAT exception, the reply from the modem is still sent to the ISP, only with with the modem IP as source.)
In the end I gave up on using an IP alias and now use a bridge interface.
I removed the IP alias, created a new bridge device on WAN, assigned a new interface to this bridge with the same IP as previously used as alias and this worked without any issue.
First from OPNsense itself and after adding a NAT rule it works from everywhere.
I still can't explain why IP aliases didn't work for me.