Re: Broadcast redirecting

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



2010/5/13 Curby <curby@xxxxxx>:
> On Thu, May 13, 2010 at 12:22 PM, Anatoly Muliarski <x86ever@xxxxxxxxx> wrote:
>> Also I can write some daemon in Perl which will receive broadcast
>> packets and inject them on another interface. But the source address
>> of the injected packets will belong to the router and I need them to
>> be as in original packets.
>
> I'm no good at Perl but I think it has an interface to hping, which
> can be used to craft (or mangle?) packets as you please.  May be
> something to look into.
>
> --Mike
>

Thanks for the idea, I'll try to have a look into it.

Currently, I have investigated using brouting - it looks more attractive.
The idea consists in mostly using L3, but treating broadcast on L2.

Here is a sketch:
brctl addbr br0
brctl stp br0 off
brctl addif br0 eth0
brctl addif br0 eth1
ifconfig br0 0.0.0.0
ebtables -t broute -A BROUTING -p IPv4 --ip-dst 255.255.255.255 -j ACCEPT
ebtables -t broute -A BROUTING -j DROP

I should try it later.



-- 
Best regards
Anatoly Muliarski
--
To unsubscribe from this list: send the line "unsubscribe netfilter" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html

[Index of Archives]     [Linux Netfilter Development]     [Linux Kernel Networking Development]     [Netem]     [Berkeley Packet Filter]     [Linux Kernel Development]     [Advanced Routing & Traffice Control]     [Bugtraq]

  Powered by Linux