euglug.org

[카테고리:] Uncategorized

  • [Eug-lug] Need to send mail from local server to a MTA over www



    turtleTue Aug 21 15:35:02 PDT 2007

    HI all this is my first time posting here.
    I am looking for some recomendations, how to's wiki's etc.
    I would like to configure our Gentoo server to send its mail to a MTA over the 
    net at dreamhost.
    I am looking at [url]http://www.postfix.org/docs.html[/url] and 
    [url=http://forums.gentoo.org/viewtopic-p-3011748.html]ssmtp[/url]
    The Gentoo server needs to also other admin stuff using the /usr/bin/mail type 
    command.
    
    1) Easy elegant simple configuration prefered.
    2) and few hassles
    3) There is no DE or GUI on either server.
    4) I need to store the username and password for the email account on the 
    Gentoo server securely.
    5) I would like security when transfering username and pass to dreamhosts MTA.
    6) I would like to make sure the Gentoo server cannot be hacked and used for 
    spam.
    7) The Gentoo server does not need to receive any mail.
    What should I use?
    Eratta: I have procmail and sendmail already installed and running but the 
    config process is for this is confusing.
    The problem is the mail is not reliably getting through (the main mail/web 
    server in the "from"  is at our domain the server sending the mail is not) 
    mail needs to be from our actual domain for peoples spam filters. Note: There 
    is no way of adding our server as a sub domain.
    Cheers turtle
    
  • [Eug-lug] [ITPRO-ANNOUNCE] August 21, “Lightning Talks”



    Hal PomeranzMon Aug 20 09:04:15 PDT 2007

    The meeting is tomorrow night, so you have one day left to prepare
    your "Lightning Talk".  In case it wasn't obvious, even people who
    aren't planning on speaking are welcome to attend:
    
        "Lightning Talks" (on cool hacks)
        Presented by: everyone!
        6:30pm Tuesday, August 21 -- Eugene City Brewery (downstairs)
    
        Have you been working on something cool lately that you'd like to
        share?  Or maybe you have a technique that you've been using for
        years that you think the rest of the group should know about.
        The "Lightning Talks" format gives you 5-10 minutes to get the
        word out to the rest of the ITProForum crew!
    
        Hey, I know what you're thinking:  "I couldn't possibly do that!
        I don't know anything about anything worth talking about!"  But
        I guarantee you're absolutely and completely 100% wrong.  Don't
        believe me?  Then drop me an email privately and I bet we can come
        up with a topic that you'll easily be able to talk about for 5 minutes.
    
    Our meetings are the THIRD TUESDAY of every month at 6:30pm (please do
    not arrive before 6pm) in the downstairs room at the Eugene City Brewery.
    Information on meetings, mailing lists, etc can be found at itproforum.org.
    
  • [Eug-lug] PLUG Advanced Topics August 20th 2007



    AlanSun Aug 19 15:17:57 PDT 2007

    Portland Linux/Unix Group Advanced Topics Meeting
    
    Date:       August 20th 2007
    Time:       7:00pm
    Location:   Jax Bar and Grill
                826 SW 2nd Ave
                Portland, OR 97204
                http://www.jaxbar.com/  (Not http://www.jax.com/)
    
    
    Topic:	    Detecting and Dissecting Rootkits in Linux
    Speaker:    Alan Olsen
                Advanced Topics Coordinator
                Programmer, Sysadmin and Troublemaker
    
    Rootkits are the spyware of the Linux world.  We will be discussing what
    they are, where and how they hide, and what they actually do.  I will be
    covering the various types of rootkits, including the dreaded (and
    overhyped "Blue Pill"), kernel rootkits, and the stuff that the script
    kiddies just left on your server an hour ago.  Included will be the
    tools used to find the various types of rootkits, as well as defensive
    measures.
    
    Alan Olsen has been working with Linux since 1994.  Computers since
    1972.  His first program was written in Fortran on punch cards for a
    Honeywell mainframe.  This makes him feel very old.
    
    Standard Meeting Rules apply.
    
    Standard meeting rules (from October 18th 2000) as written by Zot
    O'Connor:
    
    1) The speaker has 15 minutes free. No abusing the speaker for 15
    minutes. After that, its a free for all.
    
    2) There are stupid questions.  The speaker (and the group) can deem a
    question too basic for the topic, too off-topic, or just dumb.  This may
    seem rude, but the idea is to stay deep into the topic.  For instance,
    given a talk on Cryptography, it can be expected that the room knows all
    about public/private key pairs.  The speaker should list topics you are
    expected to know before arriving.
    
    3) There should be a lot of questions and feedback from the audience.
    
    4) Everyone, including the speaker should feel like the topic is over
    their head.
    
    5) All are invited, but be sure to know that the talk is aimed at
    experts/advanced Linux persons (or those that *think* their experts).
    
    
    
    
  • [Eug-lug] arp kernel voodoo question for the gurus.



    larry priceSat Aug 18 19:42:53 PDT 2007

    On 8/18/07, Bob Miller <kbob at jogger-egg.com> wrote:
    > What's the problem that requires short ARP timeouts?
    
    A very puzzling issue with two machines that would drop off the
    network for two minutes every twelve minutes.
    
    Close analysis of the packet dumps told me that every outage ended
    with an arp request from the affected host for the gateway address.
    Once i knew that
    
    arping -i eth0 $gw_ip_address
    
    run from cron every 9 minutes was sufficient to prevent the outage.
    but that solution was rather hacky, setting
    net.ipv4.eth0.bae_reachable_time in sysctl.conf with a comment as to
    why is a much cleaner solution.
    
  • [Eug-lug] arp kernel voodoo question for the gurus.



    Bob MillerSat Aug 18 09:04:24 PDT 2007

    Mike Cherba wrote:
    
    > By my reading this means that
    > proc/sys/net/ipv4/neigh/[interface]/base_reachable_time
    > is the parameter which controls how fast the entries age out of the
    > table.  It defaults to 30 seconds, which means that arp reaffirmation
    > can take anywhere from ~15-45 seconds between passes.  When I shorten
    > this to 10 I see the arps happen between 5 and 15 seconds.
    
    What's the problem that requires short ARP timeouts?
    
    -- 
    Bob Miller                              K<bob>
                                            kbob at jogger-egg.com
    
  • [Eug-lug] arp kernel voodoo question for the gurus.



    Ben BarrettFri Aug 17 19:33:56 PDT 2007

    whoops on me :)  Misread shorten, ha.
    Looks like hammer on the nail, Mike.
    
    On 8/17/07, Ben Barrett <stircrazyben at gmail.com> wrote:
    >
    > Do you want it to ignore arp requests from other network devices as well?
    > (or just slow down the requests generated from this machine?)
    >
    > ben
    >
    >
    > On 8/17/07, larry price <laprice at gmail.com> wrote:
    > >
    > > On 8/17/07, Mike Cherba <mike.cherba at caviumnetworks.com> wrote:
    > > > Larry,
    > > >         I did a little digging and I finally found something that
    > > appears to
    > > > confirm my idea that gc_stale_time is the answer.
    > > > http://linux-ip.net/html/ether-arp.html
    > > > you will  want to change this for the interface in question, as the
    > > > default values only get used when creating new interfaces.
    > >
    > > setting
    > > net.ipv4.neigh.eth0.gc_stale_time =3D 5  //a ridiculously low value
    > >
    > > and watching the interface with
    > > tcpdump -i eth0 arp
    > >
    > > does not force arp requests every 5 seconds as you might expect.
    > >
    > > reading through /net/core/neighbour.c doesn't really give me any ideas
    > > as to what's going on.
    > >
    > > net/ipv4/arp.c has the functions for creating and sending arp packets,
    > > but I'm missing the governing logic.
    > > _______________________________________________
    > > EUGLUG mailing list
    > > euglug at euglug.org
    > > http://www.euglug.org/mailman/listinfo/euglug
    > >
    >
    >
    -------------- next part --------------
    An HTML attachment was scrubbed...
    URL: http://euglug.org/pipermail/euglug/attachments/20070817/26fd2534/attac=
    hment.html
    
  • [Eug-lug] arp kernel voodoo question for the gurus.



    Mike CherbaFri Aug 17 19:26:31 PDT 2007

    What that setting will do is force a ARP request 5 seconds after the
    entry has "gone stale"
    
    After a little examination of the  net/core/neighbour.c file it appears
    that the relevant function here is: neigh_periodic_timer
    
    There is a comment on line 691 in this file which states:
    
           /* Cycle through all hash buckets every base_reachable_time/2 ticks.
             * ARP entry timeouts range from 1/2 base_reachable_time to 3/2
             * base_reachable_time.
             */
            expire = tbl->parms.base_reachable_time >> 1;
            expire /= (tbl->hash_mask + 1);
            if (!expire)
                    expire = 1;
    
            mod_timer(&tbl->gc_timer, now + expire);
    
            write_unlock(&tbl->lock);
    
    By my reading this means that
    proc/sys/net/ipv4/neigh/[interface]/base_reachable_time
    is the parameter which controls how fast the entries age out of the
    table.  It defaults to 30 seconds, which means that arp reaffirmation
    can take anywhere from ~15-45 seconds between passes.  When I shorten
    this to 10 I see the arps happen between 5 and 15 seconds.
    			-Mike
    
    
    
    We shall do a much better programming job, provided we approach the task
    with a full appreciation of its tremendous difficulty, provided that we
    respect the intrinsic limitations of the human mind and approach the
    task as very humble programmers. --- Alan Turing
    
    
    On Fri, 2007-08-17 at 18:02 -0700, larry price wrote:
    > On 8/17/07, Mike Cherba <mike.cherba at caviumnetworks.com> wrote:
    > > Larry,
    > >         I did a little digging and I finally found something that appears to
    > > confirm my idea that gc_stale_time is the answer.
    > > http://linux-ip.net/html/ether-arp.html
    > > you will  want to change this for the interface in question, as the
    > > default values only get used when creating new interfaces.
    > 
    > setting
    > net.ipv4.neigh.eth0.gc_stale_time = 5  //a ridiculously low value
    > 
    > and watching the interface with
    > tcpdump -i eth0 arp
    > 
    > does not force arp requests every 5 seconds as you might expect.
    > 
    > reading through /net/core/neighbour.c doesn't really give me any ideas
    > as to what's going on.
    > 
    > net/ipv4/arp.c has the functions for creating and sending arp packets,
    > but I'm missing the governing logic.
    > _______________________________________________
    > EUGLUG mailing list
    > euglug at euglug.org
    > http://www.euglug.org/mailman/listinfo/euglug
    
    
  • [Eug-lug] arp kernel voodoo question for the gurus.



    Ben BarrettFri Aug 17 18:40:51 PDT 2007

    Do you want it to ignore arp requests from other network devices as well?
    (or just slow down the requests generated from this machine?)
    
    ben
    
    
    On 8/17/07, larry price <laprice at gmail.com> wrote:
    >
    > On 8/17/07, Mike Cherba <mike.cherba at caviumnetworks.com> wrote:
    > > Larry,
    > >         I did a little digging and I finally found something that
    > appears to
    > > confirm my idea that gc_stale_time is the answer.
    > > http://linux-ip.net/html/ether-arp.html
    > > you will  want to change this for the interface in question, as the
    > > default values only get used when creating new interfaces.
    >
    > setting
    > net.ipv4.neigh.eth0.gc_stale_time =3D 5  //a ridiculously low value
    >
    > and watching the interface with
    > tcpdump -i eth0 arp
    >
    > does not force arp requests every 5 seconds as you might expect.
    >
    > reading through /net/core/neighbour.c doesn't really give me any ideas
    > as to what's going on.
    >
    > net/ipv4/arp.c has the functions for creating and sending arp packets,
    > but I'm missing the governing logic.
    > _______________________________________________
    > EUGLUG mailing list
    > euglug at euglug.org
    > http://www.euglug.org/mailman/listinfo/euglug
    >
    -------------- next part --------------
    An HTML attachment was scrubbed...
    URL: http://euglug.org/pipermail/euglug/attachments/20070817/c040c2e7/attac=
    hment.htm
    
  • [Eug-lug] arp kernel voodoo question for the gurus.



    larry priceFri Aug 17 18:02:46 PDT 2007

    On 8/17/07, Mike Cherba <mike.cherba at caviumnetworks.com> wrote:
    > Larry,
    >         I did a little digging and I finally found something that appears to
    > confirm my idea that gc_stale_time is the answer.
    > http://linux-ip.net/html/ether-arp.html
    > you will  want to change this for the interface in question, as the
    > default values only get used when creating new interfaces.
    
    setting
    net.ipv4.neigh.eth0.gc_stale_time = 5  //a ridiculously low value
    
    and watching the interface with
    tcpdump -i eth0 arp
    
    does not force arp requests every 5 seconds as you might expect.
    
    reading through /net/core/neighbour.c doesn't really give me any ideas
    as to what's going on.
    
    net/ipv4/arp.c has the functions for creating and sending arp packets,
    but I'm missing the governing logic.
    
  • [Eug-lug] arp kernel voodoo question for the gurus.



    Mike CherbaFri Aug 17 16:47:07 PDT 2007

    Larry,
    	I did a little digging and I finally found something that appears to
    confirm my idea that gc_stale_time is the answer.
    http://linux-ip.net/html/ether-arp.html
    you will  want to change this for the interface in question, as the
    default values only get used when creating new interfaces.
    
    			-Mike
    
    Computers are useless. They can only give you answers. -- Pablo Picasso
    
    On Fri, 2007-08-17 at 16:19 -0700, larry price wrote:
    > I have a need to shorten the time between arp requests for a specific
    > machine running a 2.6 kernel.
    > 
    > looking at the various sysctls available (sysctl entries map to /proc/sys/)
    > I see the following groups of variables that may be germane
    > 
    > net.ipv4.conf.eth0.arp_accept = 0
    > net.ipv4.conf.eth0.arp_ignore = 0
    > net.ipv4.conf.eth0.arp_announce = 0
    > net.ipv4.conf.eth0.arp_filter = 0
    > net.ipv4.neigh.default.app_solicit = 0
    > net.ipv4.conf.default.proxy_arp = 0
    > 
    > and the following time specifications that may be relevant.
    > 
    > net.ipv4.neigh.default.base_reachable_time_ms = 30000
    > net.ipv4.neigh.default.retrans_time_ms = 1000
    > net.ipv4.neigh.default.gc_thresh3 = 1024
    > net.ipv4.neigh.default.gc_thresh2 = 512
    > net.ipv4.neigh.default.gc_thresh1 = 128
    > net.ipv4.neigh.default.gc_interval = 30
    > 
    > But aside from man (7) arp
    > and /usr/src/linux/ip-sysctl.txt
    > 
    > I am not finding good documentation that tells me what I need to know.
    > 
    > So if anyone here has any idea about how the various knobs available
    > to tune arp caching actually interact I (and google) would be much
    > obliged if you could enlighten me.
    > 
    > Now I could work around the problem by using arping from cron, but
    > that is hacky and error prone and I would really rather have a clean
    > solution.
    > _______________________________________________
    > EUGLUG mailing list
    > euglug at euglug.org
    > http://www.euglug.org/mailman/listinfo/euglug