Linux Netfilter discussions
 help / color / mirror / Atom feed
* multiple routing tables for internal router programs
@ 2007-06-11 14:42 Andrea
  2007-06-11 15:58 ` Grant Taylor
  0 siblings, 1 reply; 2+ messages in thread
From: Andrea @ 2007-06-11 14:42 UTC (permalink / raw)
  To: netfilter

Maybe a strange request, I'll try to explain this as clearer as I can 
(forgive my bad english, please :-) ).

I'm setting a linux box as a router. My router uses multiple routing 
tables, so I can address the traffic from specific ip addresses of my 
lan to distinct ISPs providers (specifying a different default gateway 
fo r each table), marking packets with iptables (prerouting marks).

This works with the forwarding traffic (lan-ISPs) that crosses my router.

But how can I reach the same result for programs that are working INTO 
the linux box? All I want is that a program (ping, for examples, or a 
VOIP server, better) uses a secondary routing table in the same machine. 
In this mode, I can manipulate route settings for different classes of 
program in my router.

Is it possible?

Thanks


^ permalink raw reply	[flat|nested] 2+ messages in thread

* Re: multiple routing tables for internal router programs
  2007-06-11 14:42 multiple routing tables for internal router programs Andrea
@ 2007-06-11 15:58 ` Grant Taylor
  0 siblings, 0 replies; 2+ messages in thread
From: Grant Taylor @ 2007-06-11 15:58 UTC (permalink / raw)
  To: Mail List - Netfilter

On 06/11/07 09:42, Andrea wrote:
> But how can I reach the same result for programs that are working 
> INTO the linux box? All I want is that a program (ping, for examples, 
> or a VOIP server, better) uses a secondary routing table in the same 
> machine. In this mode, I can manipulate route settings for different 
> classes of program in my router.

Just like you are using IPTables to mark packets now and then based 
routing decisions based on the IPTables mark, mark packets inbound as 
you want to.

There is no limit on the number of ways that you can mark packets, 
inbound, outbound, source port, destination port, what ever.

(That is if I have understood you correctly.)



Grant. . . .


^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2007-06-11 15:58 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2007-06-11 14:42 multiple routing tables for internal router programs Andrea
2007-06-11 15:58 ` Grant Taylor

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox