* Broadcast redirecting
@ 2010-05-13 15:52 Anatoly Muliarski
2010-05-13 17:25 ` Federico Alberto Sayd
0 siblings, 1 reply; 6+ messages in thread
From: Anatoly Muliarski @ 2010-05-13 15:52 UTC (permalink / raw)
To: netfilter
Hi list,
Is it possible to redirect broadcast packets( with dst 255.255.255.255
) received on one interface to another?
Or should I use some standalone program?
--
Best regards
Anatoly Muliarski
^ permalink raw reply [flat|nested] 6+ messages in thread
* Re: Broadcast redirecting
2010-05-13 15:52 Broadcast redirecting Anatoly Muliarski
@ 2010-05-13 17:25 ` Federico Alberto Sayd
2010-05-13 18:22 ` Anatoly Muliarski
2010-05-13 19:21 ` Jan Engelhardt
0 siblings, 2 replies; 6+ messages in thread
From: Federico Alberto Sayd @ 2010-05-13 17:25 UTC (permalink / raw)
To: netfilter
Anatoly Muliarski escribió:
> Hi list,
>
> Is it possible to redirect broadcast packets( with dst 255.255.255.255
> ) received on one interface to another?
> Or should I use some standalone program?
>
>
brouting with ebtables??
arp proxy??
^ permalink raw reply [flat|nested] 6+ messages in thread
* Re: Broadcast redirecting
2010-05-13 17:25 ` Federico Alberto Sayd
@ 2010-05-13 18:22 ` Anatoly Muliarski
[not found] ` <AANLkTimnJP4xewG1ANHRCTakHDEvo3NRtoYyJMFTCD-G@mail.gmail.com>
[not found] ` <AANLkTinL7pHTUjeEBgrdHT7idfihws7jQYOGwMuzKyfl@mail.gmail.com>
2010-05-13 19:21 ` Jan Engelhardt
1 sibling, 2 replies; 6+ messages in thread
From: Anatoly Muliarski @ 2010-05-13 18:22 UTC (permalink / raw)
To: netfilter
2010/5/13 Federico Alberto Sayd <fsayd@uncu.edu.ar>:
>>
>> Is it possible to redirect broadcast packets( with dst 255.255.255.255
>> ) received on one interface to another?
>> Or should I use some standalone program?
>>
>>
>
> brouting with ebtables??
> arp proxy??
Thanks, but for some reasons I cannot use bridging.
And ARP proxy works for ARP packets only.
May be, the problem consists in routing code which does not allow to
redirect broadcast packets.
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.
--
Best regards
Anatoly Muliarski
^ permalink raw reply [flat|nested] 6+ messages in thread
* Re: Broadcast redirecting
[not found] ` <AANLkTimnJP4xewG1ANHRCTakHDEvo3NRtoYyJMFTCD-G@mail.gmail.com>
@ 2010-05-13 19:17 ` Anatoly Muliarski
0 siblings, 0 replies; 6+ messages in thread
From: Anatoly Muliarski @ 2010-05-13 19:17 UTC (permalink / raw)
To: Curby; +Cc: netfilter
2010/5/13 Curby <curby@cur.by>:
> On Thu, May 13, 2010 at 12:22 PM, Anatoly Muliarski <x86ever@gmail.com> 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
^ permalink raw reply [flat|nested] 6+ messages in thread
* Re: Broadcast redirecting
[not found] ` <AANLkTinL7pHTUjeEBgrdHT7idfihws7jQYOGwMuzKyfl@mail.gmail.com>
@ 2010-05-13 19:18 ` Anatoly Muliarski
0 siblings, 0 replies; 6+ messages in thread
From: Anatoly Muliarski @ 2010-05-13 19:18 UTC (permalink / raw)
To: Mistick Levi; +Cc: netfilter
2010/5/13 Mistick Levi <gmistick@gmail.com>:
> You could spoof the packet:
> http://www.pythonprasanna.com/Papers%20and%20Articles/Sockets/udpspoof_pl.txt
>
> Best regards
> Levi Yechiel
>
Thanks, that is a valuable advice!
--
Best regards
Anatoly Muliarski
^ permalink raw reply [flat|nested] 6+ messages in thread
* Re: Broadcast redirecting
2010-05-13 17:25 ` Federico Alberto Sayd
2010-05-13 18:22 ` Anatoly Muliarski
@ 2010-05-13 19:21 ` Jan Engelhardt
1 sibling, 0 replies; 6+ messages in thread
From: Jan Engelhardt @ 2010-05-13 19:21 UTC (permalink / raw)
To: Federico Alberto Sayd; +Cc: netfilter
On Thursday 2010-05-13 19:25, Federico Alberto Sayd wrote:
> Anatoly Muliarski escribió:
>> Hi list,
>>
>> Is it possible to redirect broadcast packets( with dst 255.255.255.255
>> ) received on one interface to another?
>> Or should I use some standalone program?
>
>
> brouting with ebtables??
> arp proxy??
2x No.
Broadcasts are not routed.
^ permalink raw reply [flat|nested] 6+ messages in thread
end of thread, other threads:[~2010-05-13 19:21 UTC | newest]
Thread overview: 6+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2010-05-13 15:52 Broadcast redirecting Anatoly Muliarski
2010-05-13 17:25 ` Federico Alberto Sayd
2010-05-13 18:22 ` Anatoly Muliarski
[not found] ` <AANLkTimnJP4xewG1ANHRCTakHDEvo3NRtoYyJMFTCD-G@mail.gmail.com>
2010-05-13 19:17 ` Anatoly Muliarski
[not found] ` <AANLkTinL7pHTUjeEBgrdHT7idfihws7jQYOGwMuzKyfl@mail.gmail.com>
2010-05-13 19:18 ` Anatoly Muliarski
2010-05-13 19:21 ` Jan Engelhardt
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.