I have a default gateway on my network with a Ubuntu/iptables configuration, with IP address 192.168.1.254. Then there is another gateway on my local network for one specific subnet, say 126.96.36.199/24, with IP address 192.168.1.1.
My default gateway is set up with a static route for the 172-subnet over the second gateway.
When I traceroute to 188.8.131.52 from a Windows server (192.168.1.10), the first step is my default gateway, the second is my second gateway.
Here's my issue: A client on the 172-network uses windows file/print services on my 192-network. But going through my default gateway, this fails. If, however, I set the second gateway on the route to 172 for the Windows server it works.
What I would like is to avoid traffic to the 172-network going over the first gateway.
I've heard of "direct routing" and found some links: http://www.linuxvirtualserver.org/VS-DRouting.html RedHat LVS docs: http://red.ht/TFoNbi
But I don't get it.
How can I tell any client on the 192-network to use the 192.168.1.1 gateway for any traffic to the 172-network? How can I hide or skip the default gateway?