in reply to Re: Intercepting UDP broadcasts
in thread Intercepting UDP broadcasts

By default (unless you asked for "no security" or something similar during the install) RH7.3 sets up an ipchains firewall which will block incoming UDP packets for port <= 1023, among others. Is there any chance that's tripping you up?

Replies are listed 'Best First'.
Re: Re: Re: Intercepting UDP broadcasts
by meredith (Friar) on Jan 30, 2004 at 21:20 UTC
    Sounds like AM has a good idea here.. check your kernel log to see if they got dropped. I used your code on the OP and 'nc -u localhost 67' and it worked like a charm. "foobar.\n" => Saw a bootp request


    mhoward - at - hattmoward.org
Re: Re: Re: Intercepting UDP broadcasts
by elwarren (Priest) on Jan 30, 2004 at 21:31 UTC
    Actually it leaves it on no matter what choice you make during install on all the 7.x and 8.x versions. I always had to go in and diable it for Oracle. I think they finally fixed it in 9, but I've since switched to Gentoo and haven't installed RH in a while.

    As for examples, the last broadcast UDP client I saw was the Net::mDNS module that is used to send and receive multicast dns over udp for things like Apple's Rendezvous. You can get it from CPAN.

    HTH