ThreadingUDPSocketServer drop/reject?

Discussion in 'Python' started by James R. Saker Jr., Sep 22, 2004.

  1. Been digging into this one in Python docs and Beazley's Essential
    Reference but I must be missing something. I need a UDP server for my
    syslog collector app (preferably threaded for concurrency) to drop or
    reject UDP client requests based on source IP validation. Most of the
    google results I've seen show either authentication via upper layer
    protocol (e.g. TLS, which won't work for old syslog devices) or refer to
    using xinetd, /etc/hosts.allow external configurations (which puts
    control elsewhere and a bit further from my little app).

    Following ThreadingUDPServer's class inheritance up to BaseServer, I
    would believe I'd need to override get_request() with a method that
    evaluates the source IP (e.g. vs. a list[] ) and if address not in list,
    then close_request().

    Any thoughts on the approach here?

    Jamie
     
    James R. Saker Jr., Sep 22, 2004
    #1
    1. Advertising

Want to reply to this thread or ask your own question?

It takes just 2 minutes to sign up (and it's free!). Just click the sign up button to choose a username and then you can ask your own questions on the forum.
Similar Threads
  1. Replies:
    5
    Views:
    355
  2. Boris Pelakh
    Replies:
    1
    Views:
    770
    VisionSet
    Nov 14, 2004
  3. Replies:
    1
    Views:
    343
    Peter Flynn
    May 27, 2005
  4. Bob Wheeler
    Replies:
    0
    Views:
    375
    Bob Wheeler
    Jun 30, 2003
  5. Alf P. Steinbach
    Replies:
    1
    Views:
    327
    Jonathan Turkanis
    Jan 21, 2004
Loading...

Share This Page