Apps and routing traffic

4r1-60ld

Cadet
Joined
Sep 25, 2023
Messages
2
Hello,

So I have a little problem, and although there seems to be some solutions floating around the forums for similar problems - i have not got it to work.

Long story short; All my devices are on the same 192.168.0.X network and the pfSense firewall send traffic to the correct gateway depending on the IP address. Ex; IP 10 will go to Gateway A, IP 27 to C, IP 209 to E etc.

I am trying to get different apps sending traffic to different gateways on my truenas. Currently my 2 nic's are bridged, but i can separate them again and thus get two IPs for the firewall to "read" - but it seems that Apps cannot be assigned to a NIC or a route, it will follow the default anyway? Is there a way to do this? Is there another solution that I do not know about?

Also, can I run several instances of the same app and send one instance to to gateway and the second instance to another gateway?

Thank you very much for any help.
 

Black_Duck

Explorer
Joined
Oct 8, 2022
Messages
61
My understand is that you can assign an App to a specific NIC, but not in the Truenas catalog apps.
If you set up your App by Launching a Docker Image; go to "Networking"; Add an Interface then choose the Host Interface you want.
Note this won't work if you have both NICs in a bridge - you will only see the bridge.
Im not sure I fully understand what you are trying to achieve, but will giving each app a seperate static IP address help? If so, then the above steps will also let you set a static address.
 

4r1-60ld

Cadet
Joined
Sep 25, 2023
Messages
2
My understand is that you can assign an App to a specific NIC, but not in the Truenas catalog apps.
If you set up your App by Launching a Docker Image; go to "Networking"; Add an Interface then choose the Host Interface you want.
Note this won't work if you have both NICs in a bridge - you will only see the bridge.
Im not sure I fully understand what you are trying to achieve, but will giving each app a seperate static IP address help? If so, then the above steps will also let you set a static address.
Thanks for the reply. I'll check this out during the weekend :)
 
Top