How to have different default gateways per interface?

  • Thread starter Thread starter Deleted member 79566
  • Start date Start date
D

Deleted member 79566

Guest
I'm new to BSD networking but I've learned a lot on my first day. I'm currently stuck though. I think I need to use FIBs and jails but I'm having trouble wrapping my head around it all.

What I want is the computer to act as a simple gateway between two network interfaces. What comes in through interface A should go out to interface B and vice versa. The catch is; all traffic originating from the system in question should use interface C for its own outgoing traffic instead of either A or B. So I need two default gateways: one that goes to interface A (for traffic coming from interface B) and one that goes to interface C (for localhost traffic).

I think I understand how to create a new FIB and set its default gateway, but then how do I tell specific traffic which FIB to use?
 
Back
Top