[Click] FromHost->ToDevice and ARPResponder
Eddie Kohler
kohler at cs.ucla.edu
Tue Aug 28 16:34:14 EDT 2007
Hi David,
Well, I guess the config you mention:
RealToDevice :: Queue -> ToDevice(eth0);
RealFromHost:: FromHost(real0, 192.168.0.3/25);
RealToHost :: ToHost(eth0);
RealHostSplitter :: Classifier(12/0806 20/0001, // ARP request
12/0806 20/0002, // ARP response
12/0800, // IP packets
-); // Any others
// Routing Setup
RealFromHost -> RealHostSplitter;
RealHostSplitter[0] -> Print(Real_Out_ARP_RQ) -> RealToDevice;
RealHostSplitter[1] -> Print(Real_Out_ARP_RP) -> RealToDevice;
RealHostSplitter[2] -> Print(Real_Out_IP) -> RealToDevice;
RealHostSplitter[3] -> Print(Real_Out_Other) -> RealToDevice;
might in fact work, as long as the address you gave to FromHost (namely
192.168.0.3) actually exists on the eth0 local network -- that is, as long as
the local network (eth0) will respond to ARP requests for 192.168.0.3,
eventually responding to the current host.
Does it work?
Eddie
dmoore7 at nd.edu wrote:
> Hello,
> I've been working on manipulating outbound traffic, and am confused by the use
> and examples of a FromHost -> [stuff] ->ToDevice system.
> My understanding from documentation is that I ought to filter all outgoing
> traffic:
> FromHost -> Filter;
> Filter for ARP Requests -> ARPResponder -> ToHost;
> Filter for IP Traffic -> ToDevice
>
> Won't sending all ARP requests to an ARP Responder, and connecting back ToHost
> prevent any ARP Requests intended for other machines from getting out?
>
> What is the simplest configuration to intercept all outgoing packets, pass them
> though a Print element, and then send them on their way? I have worked with
> using FromHost to capture the traffic, but I do not understand why I can't
> simply pass it on to ToDevice.
>
> In short, what prevents a simple configuration like this from functioning?
> http://www.nd.edu/~dmoore7/clickconfig1.click
>
> Thanks for your time and input,
> - David Moore
>
>
>
> _______________________________________________
> click mailing list
> click at amsterdam.lcs.mit.edu
> https://amsterdam.lcs.mit.edu/mailman/listinfo/click
More information about the click
mailing list