Re: ipfirewall(4)) cannot be changed

From: Santos (sansan_at_cas.port995.com)
Date: 05/28/03

  • Next message: Simon L. Nielsen: "Re: ipfirewall(4)) cannot be changed"
    Date: Wed, 28 May 2003 17:05:50 +0100
    To: Giorgos Keramidas <keramida@ceid.upatras.gr>
    
    

    Giorgos Keramidas wrote:

    > Ah, that's fine. I don't have the time to test it now, but something
    > similar to the following should do the trick. Sorry for not running
    > this through a compile and a test run, but this is a very hectic day.
    > Someone with enough time to run a full buildworld/buildkernel and fix
    > any errors I have made should check that this fixes the problem and then
    > notify the security officer. It looks like something that would be nice
    > to have in STABLE *and* the security branches IMHO.
    >
    > <<<<<<<
    > Index: ip_fw.c
    > ===================================================================
    > RCS file: /home/ncvs/src/sys/netinet/ip_fw.c,v
    > retrieving revision 1.131.2.39
    > diff -u -r1.131.2.39 ip_fw.c
    > --- ip_fw.c 20 Jan 2003 02:23:07 -0000 1.131.2.39
    > +++ ip_fw.c 26 May 2003 07:50:05 -0000
    > @@ -94,9 +94,25 @@
    > MALLOC_DEFINE(M_IPFW, "IpFw/IpAcct", "IpFw/IpAcct chain's");
    >
    > #ifdef SYSCTL_NODE
    > +
    > +static int
    > +sysctl_fw_enable(SYSCTL_HANDLER_ARGS)
    > +{
    > + int error, v;
    > +
    > + if (securelevel >= 3)
    > + return (ENOPERM);
    > +
    > + error = sysctl_handle_int(oidp, oidp->oid_arg1, 0, req);
    > + if (error || !req->newptr)
    > + return (error);
    > +
    > + return (0);
    > +}
    > +
    > SYSCTL_NODE(_net_inet_ip, OID_AUTO, fw, CTLFLAG_RW, 0, "Firewall");
    > -SYSCTL_INT(_net_inet_ip_fw, OID_AUTO, enable, CTLFLAG_RW,
    > - &fw_enable, 0, "Enable ipfw");
    > +SYSCTL_PROC(_net_inet_ip_fw, OID_AUTO, enable, CTLTYPE_INT|CTLFLAG_RW,
    > + &fw_enable, 0, sysctl_fw_enable, "I", "Enable ipfw");
    > SYSCTL_INT(_net_inet_ip_fw, OID_AUTO,one_pass,CTLFLAG_RW,
    > &fw_one_pass, 0,
    > "Only do a single pass through ipfw when using dummynet(4)");
    >
    >

    This doesn't fix the problem. Maybe this only fixes IPFW1 and not IPFW2
    too?...

    Santos

    _______________________________________________
    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: Simon L. Nielsen: "Re: ipfirewall(4)) cannot be changed"

    Relevant Pages

    • Re: Actual Lottery Stuff. WOW eh?
      ... (Clue #1) ... I never bother to compile any project because I almost always ... I put a comment into it that tells how to fix it, ... VB5 was a major upgrade from all previous versions in that it compiles ...
      (rec.gambling.lottery)
    • Re: pointer q
      ... If you were trying to fix the code further up so it would compile what you wanted was: ... More a case of only reading part of the data with my "fix". ... Am I not reading, with correction, the number that a smaller type thinks a larger type was? ... It may have looked formatted on your machine, but here it looks a right mess, and I'm not going to try all my fonts on the off chance one uses the same spacings as whatever font you used. ...
      (comp.lang.c)
    • where are the sources :-)
      ... I can't wait to get the sources and compile for test (currently using ... >Alan started doing forward-porting of 2.4.x driver updates, ... >and USB updates. ... > o fix all the paths in ide Kconfig docs ...
      (Linux-Kernel)
    • Re: [2.6 patch] add -Werror-implicit-function-declaration to CFLAGS
      ... >> Is it my fault that you applied neither Al Viro's patches to remove the ... > That won't make powerpc compile. ... And it's my job to fix every single such bug before you'd accept ... on all architectures. ...
      (Linux-Kernel)
    • Re: [patch 07/45] v4l/dvb: Fix CI on old KNC1 DVBC cards
      ... I only saw it when trying to compile kernel 2.6.17.7. ... Edgar Hucek ... This fix does not compile on 2.6.17.7. ... Currently I am doing lots of refactoring work in the dvb tree. ...
      (Linux-Kernel)