LinuxQuestions.org
Visit Jeremy's Blog.
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 07-29-2002, 02:07 PM   #1
crealkillerI75
Member
 
Registered: Jul 2002
Location: new york
Distribution: Slackware
Posts: 40

Rep: Reputation: 15
Question ipchains and iptables?! waa?


1)wat the diff between ipchains and iptables ?

2)if there is no diff? with one is better?

reson i ask it cous acording to there discription there the same thing?
 
Old 07-29-2002, 02:13 PM   #2
danrees
Member
 
Registered: Jul 2001
Posts: 114

Rep: Reputation: 15
Iptables is designed to run with kernel 2.4, ipchains is for kernel 2.2.

If you're using a recent kernel/Linux distribution, you will want to use iptables.

Other than that, I'm not sure what the differences are - perhaps Google might shed some light.
 
Old 07-29-2002, 02:22 PM   #3
crealkillerI75
Member
 
Registered: Jul 2002
Location: new york
Distribution: Slackware
Posts: 40

Original Poster
Rep: Reputation: 15
im runing on them on slackware 8.0 2.2.19 ?!

ps: do i realy need both of them???
 
Old 07-29-2002, 02:50 PM   #4
5amYan
Member
 
Registered: Apr 2002
Location: The District
Distribution: FreeBSD, OBSD maybe Gentoo and Winblech XP
Posts: 291

Rep: Reputation: 30
Note the 2.2.x and 2.4.x comment in danreas post.

They are both packet filters.
IPTables is stateful.
IPChains is not.
 
Old 07-29-2002, 03:40 PM   #5
crealkillerI75
Member
 
Registered: Jul 2002
Location: new york
Distribution: Slackware
Posts: 40

Original Poster
Rep: Reputation: 15
so i should get rid of ipchains then right
 
Old 07-29-2002, 04:03 PM   #6
5amYan
Member
 
Registered: Apr 2002
Location: The District
Distribution: FreeBSD, OBSD maybe Gentoo and Winblech XP
Posts: 291

Rep: Reputation: 30
if you're running 2.2.x it is your only option (of the two)
 
Old 07-29-2002, 06:08 PM   #7
neo77777
LQ Addict
 
Registered: Dec 2001
Location: Brooklyn, NY
Distribution: *NIX
Posts: 3,704

Rep: Reputation: 56
ipchains desighned to work with 2.2.x kernels, and iptables with 2.4.x
The major difference is a little bit different syntax, and iptables support forward rule natively - this is espacially handy if you use routers to connect your LAN's
 
Old 07-29-2002, 07:18 PM   #8
5amYan
Member
 
Registered: Apr 2002
Location: The District
Distribution: FreeBSD, OBSD maybe Gentoo and Winblech XP
Posts: 291

Rep: Reputation: 30
assumption

Quote:
im runing on them on slackware 8.0 2.2.19 ?!
I am assumig 2.2.19 is your kernel. IPCains is your only option til you upgrade your kernel
 
Old 07-30-2002, 01:11 PM   #9
Ionized
Member
 
Registered: Jul 2002
Location: Chicago Suburbs
Distribution: Slackware 8.0
Posts: 51

Rep: Reputation: 15
Re: assumption

I've been using ipchains for a few years now. A big reason I'm not upgrading to 2.4.* is because I like the syntax and usage of ipchains. I know iptables isn't *that* much different, but until I have some huge need to upgrade, I'm going to stay with 2.2.x.

The only thing that would be nice about iptables is it's native forwarding support, but I've allready installed portfw/masq so ipchains can forward packets anyway.
 
Old 07-30-2002, 01:54 PM   #10
5amYan
Member
 
Registered: Apr 2002
Location: The District
Distribution: FreeBSD, OBSD maybe Gentoo and Winblech XP
Posts: 291

Rep: Reputation: 30
Are you the same as crealkillerI75?
 
Old 07-30-2002, 02:02 PM   #11
Ionized
Member
 
Registered: Jul 2002
Location: Chicago Suburbs
Distribution: Slackware 8.0
Posts: 51

Rep: Reputation: 15
Quote:
Originally posted by 5amYan
Are you the same as crealkillerI75?
heh, no. I was commenting on his post
 
Old 07-30-2002, 02:54 PM   #12
crealkillerI75
Member
 
Registered: Jul 2002
Location: new york
Distribution: Slackware
Posts: 40

Original Poster
Rep: Reputation: 15
where can i get portfw/masq and how to i install it?
 
Old 07-30-2002, 03:56 PM   #13
Ionized
Member
 
Registered: Jul 2002
Location: Chicago Suburbs
Distribution: Slackware 8.0
Posts: 51

Rep: Reputation: 15
Quote:
Originally posted by crealkillerI75
where can i get portfw/masq and how to i install it?
You should probably have it allready with ipchains. See if you have ipmasqadm installed. You also have to compile in the portFW feature into the kernel (or a module, but I always compile in). Then it's just a matter of calling ipmasqadm and setting up the port forwarding.

You should take a look at the HOW-TOs to get a feel on how to use this command, but what I do for Jedi Outcast is this:
/usr/sbin/ipmasqadm portfw -a -P udp -L $MYIP 28060 -R 10.0.0.5 28060
 
Old 08-01-2002, 08:17 AM   #14
Druaga
Member
 
Registered: May 2002
Location: Canada
Distribution: Slackware
Posts: 111

Rep: Reputation: 15
i use ipchains. masqueradin can proabably be started on your computer by doing
# echo "1" > /proc/sys/net/ipv4/ip_forward
# ipchains -P forward DENY
# ipchains -A forward -i eth0 -s 192.168.0.0/24 -d 0.0.0.0 -j MASQ

the first line starts ip forwarding, and the third masqs anything from the 192.168.0.0/255.255.255.0 network (replace with your own LAN settings) though eth0 (internet NIC) .
I am just goin by memory so correct me if i am wrong.
 
Old 08-01-2002, 10:39 AM   #15
Ionized
Member
 
Registered: Jul 2002
Location: Chicago Suburbs
Distribution: Slackware 8.0
Posts: 51

Rep: Reputation: 15
Quote:
Originally posted by Druaga

# ipchains -A forward -i eth0 -s 192.168.0.0/24 -d 0.0.0.0 -j MASQ
Yeah, you're right. Masquerading going from an inside (private) computer to the outside is easy, I was simply commenting on the ability to re-route packets coming from the outside and going to a private IP address. That line right there is fine for forwarding packets from the private to public internet.
 
  


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
IPCHAINS to IPTABLES slinkyredfoot Linux - Networking 2 05-24-2004 04:33 AM
ipchains and iptables both? puzz_1 Linux - General 7 05-29-2003 03:07 PM
ipchains ---> iptables jetfreggel Linux - Networking 2 11-10-2002 02:05 PM
iptables /ipchains DavidPhillips Linux - Networking 2 08-15-2001 12:09 PM
Need help on ipchains->iptables stalin Linux - Networking 0 07-19-2001 04:22 PM

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

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