All of lore.kernel.org
 help / color / mirror / Atom feed
* connmark problem
@ 2004-12-13 21:08 Krystian
  2004-12-13 21:19 ` Lopsch
  0 siblings, 1 reply; 5+ messages in thread
From: Krystian @ 2004-12-13 21:08 UTC (permalink / raw)
  To: netfilter

hi

I have a stock 2.6.9 kernel + iptables 1.2.11 + patch-o-matic-ng and i'm 
trying to apply CONNMARK patch.
 I cant patch it becouse it gest rejected while trying to apply it using 
POM.

Any clues?

Thanks
Krystian


^ permalink raw reply	[flat|nested] 5+ messages in thread
* connmark problem
@ 2012-06-26  8:38 Oguz Yilmaz
  2012-06-26 21:35 ` Andrew Beverley
  0 siblings, 1 reply; 5+ messages in thread
From: Oguz Yilmaz @ 2012-06-26  8:38 UTC (permalink / raw)
  To: netfilter

Hi

I use connmark in raw table. Please look at the following -L output.
At the beginning of the chain I copy packet mark to the connection. -m
mark matches packets. However -m connmark not matches. It is clearly
visible from packet counters.
How can we explain this?

Regards,
OÄŸuz.


-t raw
Chain PREROUTING (policy ACCEPT 61M packets, 32G bytes)

 8173 4803K ACCEPT     all  --  *      *       127.0.0.1            0.0.0.0/0
 127K   35M CONNMARK   all  --  *      *       0.0.0.0/0
0.0.0.0/0           CONNMARK save
    0     0 LOG        all  --  *      *       0.0.0.0/0
0.0.0.0/0           CONNMARK match 0x12/0xfff LOG flags 0 level 6
prefix `ACCEPT:
'
    0     0 ACCEPT     all  --  *      *       0.0.0.0/0
0.0.0.0/0           CONNMARK match 0x12/0xfff
 7897 4074K LOG        all  --  *      *       0.0.0.0/0
0.0.0.0/0           MARK match 0x12/0xfff LOG flags 0 level 6 prefix
`ACCEPT:'
 7897 4074K ACCEPT     all  --  *      *       0.0.0.0/0
0.0.0.0/0           MARK match 0x12/0xfff

^ permalink raw reply	[flat|nested] 5+ messages in thread
* CONNMARK problem
@ 2004-05-25 13:24 Iulian Mongescu
  0 siblings, 0 replies; 5+ messages in thread
From: Iulian Mongescu @ 2004-05-25 13:24 UTC (permalink / raw)
  To: netfilter

[-- Attachment #1: Type: text/plain, Size: 2140 bytes --]

Hi ,

I am trying to add CONNMARK support  to my kernel , and after 
compilation , the CONNMARK.o module is not made.
This is what I done on my RedHat 9 system:

   1. Get  kernel sources : linux-2.4.26.tar.gz 
   2. Get:  patch-o-matic-ng-20040302.tar.bz2
   3. Apply patch only for CONNMARK ( using  ./runme extra  , and test
      it with   ./runme --test CONNMARK)
          * Already applied:

            Testing CONNMARK... applied

            Excellent! Source trees are ready for compilation.
   4. make menuconfig ,and using the old config ( importing RedHat
      Athlon config)
   5. Selecting (like modules) :
          *   <M>   Connection state match support  
              <M>   Connection mark match support (NEW)
              <M>   Connection tracking match support 
   6. finish to compile without any errors , but  the CONNMARK.o module
      was not build
   7. Trying to figure what went wrong , I  saw that in .config there is
      not set CONFIG_IP_NF_TARGET_CONNMARK , which is required by
      Makefile to build the object :    
      obj-$(CONFIG_IP_NF_TARGET_CONNMARK) += ipt_CONNMARK.o
   8. More, I checked  Config.in file (from netfilter folder) and :
          * if [ "$CONFIG_IP_NF_CONNTRACK_MARK" != "n" ]; then
                  dep_tristate '  Connection mark match support'
            CONFIG_IP_NF_MATCH_CONNMARK $CONFIG_IP_NF_IPTABLES
                fi
          * As you see , it is testing if  $CONFIG_IP_NF_CONNTRACK_MARK
            ( which is not set by anybody , and get true cause is not
            "n" ) and is setting: CONFIG_IP_NF_MATCH_CONNMARK as a
            module in ".config" file .
          * Conclusion the only line in ".config" file regarding
            CONNTRACK is : CONFIG_IP_NF_MATCH_CONNMARK=m  , so normaly
            that make is not building CONNMARK.o
   9. I try to set manually in ".config" those variables, but is not
      working , I get some errors cause CONFIG_IP_NF_CONNTRACK_MARK is
      tested in ip_conntrack.h, and if  it is set manually is not
      exported ...duno why.<><><>

<><>Any help will be appreciated .
Thank you ,
Iulian

      <><> 


[-- Attachment #2: Type: text/html, Size: 2655 bytes --]

^ permalink raw reply	[flat|nested] 5+ messages in thread

end of thread, other threads:[~2012-06-26 21:35 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2004-12-13 21:08 connmark problem Krystian
2004-12-13 21:19 ` Lopsch
  -- strict thread matches above, loose matches on Subject: below --
2012-06-26  8:38 Oguz Yilmaz
2012-06-26 21:35 ` Andrew Beverley
2004-05-25 13:24 CONNMARK problem Iulian Mongescu

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.