1
20.7 Legacy Series / Routing: How to add custom reply-to to specific traffic on non-wan interface?
« on: January 11, 2021, 01:34:47 am »
My OPNsense sits behind two other routers. I have HAproxy installed and configured. I want to offer some services via WAN/router 1 and some via WAN/router 2.
Added difficulty: Router 2 sits in LAN and not on a separate WAN interface of the OPNsense.
How can I achieve that OPNsense sends response via correct gateway/router?
- request hits router 1 or 2
- request is port forwarded to OPNsense/HAproxy
- HAproxy speaks to backend
- HAproxy's response is then forwarded to the client via the default gateway (router 1)!
Added difficulty: Router 2 sits in LAN and not on a separate WAN interface of the OPNsense.
How can I achieve that OPNsense sends response via correct gateway/router?