euglug.org

[작성자:] admin

  • [Eug-lug] Bandwidth limiting for apache2?



    Allen BrownSun Jan 23 08:52:57 PST 2005

    I think I read an article in Linux Journal about the Linux Firewall
    introduced in 2.4 that talked about doing this.  I think doing
    this at the firewall level would be the best approach because
    it would have lower overhead than any other approach.
    --
    Allen Brown
      work: Agilent Technologies      non-work: http://www.peak.org/~abrown/
            allen_brown at agilent.com             abrown at peak.org
      The dinosaurs became extinct because they didn't have a space program.
      --- Larry Niven
    
    
    On Sat, 22 Jan 2005, larry price wrote:
    
    > google isn't giving me any love on this one.
    > 
    > II'm trying to limit bot attacks against a webserver.
    > 
    > I'm looking for a way to cap requests on a per ip basis,
    > but don't want to block legitimate requests at all,
    > I also want to be able to automatically detect, record, and block new attacks.
    > 
    > I was looking at mod_throttle and mod_bandwidth but they are strictly for 1.3
    > 
    > Is this a problem that is better dealt with at the packet filtering level?
    > 
    > would it be worthwhile to attempt to port one of the aforementioned
    > modules to apache 2.0 ?
    > 
    > It's more important that requests be limited than that total outgoing
    > bandwidth be limited and I have no problem with returning a 403 error
    > to offending requests.
    > 
    > Suggestions? Comments? Places to look for more docs.?
    > 
    > -- 
    > http://Zoneverte.org -- information explained
    > Do you know what your IT infrastructure does?
    > _______________________________________________
    > EUGLUG mailing list
    > euglug at euglug.org
    > http://www.euglug.org/mailman/listinfo/euglug
    > 
    
  • [Eug-lug] Computer time



    Allen BrownSun Jan 23 08:42:11 PST 2005

    On Sat, 22 Jan 2005, Bob Miller wrote:
    
    > Jacob Meuser wrote:
    > 
    > > On Fri, Jan 21, 2005 at 01:01:14PM -0800, Max Lemieux wrote:
    > > > Agreed, vi seems to be the universally present editor.
    > > 
    > > ed is the universal editor.
    > 
    > No, ed is the STANDARD text editor.
    > http://www.gnu.org/fun/jokes/ed.msg.html
    > 
    > I agree with Max.  Nano is a good, non-confusing editor.  I'll bet I've
    > been using emacs longer than anyone here -- I first used the original
    > TECo-based version on MIT-AI sometime in 1978.  But I'm still aware
    > that emacs is a bear to learn.
    > -- 
    > Bob Miller                              K<bob>
    
    emacs is a bear to learn *completely*.  But you can be quite effective
    using a "nano" fraction of it.  If all you learn of emacs is the
    capabilities that are provided in nano, emacs is no more difficult to
    learn than nano.  But with nano, that is all you can do.  With emacs
    you can continue to grow.
    --
    Allen Brown
      work: Agilent Technologies      non-work: http://www.peak.org/~abrown/
            allen_brown at agilent.com             abrown at peak.org
      It is more agreeable to have the power to give than to receive.
      --- Sir Winston Churchill
    
    
  • [Eug-lug] Computer time



    Bob MillerSun Jan 23 00:54:18 PST 2005

    Neil Parker wrote:
    
    > By the way, if you've ever used any full-screen software on the text
    > screen (or xterm/konsole/gnome-terminal window), chances are it does its
    > full-screen stuff by using the "curses" library.  Well, apparently the
    > original version of the curses library was also written by Bill Joy, and
    > he made it by ripping his screen-handling code out of vi and wrapping it
    > up as a separate library.
    
    It was my understanding that wnj wrote termcap vi, but Ken Arnold
    pulled the screen handling parts of vi out to form curses.
    
    -- 
    Bob Miller                              K<bob>
    kbobsoft software consulting
    http://kbobsoft.com                     kbob at jogger-egg.com
    
  • [Eug-lug] Wrapping for Access Control



    Bob MillerSun Jan 23 00:49:20 PST 2005

    Jeff_W wrote:
    
    > Yeah, I found something in the gopher list archives from the author
    > stating that there was no built-in inetd/xnetd support.  I'm curious
    > if there is a python module or flag that might change the character
    > of a program so as to allow invocation via inetd. John Goerzen,
    > PYG's author, appears to be somewhat of an authority on python coding
    > for network services so maybe it's not a trivial task:
    
    A non-inetd daemon opens a _socket_, _bind_s it to a well-known port,
    and then _listen_s for incoming connections.  When it gets one, it
    _accept_s the connection.  (Words delimited in underscores are the
    names of the syscalls used.)  There are two sockets used -- the first
    is the "listening socket", and the second is the "connection socket",
    which is returned from accept().
    
    An inetd aware daemon knows that when inetd invokes it, the listening
    socket will have already been opened, bound, and listened on, and the
    connection will have been accepted.  The connection socket will be
    file descriptor 0 (standard input, though the socket is
    bidirectional).
    
    Somewhere in the gopherd source there should be code that listens on a
    socket.  It looks like this.
    
    	import socket
    	s = socket.Socket(...)
    	s.bind(...)
    	s.listen(...)
    
    And then somewhere else there is code like this.
    
    	conn, address = s.accept()
    
    You can remove the first snippet and replace the second snippet with this.
    
    	conn = socket.fromfd(0)
    	address = socket.getpeername()
    
    If you can make that substitution, you can make your daemon
    inetd-aware.  It won't work outside of inetd anymore, of course.
    
    > Anyways, I've come across 'tcpserver' (part of ucspi-tcp by
    > D. J. Bernstein, the Qmail guy) which might do the trick:
    
    tcpserver won't help.  You'd still have to rewrite your daemon
    to work with it.
    
    -- 
    Bob Miller                              K<bob>
    kbobsoft software consulting
    http://kbobsoft.com                     kbob at jogger-egg.com
    
  • [Eug-lug] Wrapping for Access Control



    Jacob MeuserSun Jan 23 00:35:59 PST 2005

    On Sat, Jan 22, 2005 at 11:30:00PM -0800, Jeff_W wrote:
    
    > Hey Neil - thanks for the concise inetd explaination. I
    > don't really care about using inetd so much as having the
    > host access control provided by TCP Wrappers; it just seems
    > that TCPW is married to inetd (with the exception of sshd
    > and maybe sendmail).  I think ultimately I'm going to need
    > to rely on a firewall to get real security, however the
    > simplicity of TCP Wrappers _is_ very attractive.  I've
    > installed the tcpserver stuff but it looks pretty cryptic
    > so far; maybe if I just stare at it long enough ....
    
    the checking functionality comes from libwrap.  that's how it's
    in other programs, like tcpdchk.
    
    maybe there is a libwrap module for python?
    
    -- 
    <jakemsr at jakemsr.com>
    
  • [Eug-lug] mac-mini mac-slack-ub-lin meeting



    Bob MillerSun Jan 23 00:23:24 PST 2005

    perdurabo wrote:
    
    > What are you? Some sicko? Us Mac fanboys use firewire and USB2...
    > crack a case? psshhh!
    
    Will the Mac Mini boot off an external drive?
    
    -- 
    Bob Miller                              K<bob>
    kbobsoft software consulting
    http://kbobsoft.com                     kbob at jogger-egg.com
    
  • [Eug-lug] Wrapping for Access Control



    Jeff_WSat Jan 22 23:30:00 PST 2005

    nparker at LLX.COM (Neil Parker) wrote:
    
    > >I don't understand TCP wrappers, but from Bob's comment I'd guess the
    > >wrapper is listening to port:70(?)
    >
    > Actually, TCP wrappers doesn't listen on ANY port.
    >
    > Understanding TCP wrappers requires understanding how inetd works.
    > Inetd reads a configuration file (/etc/inetd.conf) that tells it what
    > ports to listen on, and what client programs to invoke when something tries
    > to connect to those ports.  Inetd handles all the socket programming itself,
    > and when it launches a client program to handle an incoming request, it
    > connects the program's standard input and output to the socket.  So all the
    > client program has to do is read from its standard input and write to its
    > standard output.
    >
    > TCP wrappers includes a special client program called "tcpd".  The idea is
    > that you tell inetd (via /etc/inetd.conf) to launch tcpd instead of the
    > real client program.  Tcpd checks the origin of the connection using its
    > hosts.allow and hosts.deny files, and if the tests pass, it launches the
    > real client program.
    >
    >
    > Programs that don't expect to run under inetd have to do all their socket
    > handling all by themselves.  Fixing a standalone program to work under
    > inetd generally means ripping out all that socket handling code and
    > replacing it code that just reads from standard input and writes to
    > standard output.
    
    Hey Neil - thanks for the concise inetd explaination. I
    don't really care about using inetd so much as having the
    host access control provided by TCP Wrappers; it just seems
    that TCPW is married to inetd (with the exception of sshd
    and maybe sendmail).  I think ultimately I'm going to need
    to rely on a firewall to get real security, however the
    simplicity of TCP Wrappers _is_ very attractive.  I've
    installed the tcpserver stuff but it looks pretty cryptic
    so far; maybe if I just stare at it long enough ....
    
    -Jeff
    
  • [Eug-lug] crack a Mac



    larry priceSat Jan 22 23:20:42 PST 2005

    On Sat, 22 Jan 2005 22:44:39 -0800 (PST), Mr O <notanatheist at yahoo.com> wrote:
    > Well, I opened it. Sorry to the Mac purists. I was going to
    > upgrade the RAM but my only 512MB sticks I could swap are
    > PC2100. There's PC3200 in there now. You need at least PC2700
    > for the upgrade. There's a proprietary connector for the IDE bus
    > that attaches to the standard slim line slot load CDRW/DVD drive
    > and laptop drive. All together it's packed really well and was a
    > little tricky to open safely. I've taken a few pictures of the
    > internals as well as external shots and will get them up on my
    > site as soon as possible.
    > 
    cool, we're looking forward to it.
    
    > Lots for me to pick up on the software too as far as configuring
    > the taskbar to my likings. Can you add drawers? I've already
    > installed Opera and Firefox. 
    
    > Where's the terminal? SSH? 
    under /Applications/Utilities
    
    start it and then click on the dock icon to tell it to keep the icon in the dock
    
    > NFS
    > support or only SMB?
    
    NFS, SMB and DAV are all available by default.
    
    
    
    
    
    -- 
    http://Zoneverte.org -- information explained
    Do you know what your IT infrastructure does?
    
  • [Eug-lug] crack a Mac



    Mr OSat Jan 22 22:44:39 PST 2005

    Well, I opened it. Sorry to the Mac purists. I was going to
    upgrade the RAM but my only 512MB sticks I could swap are
    PC2100. There's PC3200 in there now. You need at least PC2700
    for the upgrade. There's a proprietary connector for the IDE bus
    that attaches to the standard slim line slot load CDRW/DVD drive
    and laptop drive. All together it's packed really well and was a
    little tricky to open safely. I've taken a few pictures of the
    internals as well as external shots and will get them up on my
    site as soon as possible.
    
    Lots for me to pick up on the software too as far as configuring
    the taskbar to my likings. Can you add drawers? I've already
    installed Opera and Firefox. Where's the terminal? SSH? NFS
    support or only SMB?
    
    That be all for now,
    
    Mr O.
    
    __________________________________________________
    Do You Yahoo!?
    Tired of spam?  Yahoo! Mail has the best spam protection around 
    http://mail.yahoo.com 
    
  • [Eug-lug] Computer time



    Jacob MeuserSat Jan 22 22:06:20 PST 2005

    On Sat, Jan 22, 2005 at 09:46:08PM -0800, Neil Parker wrote:
    
    > these are "vim" and "elvis".  You may also run across "nvi", but it's a
    > lot rarer (and the last time I looked at it, a lot less powerful--nvi was
    
    not that rare.
    
    http://www.openbsd.org/cgi-bin/man.cgi?query=vi
    
        This manual page is the one provided with the nex/nvi versions of the
        ex/vi text editors.  nex/nvi are intended as bug-for-bug compatible re-
        placements for the original Fourth Berkeley Software Distribution (4BSD)
        ex and vi programs.
    
    -- 
    <jakemsr at jakemsr.com>