Skip to contentSkip to conversation

migrating ipchains to iptables

DISCUSSION Arnt Karlsen 3 participants 3 messages Apr 2, 2003 – Apr 3, 2003 1 message not in the archive

lore
Share & tools
lore

A message that is not in the archive (sent off-list or not yet received): [email protected]

#1 lore raw

On Tue, 01 Apr 2003 20:15:10 -0500, "John Lumby" <[email protected]> _MAILED!!!_, instead of posting, and in top-posting style too, in message <[email protected]>:

Quoted 31 lines
Quoted 31 lines

----Original Message Follows----

Message: 2
Date: Tue, 1 Apr 2003 05:23:46 +0200
From: Arnt Karlsen <[email protected]>
To: [email protected]
Subject: Re: migrating ipchains to iptables
Organization: ing. Arnt Karlsen

On Mon, 31 Mar 2003 21:27:54 -0500,
"John Lumby" <[email protected]> wrote in message <[email protected]>:

Quoted 2 lines

I'm running a 2.4.18-3 kernel but for strange reasons have always used

..you want 2.4.18-27.7|8.x|0.etc. _Now_.
http://rhn.redhat.com/errata/rh72-errata.html or
http://rhn.redhat.com/errata/rh73-errata.html or
http://rhn.redhat.com/errata/rh8-errata.html

Quoted 5 lines

ipchains. Now want to switch to iptables. Wondering if anyone
has ever written a script which will read an ipchains file as created by

/etc/rc.d/init.d/ipchains save

..the easy way is use the 'setup' utility, then choose firewall setup.

Quoted 8 lines
Quoted 3 lines
Quoted 2 lines

and either convert it to /etc/rc.d/init.d/iptables save format or set up the "corresponding" iptables chains directly.

Thanks a lot for the tips.

I just have one question. What is the reason for recommending to
upgrade to 2.4.18-27.7?

..hint; errata means? ;-)

..they come as "Security", "Bug Fix", and "Enhancement". ;-)

Quoted 2 lines

Is it that the setup in my 2.4.18-3 won't do
this conversion (I didn't try it yet see below**)

..do. Now. ;-)

Quoted 9 lines

or that you think
there are important security flaws fixed in the later release?

John

** I don't see any man page for "setup" and never heard of it before.
Is it documented anywhere? Or is it just self-documenting?
I prefer to know what some tool like this will do before letting it do it.

..wise. Try it anyway, it has a "Cancel" button too if you don't like it, I'm not too impressed myself, but it does get a firewall newbie's _workstation_ safely online, until he gets his iptables act together.

..now, I prefer adding webmin(.com) and shorewall(.net) to control iptables, whenever my clients wanna try do stuff themselves.

..if they run more mission critical stuff, I have them put ipcop(.org) on its own box, usually version 1.3"alpha", 1.3 is now in beta and due out as stable in a few weeks. The stable 0.1.1 and 1.2.0 is based on 2.2 and ipchains and will not do stateful firewalling.

Signature · 4 lines
..med vennlig hilsen = with Kind Regards from Arnt... ;-)
...with a number of polar bear hunters in his ancestry...
  Scenarios always come in sets of three: 
  best case, worst case, and just in case.
#2 lore raw

Count/limit feature

I was talking to someone of BSD persuasion and they noted that the ipfw feature had a count parameter which can be used to limit icmp attacks. Ie more then n number of pings and you begin to ignore the client or address range. Is there something similar for netfilter

#3 lore raw

Re: Count/limit feature

Quoted 4 lines · * Rowan Reid ([email protected]) wrote:

I was talking to someone of BSD persuasion and they noted that the ipfw feature had a count parameter which can be used to limit icmp attacks. Ie more then n number of pings and you begin to ignore the client or address range. Is there something similar for netfilter

You can do this with ipt_recent to ignore the address it's coming from. I'm thinking about adding an ability to do address ranges to it.

Stephen