[sclug] Forwarding broadcasts

Paul Weaver iso at isorox.co.uk
Fri Jan 7 17:04:29 UTC 2005


I know you're not meant to do it, however we've had a specific need to
forward broadcasts from one subnet onto another. 

Naturally forwarding packets from eth0 to eth1 is easy as pie (mmm,
pie), however it doesnt forward broadcasts. I've googled around and
found many a mention of "bcrelay", although only in forwarding UDP
packets. I can change the code to forward anything (remove the if clause
in "if (p.ip.protocol != IPPROTO_UDP || p.ip.daddr != INADDR_BROADCAST 
    || p.udp.dest != port) continue;"

But I was wondering if theres a kernel level option, and if anyone's
done this before.


More information about the Sclug mailing list