Routing problem with interfaces and gateways
BenMcBen last edited by
Hello tout le monde, :)
I come to you 'cause I've got a little routing problem that i would like to solve.
- I've got a PFSense with several interfaces aa.aa.aa.aa, bb.bb.bb.bb, cc.cc.cc.cc, etc…
- I wish a computer in the aa.aa.aa.aa network had different gateways if it wants to reach any computers in the bb.bb.bb.bb or the cc.cc.cc.cc network for example.
Actually, I'd like that a computer in the aa.aa.aa.aa network goes through the internet (thanks to the gateway dd.dd.dd.dd) to reach the bb.bb.bb.bb network. On the contrary, to go in the cc.cc.cc.cc network the next hop is the default gateway.
–-> When I ping (or traceroute) machines in the bb.bb.bb.bb or cc.cc.cc.cc network, the used route and gateway is the ones I want (either internet, or default).
–-> On the contrary when I directly ping the bb.bb.bb.bb or cc.cc.cc.cc interfaces, none gateway is used and the traceroute command tell me that the bb.bb.bb.bb interface is directly accessible in only ONE hop.
- Nevertheless I've added routing rules (System > Routing) or even i imposed the use of the desired gateway in the Firewall (Firewall > Rules)
So, my question is : "Is it possible to force the use of a gateway even if the interface is immediatly acceded (by ping or other commands), in case of my computer doesn't reach it directly ?"
In advance THANKS A LOT for your help.
(PS : Excuse my poor english… :P)