Forge Home

susefirewall2

Manages SuSEfirewall2 in /etc/sysconfig/SuSEfirewall2

10,244 downloads

9,624 latest version

0.4 quality score

We run a couple of automated
scans to help you access a
module's quality. Each module is
given a score based on how well
the author has formatted their
code and documentation and
modules are also checked for
malware using VirusTotal.

Please note, the information below
is for guidance only and neither of
these methods should be considered
an endorsement by Puppet.

Support the Puppet Community by contributing to this module

You are welcome to contribute to this module by suggesting new features, currency updates, or fixes. Every contribution is valuable to help ensure that the module remains compatible with the latest Puppet versions and continues to meet community needs. Complete the following steps:

  1. Review the module’s contribution guidelines and any licenses. Ensure that your planned contribution aligns with the author’s standards and any legal requirements.
  2. Fork the repository on GitHub, make changes on a branch of your fork, and submit a pull request. The pull request must clearly document your proposed change.

For questions about updating the module, contact the module’s author.

Version information

  • 0.3.0 (latest)
  • 0.2.1
  • 0.2.0
  • 0.1.0
released Jul 17th 2014
This version is compatible with:
  • Puppet 3.x
  • OpenSuSE

Start using this module

  • r10k or Code Manager
  • Bolt
  • Manual installation
  • Direct download

Add this module to your Puppetfile:

mod 'sharumpe-susefirewall2', '0.3.0'
Learn more about managing modules with a Puppetfile

Add this module to your Bolt project:

bolt module add sharumpe-susefirewall2
Learn more about using this module with an existing project

Manually install this module globally with Puppet module tool:

puppet module install sharumpe-susefirewall2 --version 0.3.0

Direct download is not typically how you would use a Puppet module to manage your infrastructure, but you may want to download the module in order to inspect the code.

Download

Documentation

sharumpe/susefirewall2 — version 0.3.0 Jul 17th 2014

susefirewall2

This module is intended to perform the "most common" settings in SuSEfirewall2 on OpenSuSE 13.1.

These include:

"Allowed Services": both pre-defined and advanced (as referenced in YaST2 - firewall) "Custom Rules": See YaST2's help for allowed values.

All rules are done for the "Ext" zone.

This is provided as-is, YMMV. If you're in Vagrant, make sure to include at least "sshd" in the services.

Examples

Allow a pre-defined service such as "sshd":

susefirewall2::ext_service { 'allow_sshd': service => 'sshd' }

Allow non-standard tcp or udp ports:

susefirewall2::ext_port { 'allow_tcp_8080': type => 'tcp', port => '8080', } susefirewall2::ext_port { 'allow_udp_1234': type => 'udp', port => '1234', }

Allow tcp port 8443 from 192.168.1.*:

susefirewall2::custom { 'allow_tcp_to_8443_from_192.168.1.*': source => '192.168.1.0/24', type => 'tcp', destport => '8443', }

Allow traffic from udp port 25 on 192.168.2.*:

susefirewall2::custom { 'allow_udp_from_25_from_192.168.2.*': source => '192.168.2.0/255.255.255.0', type => 'udp', srcport => '25', }

Contact

nospam@macwebb.com

If you send email, please include "sharumpe-susefirewall2" in the subject line.