Results 1 to 5 of 5

Thread: How to open firewall ports without yast

  1. #1
    Join Date
    Jan 2009
    Location
    Queens
    Posts
    126

    Default How to open firewall ports without yast

    Hello everyone, I was wondering if anyone knows how to open firewall ports without using yast. The reason I'm asking is because I'm working on a .sh script for the installation of a couple of programs. Some ports need to be open for the programs to work, I find it really annoying to go to yast and type the ports manually every time.

    I've looked at /etc/sysconfig/SuSEfirewall2

    but can't seem to find anything, I also know that after the changes I will have to stop start the firewall by running:

    SuSEfirewall2 stop

    SuSEfirewall2 start

    any ideas?
    Hmmmm I wonder how long before im good at this????????????

  2. #2
    Join Date
    Mar 2010
    Location
    Austin - Texas
    Posts
    10,140
    Blog Entries
    48

    Smile Re: How to open firewall ports without yast

    I found the following example which seems to indicate you could do what you need, but you would need to restart the firewall after the change.

    In a console as su type SuSEfirewall2 help

    Example:

    SuSEfirewall2 open <ZONE> <TYPE> <services...>
    where ZONE is one of DMZ EXT INT
    and TYPE is one of RPC IP UDP TCP

    You will have to restart the firewall when you done
    Thank You,
    My Blog: https://forums.opensuse.org/blogs/jdmcdaniel3/

    Software efficiency halves every 18 months, thus compensating for Moore's Law

    Its James again from Austin, Texas

  3. #3
    Join Date
    Jan 2009
    Location
    Queens
    Posts
    126

    Default Re: How to open firewall ports without yast

    Quote Originally Posted by jdmcdaniel3 View Post
    I found the following example which seems to indicate you could do what you need, but you would need to restart the firewall after the change.

    Thank You,
    Hey Thanks JDMCDaniel3 It worked like a charm....
    Hmmmm I wonder how long before im good at this????????????

  4. #4
    Join Date
    Feb 2009
    Location
    Spain
    Posts
    25,547

    Default Re: How to open firewall ports without yast

    On 2011-01-23 23:06, hgallo wrote:

    > I've looked at /etc/sysconfig/SuSEfirewall2
    >
    > but can't seem to find anything,


    It is all in there. That's the file you have to edit.

    Hint: use sed.

    I also know that after the changes I
    > will have to stop start the firewall by running:


    SuSEfirewall2 restart

    --
    Cheers / Saludos,

    Carlos E. R.
    (from 11.2 x86_64 "Emerald" at Telcontar)

  5. #5
    Join Date
    Mar 2010
    Location
    Austin - Texas
    Posts
    10,140
    Blog Entries
    48

    Smile Re: How to open firewall ports without yast

    Hey Thanks JDMCDaniel3 It worked like a charm....
    Happy to be of service hgallo. You have a super good day and thanks for letting us know of your success.

    Thank You,
    My Blog: https://forums.opensuse.org/blogs/jdmcdaniel3/

    Software efficiency halves every 18 months, thus compensating for Moore's Law

    Its James again from Austin, Texas

Posting Permissions

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