ip_input.c

From: Nickolay A. Kritsky (nkritsky_at_internethelp.ru)
Date: 05/26/03

  • Next message: James Ainslie: "Re: FreeBSD firewall block syn flood attack"
    Date: Mon, 26 May 2003 22:19:22 +0400
    To: freebsd-security@freebsd.org
    
    

      Hi, secfolks.

    While reading ip_input.c I have met following lines:

    ;-------------------------------------------------
        /* 127/8 must not appear on wire - RFC1122 */
        if ((ntohl(ip->ip_dst.s_addr) >> IN_CLASSA_NSHIFT) == IN_LOOPBACKNET ||
            (ntohl(ip->ip_src.s_addr) >> IN_CLASSA_NSHIFT) == IN_LOOPBACKNET) {
                if ((m->m_pkthdr.rcvif->if_flags & IFF_LOOPBACK) == 0) {
                        ipstat.ips_badaddr++;
                        goto bad;
                }
        }
    ;-------------------------------------------
    If we have such wonderful code inside freeBSD kernel, do we really
    need to duplicate in default rc.firewall:
    ;-------------------------------------------
    setup_loopback () {
            ############
            # Only in rare cases do you want to change these rules
            #
            ${fwcmd} add 100 pass all from any to any via lo0
            ${fwcmd} add 200 deny all from any to 127.0.0.0/8
            ${fwcmd} add 300 deny ip from 127.0.0.0/8 to any
    }
    ;-------------------------------------------

    I think that they are talking about the same thing, no?

    Best Regards.
    ;-------------------------------------------
    ; NKritsky
    ; mailto:nkritsky@internethelp.ru

    _______________________________________________
    freebsd-security@freebsd.org mailing list
    http://lists.freebsd.org/mailman/listinfo/freebsd-security
    To unsubscribe, send any mail to "freebsd-security-unsubscribe@freebsd.org"


  • Next message: James Ainslie: "Re: FreeBSD firewall block syn flood attack"

    Relevant Pages

    • Re: Help with Array Usage
      ... Part of the solution to your problem will then be opening a file for reading. ... There are no numbers at all in the first column. ... How can I remove duplicate elements from a list or array? ... Part of the solution to your problem will then be appending ...
      (comp.lang.perl.misc)
    • Re: How do I copy first consonant from a word into new cell
      ... When I run the code, the debugger stops on the last item saying it is a duplicate key, so it appears to have accepted the one million characters long keys and is apparently using them correctly. ... solutions is important, though, both for those reading this thread now, and ... nothing to do with Excel other than the solution is VBA. ...
      (microsoft.public.excel.misc)
    • Re: Problem in Win32Forth with open-file
      ... Win32Forth rev 6.10.04. ... I can open a file ok for reading, ... name is not a duplicate of an existing file and I can create the ... DOH! ...
      (comp.lang.forth)
    • Re: Problem in Win32Forth with open-file
      ... Win32Forth rev 6.10.04. ... I can open a file ok for reading, ... name is not a duplicate of an existing file and I can create the ... George Hubert ...
      (comp.lang.forth)
    • Re: Finding a duplicate entry with no end date
      ... It should work properly as per your specs, ie the error alert will pop up if ... the name entered is a duplicate, and if there is *no* end date (I've just ... Take a moment to press the "Yes" button from where you're reading this ...
      (microsoft.public.excel.misc)