John Bailey <[EMAIL PROTECTED]> wrote:
> Hi All,
> 
> I'm looking for some advice - I'd like to have some code which can match
> certain packets and have those packets output on a specified interface,
> other than the default one.
> Could someone advise me on the best way to approach this?  I've got some
> experience with libipq, but havn't seen anything which would allow me to
> do what I want.  Or do I need to start messing with netfilter hooks?  If
> so, what's the best technique for re-directing the packets?

I think that Linux advanced routing might be more what you need.
Have a look at the Advanced Routing HowTo 
(http://www.tldp.org/HOWTO/Adv-Routing-HOWTO.html) and the command ip.
Maybe a combination of netfilter and routing (I think of marking the
packets and then routing decision made by marks) will do the trick.

Cheers,
Juri

-- 
Juri Haberland  <[EMAIL PROTECTED]> 


Reply via email to