Linux Netfilter discussions
 help / color / mirror / Atom feed
* migrating ipchains to iptables
@ 2003-04-01  2:27 John Lumby
  2003-04-01  3:23 ` Arnt Karlsen
  0 siblings, 1 reply; 3+ messages in thread
From: John Lumby @ 2003-04-01  2:27 UTC (permalink / raw)
  To: netfilter

I'm running a 2.4.18-3 kernel but for strange reasons have always used 
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

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

John



_________________________________________________________________
The new MSN 8: advanced junk mail protection and 2 months FREE*  
http://join.msn.com/?page=features/junkmail



^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: migrating ipchains to iptables
  2003-04-01  2:27 migrating ipchains to iptables John Lumby
@ 2003-04-01  3:23 ` Arnt Karlsen
  0 siblings, 0 replies; 3+ messages in thread
From: Arnt Karlsen @ 2003-04-01  3:23 UTC (permalink / raw)
  To: netfilter

On Mon, 31 Mar 2003 21:27:54 -0500, 
"John Lumby" <johnlumby@hotmail.com> wrote in message 
<F78G1vzGbjkJ3FvTFnQ00016fee@hotmail.com>:

> 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

> 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.

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

..first however, "ipchains-save"(?), then ' service ipchains stop 
&& rpm -e ipchains','rpm -ivh iptables-$the-newest.rpm', and 'setup' 
as above.  Tweaks: put in the equivalent of your ipchains settings, 
plus bonus stateful firewalling.

..another _good_ option: combine Shorewall(.net) and Webmin(.com),
to control iptables.

-- 
..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.




^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: migrating ipchains to iptables
       [not found] <F27pMHi0SYNIPukg3nO0000612d@hotmail.com>
@ 2003-04-02 12:16 ` Arnt Karlsen
  0 siblings, 0 replies; 3+ messages in thread
From: Arnt Karlsen @ 2003-04-02 12:16 UTC (permalink / raw)
  To: John Lumby; +Cc: netfilter

On Tue, 01 Apr 2003 20:15:10 -0500, "John Lumby" <johnlumby@hotmail.com>
_MAILED!!!_, instead of posting, and in top-posting style too, in 
message <F27pMHi0SYNIPukg3nO0000612d@hotmail.com>:
> 
> > ----Original Message Follows----
> > 
> > Message: 2
> > Date: Tue, 1 Apr 2003 05:23:46 +0200
> > From: Arnt Karlsen <arnt@c2i.net>
> > To: netfilter@lists.netfilter.org
> > Subject: Re: migrating ipchains to iptables
> > Organization: ing. Arnt Karlsen
> > 
> > On Mon, 31 Mar 2003 21:27:54 -0500,
> > "John Lumby" <johnlumby@hotmail.com> wrote in message
> > <F78G1vzGbjkJ3FvTFnQ00016fee@hotmail.com>:
> > 
> > > 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
> > 
> > > 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.
> > 
> > > 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".  ;-)

> 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.   ;-)

> 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.

-- 
..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.



^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2003-04-02 12:16 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2003-04-01  2:27 migrating ipchains to iptables John Lumby
2003-04-01  3:23 ` Arnt Karlsen
     [not found] <F27pMHi0SYNIPukg3nO0000612d@hotmail.com>
2003-04-02 12:16 ` Arnt Karlsen

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox