Igor M Podlesny (poige) wrote in suse,
Igor M Podlesny
poige
suse

  • Mood:

Is there a proper way to put own (custom) iptables config into a SuSe system?

It seems that SuSEfirewall2 haven't such an option and I've to write my own /etc/init.d/iptables or come up with somewhat like that.
  • Post a new comment

    Error

    default userpic
  • 7 comments
Not sure what you mean - you need a custom launch script for IPtables?

or, do you need to just edit the iptables config files manually?

Either way though, just go ahead and edit the files. If you do edit the configs manually though, I would no longer use the GUI tools (YaST) to make changes to them, as it may botch your customizations
I need a simple thing. Look, standard "iptables-save" lists iptables configuration. I'd like to know is there "right place" for this very config in Suse(?) -- config for iptables, not for theirs overloaded script. The only suitable solution which I have so far is to write my own /etc/init.d/iptables.

Anonymous

September 26 2006, 17:09:47 UTC 10 years ago

Uncomment the line #FW_CUSTOMRULES="/etc/sysconfig/scripts/SuSEfirewall2-custom" in /etc/sysconfig/SuSEfirewall2 and put custom iptables rules into the appropriate section in /etc/sysconfig/scripts/SuSEfirewall2-custom . Is there something in particular you are unable to do with SuSEfirewall2 without resorting to custom rules, as you may find it is in fact possible?
I don't know... and I should say I even don't wanna know it -- I just want to configure iptables, not "SuSEfirewall2". ;-)

Deleted comment

Igor M Podlesny (poige) wrote in suse, @ 2006-09-26 14:49:00

> It seems that SuSEfirewall2 haven't such an option and I've
> to write my own /etc/init.d/iptables or come up with somewhat like that.

Well... did you ever try to read questions before giving out "answers"?

Deleted comment