LinuxQuestions.org
Visit Jeremy's Blog.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Networking
User Name
Password
Linux - Networking This forum is for any issue related to networks or networking.
Routing, network cards, OSI, etc. Anything is fair game.

Notices


Reply
  Search this Thread
Old 12-28-2001, 07:48 PM   #1
munisp
LQ Newbie
 
Registered: Nov 2001
Posts: 20

Rep: Reputation: 0
how to compile redhat kernel to support iptables


how to compile redhat kernel 7.2 2.4.7-10smp to support iptables. I get an error while using iptables. How do I know if iptables has been properly configured on my machine

Patrick
 
Old 12-30-2001, 07:57 PM   #2
infinity6
Member
 
Registered: Dec 2001
Posts: 66

Rep: Reputation: 15
Iptables will install by default. You just need to turn it on. The easiest way to do this is to open a terminal window and, as root, type:

ntsysv --level 2345

Scroll down to ipchains, hit the spacebar (so that there is no asterisk next to it), and then scroll down to iptables and make sure it has an asterisk.

The easiest way to reinitialize all this is to reboot. (7.2 has some funky scripting that won't initialize this change without a run-level change.) Once you've rebooted the system, type:

service iptables status

and you should see a list of the current table rules.
 
Old 01-04-2002, 03:22 PM   #3
JackRipper
LQ Newbie
 
Registered: Jan 2002
Distribution: Fedora Core
Posts: 5

Rep: Reputation: 2
You can do it manually by doing:

rmmod ipchains (if it's loaded)

modprobe ip_tables

use the iptables command to create your rules

use iptables-save to save out your rules as /etc/sysconfig/iptables

When the system reboots, it should load your rules automatically.
 
  


Reply



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 compile kernel to support ipchains? scientist Linux - Networking 6 03-30-2005 01:23 AM
kernel 2.6.7 + iptables 1.2.x ... compile errors meks Linux - General 0 06-23-2004 02:33 PM
Compile kernel with sound support sanfran49 Linux - Software 2 02-04-2004 11:09 PM
no network support after kernel compile schbond Linux - Networking 6 07-18-2003 02:19 AM
Compile PHP w/ XML Support (RedHat) robadawb Linux - Software 0 04-07-2003 01:02 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Networking

All times are GMT -5. The time now is 08:54 AM.

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