LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Home Forums Tutorials Articles Register
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


Reply
  Search this Thread
Old 09-27-2006, 09:52 AM   #1
q14526
LQ Newbie
 
Registered: Dec 2005
Location: Rochester, NY
Distribution: fedora
Posts: 18

Rep: Reputation: 0
Unhappy iptables vs. ip6tables


There had been one similar thread about this question but there is no answer. So I would like to post it again since I need your help.
System: Redhat 2.4.20 (old but this in embedded system)
It has iptables-1.2.6a-2
This system must support IPv4 and IPv6 (IPv6 is enable)and therefore must have firewall for both IPv4 and IPv6. Currently iptables is enable for IPv4.

Questions:
1. Can I enable ip6tables while existing iptables running?
(can iptables and ip6tables co-exist?, Redhat Chapter 7 seems to say 'no' but I need to protect both IPv4 and IPv6)
2. Do I need both? (I do need firewall for both Ipv4 and IPv6)
3. I also found at rpmfind.net: iptables-ipv6-1.2.6a-2.i386.rpm
So now I have 3 packages: iptables, iptables-ipv6 and
ip6tables. What are differences and how these packages work together and which one (or ones) I do (or do not) need?

I thank you very much in advanced anything you can help.

Best regards,

Q14526
 
Old 09-29-2006, 04:01 AM   #2
ph34r3d
Member
 
Registered: Apr 2002
Location: Tamaqua, Pa
Distribution: Slackware. Gentoo 1.4rc3, RH9, Mandrake 9.1, Debian, FreeBSD, OpenBSD, Fedra Core 3 x86_64
Posts: 71

Rep: Reputation: 15
1. Generally you can use iptables and ip6tables parallel to each other. However with RedHat it doens't look like it's possible. You might want to try un-installing the iptables, ip6tables, and iptables-ipv6 RPM's and manually installing iptables from netfilter.org. You might have better luck installing it manually, and that way you will have both iptables and ip6tables. I have not personally tried this... but it's worth a shot.... anyone else, please feel free to correct me if I am wrong..

2. Yes, you need both

3. iptables = ipv4, iptables-ipv6 = ipv6, ip6tables = ipv6


Hope this was helpful
 
Old 09-29-2006, 10:32 AM   #3
q14526
LQ Newbie
 
Registered: Dec 2005
Location: Rochester, NY
Distribution: fedora
Posts: 18

Original Poster
Rep: Reputation: 0
Hi ph34r3d,

Thank you very much for your response. It is tremendously helpful. I will follow your suggestion #1.

About my question #3, you said "iptables-ipv6 = ipv6": do you mean that I will keep the existing iptables, just add the iptables-ipv6-1.2.6a-2.i386.rpm to my kernel (since it is only for ipv6)?

I try to get the iptables-ipv6-1.2.6a-2.i386.srpm (source)at rpmfind.net but the link does not work. I have searched google/linux but could not find it. Do you know where I can get that file?

Again, thank you very much for your help.

Best regard,

q14526
 
Old 09-29-2006, 04:15 PM   #4
ph34r3d
Member
 
Registered: Apr 2002
Location: Tamaqua, Pa
Distribution: Slackware. Gentoo 1.4rc3, RH9, Mandrake 9.1, Debian, FreeBSD, OpenBSD, Fedra Core 3 x86_64
Posts: 71

Rep: Reputation: 15
iptables-ipv6-1.2.6a-2.i386.rpm is for ipv6.

If you download and install the following, you should have both iptables and ip6tables:


ftp://ftp.netfilter.org/pub/iptables...-1.3.6.tar.bz2
 
  


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
iptables v1.2.9: Unknown arg `/sbin/iptables' Try `iptables -h' or 'iptables --help' Niceman2005 Linux - Security 4 12-29-2005 08:20 PM
[netfilter] Segfault on ip6tables 1.3.1 + p-o-m owner raptorek Linux - Software 0 06-21-2005 04:35 PM
iptables and/or ip6tables? DropHit Linux - Software 0 02-18-2004 02:40 PM
IPtables Log Analyzer from http://www.gege.org/iptables/ brainlego Linux - Software 0 08-11-2003 06:08 AM
Irc ports and Ip6tables MithikoS Linux - Security 1 02-28-2002 12:06 PM

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

All times are GMT -5. The time now is 01:24 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