[Click] Capturing outgoing packets in kernel mode

Roman Chertov rchertov at cs.ucsb.edu
Fri Dec 12 13:28:47 EST 2008


Cezary Krzyżanowski wrote:
> Hello again.
> 
> I'm wondering -- is there a way to catch outgoing packets from a given
> device (i.e. those sent by local programs) similar to FromDevice.u
> OUTBOUND yes method? I've found only having a FromHost device being in
> the same network (thus proper route statement) as the outgoing interface
> and with lower metric then the original device effective. 

What I typically do in such situations, I remove any route/IP 
information from the physical interface.  That way, only the FromHost 
device will be used by the IP stack.

Roman

I find it
> difficult to rewrite all packets from the virtual tun device and hand
> them back to the outgoing interface just to be able to mangle those
> packets.
> 
> Cezary Krzyzanowski
> 
> _______________________________________________
> click mailing list
> click at amsterdam.lcs.mit.edu
> https://amsterdam.lcs.mit.edu/mailman/listinfo/click
> 



More information about the click mailing list