Linode Forum
Linode Community Forums
 FAQFAQ    SearchSearch    MembersMembers      Register Register 
 LoginLogin [ Anonymous ] 
Post new topic  Reply to topic
Author Message
PostPosted: Mon May 10, 2004 11:53 pm 
Offline
Junior Member

Joined: Mon May 10, 2004 9:55 am
Posts: 33
I am trying to set up an iptables firewall. I am emerging the IPTables package, and, I guess it wants to know about what kernel I am running. It is looking at /usr/src/linux for this info. I guess I don't have the source their from which my linnode kernel is built, so I get the following error.

Can anyone help me get past this?

Code:
bongo root # emerge iptables
Calculating dependencies ...done!
>>> emerge (1 of 1) net-firewall/iptables-1.2.9 to /
>>> Downloading http://gentoo.oregonstate.edu/distfiles/iptables-1.2.9.tar.bz2
--23:43:54--  http://gentoo.oregonstate.edu/distfiles/iptables-1.2.9.tar.bz2
           => `/usr/portage/distfiles/iptables-1.2.9.tar.bz2'
Resolving gentoo.oregonstate.edu... 128.193.0.3
Connecting to gentoo.oregonstate.edu[128.193.0.3]:80... connected.
HTTP request sent, awaiting response... 200 OK
Length: 186,808 [application/x-tar]

100%[================================================>] 186,808        1.12M/s

23:43:55 (1.12 MB/s) - `/usr/portage/distfiles/iptables-1.2.9.tar.bz2' saved [186808/186808]

>>> md5 src_uri ;-) iptables-1.2.9.tar.bz2
>>> Unpacking source...
>>> Unpacking iptables-1.2.9.tar.bz2 to /var/tmp/portage/iptables-1.2.9/work
 * Applying various patches (bugfixes/updates)...
 *   01_all_grsecurity.patch.bz2...                                                   [ ok ]
 *   02_all_imq.patch.bz2...                                                          [ ok ]
 *   04_all_install_ipv6_apps.patch.bz2...                                            [ ok ]
 *   05_all_install_all_dev_files.patch.bz2...                                        [ ok ]
 *   06_all_l7.patch.bz2...                                                           [ ok ]
 * Done with patching
>>> Source unpacked.
 *
 * Could not determine your kernel version.
 * Make sure that you have /usr/src/linux symlink.
 * And that said kernel has been configured.
 * You can also simply run the following command
 * in the kernel referenced by /usr/src/linux:
 *  make include/linux/version.h
 *

!!! ERROR: net-firewall/iptables-1.2.9 failed.
!!! Function check_KV, Line 256, Exitcode 0
!!! (no error message)


Top
   
 Post subject:
PostPosted: Mon May 10, 2004 11:58 pm 
Offline
Linode Staff
User avatar

Joined: Tue Apr 15, 2003 6:24 pm
Posts: 3090
Website: http://www.linode.com/
Location: Galloway, NJ
Sorry I can't give you specific files to edit, but from another Linode user:

"One work-around is to comment out the check_KV function in the iptables build."

I believe this has already been logged as a bug with the Gentoo folks. /proc/version would be a lot easier, but since it's Gentoo I suspect they figure the kernel sources will always be there...

-Chris


Top
   
 Post subject:
PostPosted: Tue May 11, 2004 8:39 am 
Offline
Senior Member

Joined: Thu Oct 30, 2003 11:27 am
Posts: 52
Website: http://www.wasteland.org/
Location: Rochester, NY
Or just emerge a similar kernel source, like vanilla-sources. It's close enough for iptables. Works for me.


Top
   
Display posts from previous:  Sort by  
Post new topic  Reply to topic


Who is online

Users browsing this forum: No registered users and 6 guests


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

Search for:
Jump to:  
RSS

Powered by phpBB® Forum Software © phpBB Group