Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
How to find a kernel option in menuconfig? [SOLVED]
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
SweepingOar
Apprentice
Apprentice


Joined: 31 Dec 2003
Posts: 263
Location: LA

PostPosted: Tue Mar 25, 2008 5:54 am    Post subject: How to find a kernel option in menuconfig? [SOLVED] Reply with quote

I'm trying to install xmail, but it gives me this error at the end of the emerge:

Quote:
* Recompile your kernel with CONFIG_NETFILTER and CONFIG_IP_NF_TARGET_REDIRECT
* support enabled and reboot. Then try to emerge xmail-1.22 again.


I ran make menuconfig and found CONFIG_NETFILTER and enabled it, but I can't find CONFIG_IP_NF_TARGET_REDIRECT. Any ideas? Thanks.
_________________
-SweepingOar


Last edited by SweepingOar on Wed Mar 26, 2008 6:34 am; edited 3 times in total
Back to top
View user's profile Send private message
tgR10
Apprentice
Apprentice


Joined: 23 Oct 2007
Posts: 262
Location: caly ten ambaras

PostPosted: Tue Mar 25, 2008 6:07 am    Post subject: Reply with quote

just find it in kernel config and edit from
# CONFIG_NETFILTER is not set
to
CONFIG_NETFILTER=y
Code:
echo CONFIG_NETFILTER=y >> /usr/src/linux/.config

should work if not do it manualy
_________________
"bo kto ma racje ? ten kto z bliska zobaczy"
"moge nie wiedziec,wchlaniam niewiedze z malych torebek"
http://i12.tinypic.com/4pow0mu.png
http://userbar.tgr.debil.eu/userbar.jpg
Back to top
View user's profile Send private message
SweepingOar
Apprentice
Apprentice


Joined: 31 Dec 2003
Posts: 263
Location: LA

PostPosted: Tue Mar 25, 2008 6:38 am    Post subject: Reply with quote

Thanks. I thought about doing that, but I'm a little wary of editing the .config file. Will my system crash and burn if that's not a valid option (for the kernel I'm using)?

If it's ok and the .config is ready to go, all I do is:
Code:

$ make && make modules_install
$ cp ./arch/i386/boot/bzImage /boot/kernel-2.6.18-gentoo-r5


Do I have to reboot?
_________________
-SweepingOar
Back to top
View user's profile Send private message
tgR10
Apprentice
Apprentice


Joined: 23 Oct 2007
Posts: 262
Location: caly ten ambaras

PostPosted: Tue Mar 25, 2008 9:09 am    Post subject: Reply with quote

SweepingOar wrote:
Thanks. I thought about doing that, but I'm a little wary of editing the .config file. Will my system crash and burn if that's not a valid option (for the kernel I'm using)?

no
SweepingOar wrote:

If it's ok and the .config is ready to go, all I do is:
Code:

$ make && make modules_install
$ cp ./arch/i386/boot/bzImage /boot/kernel-2.6.18-gentoo-r5


Do I have to reboot?

yes
_________________
"bo kto ma racje ? ten kto z bliska zobaczy"
"moge nie wiedziec,wchlaniam niewiedze z malych torebek"
http://i12.tinypic.com/4pow0mu.png
http://userbar.tgr.debil.eu/userbar.jpg
Back to top
View user's profile Send private message
ok
Guru
Guru


Joined: 11 Jul 2006
Posts: 390
Location: germany

PostPosted: Tue Mar 25, 2008 9:23 am    Post subject: Reply with quote

make menuconfig (2.6.24):
Code:
   Location:                                                                                                                                                                                                   
│ Symbol: IP_NF_TARGET_REDIRECT [=n]                                                                                                                                                                           
│ Prompt: REDIRECT target support                                                                                                                                                                               
│   Defined at net/ipv4/netfilter/Kconfig:210                                                                                                                                                                   
│   Depends on: NET && INET && NETFILTER && NF_NAT                                                                                                                                                             
│   Location:                                                                                                                                                                                                   
│     -> Networking                                                                                                                                                                                             
│       -> Networking support (NET [=y])                                                                                                                                                                       
│         -> Networking options                                                                                                                                                                                 
│           -> Network packet filtering framework (Netfilter) (NETFILTER [=y])                                                                                                                                 
│             -> IP: Netfilter Configuration                                                                                                                                                                   
│               -> IP tables support (required for filtering/masq/NAT) (IP_NF_IPTABLES [=m])                                                                                                                   
│                 -> Full NAT (NF_NAT [=m])
While running 'make menuconfig' you can search for items by typing '/'.
Back to top
View user's profile Send private message
SweepingOar
Apprentice
Apprentice


Joined: 31 Dec 2003
Posts: 263
Location: LA

PostPosted: Tue Mar 25, 2008 11:24 pm    Post subject: Reply with quote

Thanks ok. The option isn't showing up in my menuconfig:
Code:
<*> IP tables support (required for filtering/masq/NAT)
< >   IP range match support
< >   TOS match support
< >   recent match support
< >   ECN match support
< >   AH match support
< >   TTL match support
< >   Owner match support
< >   address type match support
<*>   Packet filtering
<*>     REJECT target support
<*>   LOG target support
< >   ULOG target support


When I search for it, I get this output:
Code:
Symbol: IP_NF_TARGET_REDIRECT [=n]                                                                       x
Prompt: REDIRECT target support
 Defined at net/ipv4/netfilter/Kconfig:408
 Depends on: NET && INET && NETFILTER && (NF_NAT || IP_NF_NAT)
 Location:
   -> Networking
     -> Networking support (NET [=y])
       -> Networking options
         -> Network packet filtering framework (Netfilter) (NETFILTER [=y])
           -> IP: Netfilter Configuration


NET, INET and NETFILTER all seem to be set, but the word "redirect" doesn't appear in the file at all (even commented out), nor does "NF_NAT" or "IP_NF_NAT".

What I had to do was keep searching in menuconfig for the required "depends on" options, then finding and selecting them and then finally I was able to find the Redirect target support option and select it. Now hopefully I won't kill my system recompiling the kernel (and, and, and...).
_________________
-SweepingOar
Back to top
View user's profile Send private message
Balancer
Guru
Guru


Joined: 04 Jun 2004
Posts: 463

PostPosted: Wed Apr 09, 2008 2:35 pm    Post subject: Reply with quote

SweepingOar wrote:
The option isn't showing up in my menuconfig:


Same in 2.6.24-r4 :-/


Last edited by Balancer on Wed Apr 09, 2008 2:57 pm; edited 1 time in total
Back to top
View user's profile Send private message
Balancer
Guru
Guru


Joined: 04 Jun 2004
Posts: 463

PostPosted: Wed Apr 09, 2008 2:57 pm    Post subject: Reply with quote

If I append this option in .config manually, after genkernel they disappear.
Back to top
View user's profile Send private message
Balancer
Guru
Guru


Joined: 04 Jun 2004
Posts: 463

PostPosted: Wed Apr 09, 2008 3:49 pm    Post subject: Reply with quote

2.6.23-r9 - same:

[img]http://balancer.ru/cache/img/forums/0804/468x468/kernel-no-nf_nat.png[/img]
Back to top
View user's profile Send private message
Balancer
Guru
Guru


Joined: 04 Jun 2004
Posts: 463

PostPosted: Wed Apr 09, 2008 3:58 pm    Post subject: Reply with quote

Shown after adding all this:
Code:

CONFIG_INET=y
CONFIG_IP_ADVANCED_ROUTER=y
CONFIG_ASK_IP_FIB_HASH=y
CONFIG_IP_FIB_HASH=y
CONFIG_INET_XFRM_MODE_TRANSPORT=y
CONFIG_INET_XFRM_MODE_TUNNEL=y
CONFIG_INET_XFRM_MODE_BEET=y
CONFIG_TCP_CONG_CUBIC=y
CONFIG_DEFAULT_TCP_CONG="cubic"
CONFIG_NETFILTER=y
CONFIG_BRIDGE_NETFILTER=y
CONFIG_NF_CONNTRACK_ENABLED=y
CONFIG_NF_CONNTRACK=y
CONFIG_NETFILTER_XTABLES=y
CONFIG_NETFILTER_XT_MATCH_LIMIT=y
CONFIG_NETFILTER_XT_MATCH_MAC=y
CONFIG_NETFILTER_XT_MATCH_MARK=m
CONFIG_NETFILTER_XT_MATCH_POLICY=m
CONFIG_NETFILTER_XT_MATCH_STATE=m
CONFIG_NF_CONNTRACK_IPV4=y
CONFIG_NF_CONNTRACK_PROC_COMPAT=y
CONFIG_IP_NF_IPTABLES=y
CONFIG_IP_NF_FILTER=y
CONFIG_IP_NF_TARGET_LOG=y
CONFIG_IP_NF_MANGLE=y
CONFIG_BRIDGE=m
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