Results 1 to 4 of 4

Thread: how to save iptables

  1. #1
    Join Date
    Mar 2009
    Location
    Burgas,Bulgaria
    Posts
    86

    Default how to save iptables

    i do this :
    su -l
    /usr/sbin/iptables -A OUTPUT -p tcp -d 192.168.1.100 --dport 11900 -j DROP

    and

    iptables-save

    and it works ,but after reboot rules a restored!

    How to save changes properly?
    openSUSE Tumbleweed KDE4.13.x x86_64
    Linux user #543309
    http://cazadordevarna-kennel.com/suse/

  2. #2
    Join Date
    Feb 2009
    Location
    Spain
    Posts
    21,937

    Default Re: how to save iptables

    On 2012-05-08 19:06, NikolaiSS wrote:
    > How to save changes properly?


    Use custom rules file in SuSEfirewall2.

    --
    Cheers / Saludos,

    Carlos E. R.
    (from 11.4 x86_64 "Celadon" at Telcontar)

  3. #3
    Join Date
    Mar 2009
    Location
    Burgas,Bulgaria
    Posts
    86

    Default Re: how to save iptables

    >Use custom rules file in SuSEfirewall2.<

    OK ,but how exactly!?
    openSUSE Tumbleweed KDE4.13.x x86_64
    Linux user #543309
    http://cazadordevarna-kennel.com/suse/

  4. #4
    Join Date
    Feb 2009
    Location
    Spain
    Posts
    21,937

    Default Re: how to save iptables

    On 2012-05-09 15:56, NikolaiSS wrote:
    >
    >> Use custom rules file in SuSEfirewall2.<

    >
    > OK ,but how exactly!?


    Exactly, I do not know. I'm not an iptables expert.

    In the firewall file there is an entry for a custom file, you have activate it:

    Code:
    ## Type:        string
    #
    # Do you want to load customary rules from a file?
    #
    # This is really an expert option. NO HELP WILL BE GIVEN FOR THIS!
    # READ THE EXAMPLE CUSTOMARY FILE AT
    /etc/sysconfig/scripts/SuSEfirewall2-custom
    #
    FW_CUSTOMRULES="/etc/sysconfig/scripts/SuSEfirewall2-custom"
    #FW_CUSTOMRULES=""

    Just look at file for examples.


    --
    Cheers / Saludos,

    Carlos E. R.
    (from 11.4 x86_64 "Celadon" at Telcontar)

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •