LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Security
User Name
Password
Linux - Security This forum is for all security related questions.
Questions, tips, system compromises, firewalls, etc. are all included here.

Notices


Closed Thread
  Search this Thread
Old 08-17-2006, 07:05 AM   #1
er_gaurav22
LQ Newbie
 
Registered: Apr 2006
Posts: 20

Rep: Reputation: 0
How to install iptables


hello,

My name is Gaurav Sharma,I m phasing the problem of iptables,pls tell me the whole procedure to install iptables in a system,pls help me.pls give me any idea.
I m working on Mandrik Linux,I m installing the APF(Advanced Policy Firewall). iptables hv not installed in Linux,so I hv installed the APF but when i restart the service apf then i phase error(unable to load ip_table).I want to know what r the installation steps of iptables.

I hv followed these steps:


1. Download package iptables-1.3.5
2. cd /tmp
3. tar -xvjf ./iptables-1.*.*.tar.bz2 -C /usr/src
4. cd /usr/src/iptables-1.*.*

after this step when i execute 5. step it gives the
make:cc : command not found
make:***: [extensions/libipt_ah_sh.o] error 127




5. /bin/sh -c make
 
Old 08-17-2006, 09:26 AM   #2
Zmyrgel
Senior Member
 
Registered: Dec 2005
Location: Finland
Distribution: Slackware, CentOS, RHEL, OpenBSD
Posts: 1,006

Rep: Reputation: 37
I think the iptables need some kernel support for it to work. I'm not sure though does it affect the compile process, though. You can check about the kernel configuration from http://www.gentoo-wiki.com atleast.
 
Old 08-18-2006, 04:06 AM   #3
win32sux
LQ Guru
 
Registered: Jul 2003
Location: Los Angeles
Distribution: Ubuntu
Posts: 9,870

Rep: Reputation: 380Reputation: 380Reputation: 380Reputation: 380
what you want is the iptables binary package (rpm) which is on your mandrake CD...

once you've found it, you can install it with a:
Code:
rpm -ivh iptables-*.rpm
 
Old 08-18-2006, 04:15 AM   #4
tgo
Member
 
Registered: Dec 2004
Posts: 125

Rep: Reputation: 15
Quote:
Originally Posted by er_gaurav22
[B]make:cc : command not found
make:***: [extensions/libipt_ah_sh.o] error 127
you dont have hte proper compiling tools installed ( seeing how 'cc' isnt found ). either install them or use a package as the other person said.
 
Old 08-18-2006, 10:00 PM   #5
unSpawn
Moderator
 
Registered: May 2001
Posts: 29,415
Blog Entries: 55

Rep: Reputation: 3603Reputation: 3603Reputation: 3603Reputation: 3603Reputation: 3603Reputation: 3603Reputation: 3603Reputation: 3603Reputation: 3603Reputation: 3603Reputation: 3603
Please post your thread in only one forum. Posting a single thread in the most relevant forum will make it easier for members to help you and will keep the discussion in one place. This thread is a duplicate of http://www.linuxquestions.org/questi...d.php?t=474666 and is closed herewith.
 
  


Closed Thread


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 iptables er_gaurav22 Linux - Software 4 08-18-2006 10:59 PM
install iptables hitesh_kj Linux - Software 1 03-23-2006 11:33 AM
iptables v1.2.9: Unknown arg `/sbin/iptables' Try `iptables -h' or 'iptables --help' Niceman2005 Linux - Security 4 12-29-2005 09:20 PM
install iptables problem greklas Slackware 1 09-04-2004 01:59 PM
iptables- new install Robert0380 Linux - Software 10 05-12-2003 01:35 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Security

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

Main Menu
Advertisement
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
Open Source Consulting | Domain Registration