LinuxQuestions.org
Register a domain and help support LQ
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices

Reply
 
Search this Thread
Old 03-04-2009, 11:27 PM   #1
renuaseri
Member
 
Registered: Mar 2009
Posts: 39

Rep: Reputation: 15
how to install iptables on ubuntu-8.0 and kernel-2.6.24


Hello sir,
i have tried to install iptables-1.3.6.tar.bz2 and than i used tar command to unzip this package.
when i used make command than these errors are coming:

(1)
renuravi@renuravi-desktop:/usr/local/src/iptables-1.3.6$ sudo make KERNEL_DIR=/lib/modules/2.6.24-generic
[sudo] password for renuravi:
[: 1: /lib/modules/2.6.24-generic/include/asm: unexpected operator
Making dependencies: please wait...
[: 1: /lib/modules/2.6.24-generic/include/asm: unexpected operator
Unable to resolve dependency on linux/netfilter_ipv4/ip_conntrack.h. Try 'make clean'.
-e

Please try `make KERNEL_DIR=path-to-correct-kernel'.


Unable to resolve dependency on linux/netfilter_ipv4/ip_nat_rule.h. Try 'make clean'.
-e

Please try `make KERNEL_DIR=path-to-correct-kernel'.
Extensions found:[/COLOR][/COLOR][/COLOR]

(2)

renuravi@renuravi-desktop:/usr/local/src/iptables-1.3.6$ sudo make KERNEL_DIR=/usr/src/linux-headers-2.6.24-19
[: 1: /usr/src/linux-headers-2.6.24-19/include/asm: unexpected operator
Making dependencies: please wait...
[: 1: /usr/src/linux-headers-2.6.24-19/include/asm: unexpected operator
Unable to resolve dependency on linux/netfilter_ipv4/ip_conntrack.h. Try 'make clean'.
Unable to resolve dependency on linux/netfilter_ipv4/ip_nat_rule.h. Try 'make clean'.
Extensions found: IPv4:connbytes IPv4:dccp IPv4:quota IPv4:recent IPv4:string IPv6:esp IPv6:REJECT



In (2) ,i gave kernel path "/usr/src/linux-headers-2.6.24-19" so should i assume that this is
my kernel path? i m confuse since most of time kernel stay in /usr/src/linux.

and plz tell me how to resolve other problems.

is my methed right to install iptables ? if not, plz send me correct process to install iptables.
my system os is-- ubuntu-8.0
my kernel version is -- kernel-2.6.24-19


Thank you...
 
Old 03-05-2009, 12:43 AM   #2
everest40
Member
 
Registered: Jul 2008
Distribution: Ubuntu $LATESTVERSION
Posts: 160

Rep: Reputation: 64
I believe Ubuntu comes with iptables by default. If you don't have it, you can install it by running this command in a terminal:

sudo apt-get install iptables
(alternatively, open System->Administration->Synaptic Package Manager and search for iptables)
 
Old 05-23-2011, 10:36 PM   #3
jhongskie
LQ Newbie
 
Registered: May 2011
Posts: 1

Rep: Reputation: Disabled
How to install IPtables in ubumtu?

I have setup an the squid and squidguard but I need the bandwidth limiter and the dhcp hosting how will I setup in ubuntu...
 
Old 05-23-2011, 11:08 PM   #4
r3sistance
Senior Member
 
Registered: Mar 2004
Location: UK
Distribution: CentOS 5.4, Mac OS 10.4 (tiger)
Posts: 1,005

Rep: Reputation: 79
Quote:
Originally Posted by jhongskie View Post
I have setup an the squid and squidguard but I need the bandwidth limiter and the dhcp hosting how will I setup in ubuntu...
Why did you necro a 2-year old thread? And worse yet, for an unrelated query...? Also you have failed to state your question in a comprehensible manor. I would suggest that you create a new thread and rephrase the question in a way that actually makes sense!
 
  


Reply

Tags
iptables, ubuntu


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
How to install Linux kernel source in Ubuntu waqaskool Linux - Software 10 10-10-2006 12:03 PM
Trying to install kernel on Ubuntu 6.06 machine Tyrant01 Linux - Kernel 3 09-26-2006 02:06 PM
Using kernel-headers in fresh Ubuntu install josno Ubuntu 3 09-21-2006 08:23 AM
New to Ubuntu - can't figure out dpkg "kernel image" message for RT2500 install phaggood Ubuntu 1 02-09-2006 11:41 AM
Ubuntu linux kernel won't install winner Linux - Software 1 02-16-2005 06:24 PM


All times are GMT -5. The time now is 01:30 PM.

Main Menu
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration