LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Newbie (http://www.linuxquestions.org/questions/linux-newbie-8/)
-   -   how to install iptables on ubuntu-8.0 and kernel-2.6.24 (http://www.linuxquestions.org/questions/linux-newbie-8/how-to-install-iptables-on-ubuntu-8-0-and-kernel-2-6-24-a-709281/)

renuaseri 03-04-2009 11:27 PM

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...

everest40 03-05-2009 12:43 AM

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)

jhongskie 05-23-2011 10:36 PM

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...

r3sistance 05-23-2011 11:08 PM

Quote:

Originally Posted by jhongskie (Post 4365213)
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!


All times are GMT -5. The time now is 02:37 PM.