Linux Netfilter discussions
 help / color / mirror / Atom feed
* Different routes for different src addresses
@ 2004-07-07 12:05 Alpt
  2004-07-07 12:39 ` Martijn van Oosterhout
                   ` (2 more replies)
  0 siblings, 3 replies; 7+ messages in thread
From: Alpt @ 2004-07-07 12:05 UTC (permalink / raw)
  To: netfilter; +Cc: linux-net

[-- Attachment #1: Type: text/plain, Size: 1363 bytes --]

Hi all,
is it possible to create a route for a single src address?
For example these are some routes I'd like to use: 

1) "All the pkts coming from hostA with dst=hostX are routed to eth1".
2) "All the pkts coming from hostB with dst=hostT are routed to eth0"
/*Normal routes start here*/
3) "All the pkts (that are not pkts of type 1) and 2)) with dst=hostX
are routed to eth3"
4) "All the pkts (that are not pkts of type 1) and 2)) with dst=hostU
are routed to eth2"
5) And so on...


I mean _routing_, not natting. If I nat the pkts their destination will
change and I need to keep it intact.

In the FIB routing table I can only specify the target address, but I've 
noticed that the kernel's cache matches the source field. But when I try
to modify it I get: "Modifying `inet' routing cache not supported".
So, Is it possible to modify the krnl's cache from the user space with
some magic ioctl?

Is there a solution for this problem? Can netfilter do something for
this?

And, what's the best method to modify the FIB from user space? The ioctl
or the rtnetlink?

Thank you (^_^)
I live waiting your wise reply
-- 
:wq!
"I don't know nothing" The One Who reached the Thinking Matter   '.'

[ Alpt --- Freaknet Medialab ]
[ GPG Key ID 441CF0EE ]
[ Key fingerprint = 8B02 26E8 831A 7BB9 81A9  5277 BFF8 037E 441C F0EE ]

[-- Attachment #2: Type: application/pgp-signature, Size: 189 bytes --]

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

end of thread, other threads:[~2004-07-08  5:52 UTC | newest]

Thread overview: 7+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2004-07-07 12:05 Different routes for different src addresses Alpt
2004-07-07 12:39 ` Martijn van Oosterhout
2004-07-07 13:10 ` Antony Stone
2004-07-07 21:02   ` Nick Taylor
2004-07-07 21:36     ` Antony Stone
2004-07-08  5:52       ` Alpt
2004-07-07 14:38 ` John A. Sullivan III

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