iptables-save and variables

From: Aaron (aaron@philngood.com)
Date: 02/25/03


From: "Aaron " <aaron@philngood.com>
Date: Mon, 24 Feb 2003 21:12:38 -0600

Hello,

I'm running redhat 8.0 fresh install haven't gotten the system on the
network or anything like that. I'm tryin to figure this whole
iptables-save and restore out. I have been looking at a lot of
documentation and always networks and ipaddress are set to variables,
something like "$inside_lan" "dmz" things of this nature. Well, i want
to do this but i'm wondering how to do this without creating a script and
loading it whenever the computer starts. To further complicate the issue,
i was using webmin to try to do this..and i really didn't see anyplace
that i could place any variables. Webmin, by default also seems to save
the firewall to file /etc/sysconfig/iptables in the iptables-save format
(which i can't read at all.. i don't get where all those mumbers are
coming from)

I guess my question is this. Can i create variabbles and use webmin and
not save the rules to file? if i have to save them to a file..so be it,
can i still use webmin....and finally..lets say i create a file....put in
varialbes and load it all up...firewall working great. then i do an
iptables-save, where does it get saved to? and if there is no script, how
does it get restored when iptables-restor gets run by the init script when
the system boots?

Thanks and sorry for the disarray of the question.

Aaron



Relevant Pages

  • Re: Why Linux cant visit public net?
    ... >>Also describe what steps you did to configure your network. ... Then /sbin/ipchains-save, please, since the machine is running Valhalla, ... and ipchains -L would not be as readable. ... Btw, iptables-save would also ...
    (RedHat)
  • YNT: [fw-wiz] Dumb newbie question
    ... iptables-save> /where/you/want ... then edit that file,after you can restore it ... I'm just getting into Linux and iptables - a definite newbie! ...
    (Firewall-Wizards)