Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
[solved] how to set CONFIG_NETFILTER_XT_MATCH_ADDRTYPE=y?
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Kernel & Hardware
View previous topic :: View next topic  
Author Message
littlebar
n00b
n00b


Joined: 27 Aug 2013
Posts: 26

PostPosted: Mon Jun 29, 2015 3:19 am    Post subject: [solved] how to set CONFIG_NETFILTER_XT_MATCH_ADDRTYPE=y? Reply with quote

I want to install docker on gentoo(kernel 3.18.12), but get error:

Code:
CONFIG_NETFILTER_XT_MATCH_ADDRTYPE:         is not set when it should be.



but, It seems CONFIG_NETFILTER_XT_MATCH_ADDRTYPE is set:(make menuconfig)
Code:

              -*- Netfilter Xtables support (required for ip_tables)                                 
                    *** Xtables combined modules ***                                               


Code:
grep MATCH_ADDR .config
find NOTHING. :(

how to solve it?
thx.
_________________
Gentoo is Great!


Last edited by littlebar on Mon Jun 29, 2015 7:53 am; edited 2 times in total
Back to top
View user's profile Send private message
genoobish
n00b
n00b


Joined: 18 Feb 2015
Posts: 73

PostPosted: Mon Jun 29, 2015 3:57 am    Post subject: Reply with quote

I think you looked in the wrong menu option. it's under
Code:
Networking suppor >  Networking options >  Network packet filtering framework (Netfilter) > Core Netfilter Configuration > "addrtype" address type match support
(right below *** Xtables matches ***)

As to why your grep command didn't work I don't know... I just copy pasted it and it outputs what it should.
Code:
$ grep MATCH_ADDR .config
# CONFIG_NETFILTER_XT_MATCH_ADDRTYPE is not set
Back to top
View user's profile Send private message
littlebar
n00b
n00b


Joined: 27 Aug 2013
Posts: 26

PostPosted: Mon Jun 29, 2015 4:17 am    Post subject: Reply with quote

genoobish wrote:
I think you looked in the wrong menu option. it's under
Code:
Networking suppor >  Networking options >  Network packet filtering framework (Netfilter) > Core Netfilter Configuration > "addrtype" address type match support
(right below *** Xtables matches ***)

As to why your grep command didn't work I don't know... I just copy pasted it and it outputs what it should.
Code:
$ grep MATCH_ADDR .config
# CONFIG_NETFILTER_XT_MATCH_ADDRTYPE is not set



thx, but it seems there is NO option [ "addrtype" address type match support ], so, how to solve it? :(
_________________
Gentoo is Great!
Back to top
View user's profile Send private message
genoobish
n00b
n00b


Joined: 18 Feb 2015
Posts: 73

PostPosted: Mon Jun 29, 2015 4:25 am    Post subject: Reply with quote

when you type "/" in menuconfig it opens a search box. enter "NETFILTER_XT_MATCH_ADDRTYPE"
it should give you this:
Code:
  │ Symbol: NETFILTER_XT_MATCH_ADDRTYPE [=m]                                                      │ 
  │ Type  : tristate                                                                              │ 
  │ Prompt: "addrtype" address type match support                                                 │ 
  │   Location:                                                                                   │ 
  │     -> Networking support (NET [=y])                                                          │ 
  │       -> Networking options                                                                   │ 
  │         -> Network packet filtering framework (Netfilter) (NETFILTER [=y])                    │ 
  │           -> Core Netfilter Configuration                                                     │ 
  │ (1)         -> Netfilter Xtables support (required for ip_tables) (NETFILTER_XTABLES [=y])    │ 
  │   Defined at net/netfilter/Kconfig:942                                                        │ 
  │   Depends on: NET [=y] && INET [=y] && NETFILTER [=y] && NETFILTER_XTABLES [=y]   

See the last line, "Depends on", and make sure all the dependencies are checked.
Back to top
View user's profile Send private message
littlebar
n00b
n00b


Joined: 27 Aug 2013
Posts: 26

PostPosted: Mon Jun 29, 2015 4:37 am    Post subject: Reply with quote

genoobish wrote:
when you type "/" in menuconfig it opens a search box. enter "NETFILTER_XT_MATCH_ADDRTYPE"
it should give you this:
Code:
  │ Symbol: NETFILTER_XT_MATCH_ADDRTYPE [=m]                                                      │ 
  │ Type  : tristate                                                                              │ 
  │ Prompt: "addrtype" address type match support                                                 │ 
  │   Location:                                                                                   │ 
  │     -> Networking support (NET [=y])                                                          │ 
  │       -> Networking options                                                                   │ 
  │         -> Network packet filtering framework (Netfilter) (NETFILTER [=y])                    │ 
  │           -> Core Netfilter Configuration                                                     │ 
  │ (1)         -> Netfilter Xtables support (required for ip_tables) (NETFILTER_XTABLES [=y])    │ 
  │   Defined at net/netfilter/Kconfig:942                                                        │ 
  │   Depends on: NET [=y] && INET [=y] && NETFILTER [=y] && NETFILTER_XTABLES [=y]  && NETFILTER_ADVANCED [=n]    │   

See the last line, "Depends on", and make sure all the dependencies are checked.


yes, I have checked before post this question.

and, which version of your kernel? I'm using 3.18.12.
_________________
Gentoo is Great!
Back to top
View user's profile Send private message
genoobish
n00b
n00b


Joined: 18 Feb 2015
Posts: 73

PostPosted: Mon Jun 29, 2015 4:43 am    Post subject: Reply with quote

I'm using a 4.1 right now. but I looked into the oldest I have, 3.18.9-hardened, and it was there also. Paste your .config (but take another look just to be sure) on bpaste (wgetpaste does that from the commandline) so maybe somebody else can help you. I can take another look at it tomorrow.
Back to top
View user's profile Send private message
littlebar
n00b
n00b


Joined: 27 Aug 2013
Posts: 26

PostPosted: Mon Jun 29, 2015 4:52 am    Post subject: Reply with quote

genoobish wrote:
I'm using a 4.1 right now. but I looked into the oldest I have, 3.18.9-hardened, and it was there also. Paste your .config (but take another look just to be sure) on bpaste (wgetpaste does that from the commandline) so maybe somebody else can help you. I can take another look at it tomorrow.


have solved it.

Code:
NETFILTER_ADVANCED [=n]
I forgot this.

many thx!
_________________
Gentoo is Great!
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Kernel & Hardware All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum