View Full Version : Which kernel options were set at compile time?
MichaelS-R
2008-08-07, 03:56 AM CDT
I need to find out if the following kernel options were set at compile time. Is there a simple way to discover this without having to rebuild the kernel?
IP: advanced router (CONFIG_IP_ADVANCED_ROUTER) [Y/n/?]
IP: policy routing (CONFIG_IP_MULTIPLE_TABLES) [Y/n/?]
IP: use netfilter MARK value as routing key (CONFIG_IP_ROUTE_FWMARK) [Y/n/?]Many thanks,
Michael
ivancat
2008-08-07, 04:52 AM CDT
If you mean options for the kernel but got from fedora you didn't compile yourself then they can be found under /boot, filename is something like config-2.6.xx.xx-x.fcx
if you compiled the kernel yourself, then check the .config file in the directory you compiled in.
that means if you used make O=/usr/src/kernels/2.6.25.10, then the .config file is inside /usr/src/kernels/2.6.25.10
if you didn't use the O option then the .config file is in the directory you untared your kernel tarball and made all compilations
MichaelS-R
2008-08-07, 05:22 AM CDT
Thanks Ivancat - the first line was what I was after. Just did not cross my mind to look in /boot.
One thing though, CONFIG_IP_ROUTE_FWMARK does not exist as an option in the config file. Do you know if it has been depracated or does that mean that it turned off?
Thanks,
Michael
ivancat
2008-08-07, 05:29 AM CDT
Since Linux 2.6.20, mark based routing has been enabled by default, thus
the related config options {DECNET,IP,IPV6}_ROUTE_FWMARK have been removed.
if you want to route packets, then the following options come in handy:
IP_ADVANCED_ROUTER, IP_MULTIPLE_TABLES, anything which allows to mangle the packet mark such as the Netfilter MARK target (NETFILTER_XT_TARGET_MARK).
MichaelS-R
2008-08-07, 02:07 PM CDT
Ivancat - may thanks. Still not working though - will move my questions over to the networking forum.
vBulletin® v3.7.3, Copyright ©2000-2009, Jelsoft Enterprises Ltd.