Forge Home

rinetd

Install and manage rinetd(8) via Puppet

13,924 downloads

100 latest version

4.7 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.

Version information

  • 0.3.0 (latest)
  • 0.2.0
  • 0.2.0-a (deleted)
  • 0.1.0
  • 0.0.2
  • 0.0.1 (deleted)
released May 15th 2024
This version is compatible with:
  • Puppet Enterprise 2023.8.x, 2023.7.x, 2023.6.x, 2023.5.x, 2023.4.x, 2023.3.x, 2023.2.x, 2023.1.x, 2023.0.x, 2021.7.x, 2021.6.x, 2021.5.x, 2021.4.x, 2021.3.x, 2021.2.x, 2021.1.x, 2021.0.x
  • Puppet >= 7.0.0 < 9.0.0
  • ,

Start using this module

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

Add this module to your Puppetfile:

mod 'barnumbirr-rinetd', '0.3.0'
Learn more about managing modules with a Puppetfile

Add this module to your Bolt project:

bolt module add barnumbirr-rinetd
Learn more about using this module with an existing project

Manually install this module globally with Puppet module tool:

puppet module install barnumbirr-rinetd --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

barnumbirr/rinetd — version 0.3.0 May 15th 2024

puppet-rinetd

Puppet Forge Puppet Forge - downloads

  1. Description
  2. Usage - Configuration options
  3. Limitations - OS compatibility, etc.
  4. License

Description

Install and manage rinetd(8) - internet “redirection server” via Puppet.

Usage

Install rinetd with default config

class { 'rinetd': }

Set allow and deny rules

class { 'rinetd':
    allow => ['192.168.178.1', '10.24.0.1', 'fe80:*'],
    deny => ['192.168.1.*', '2001:618:*:e43f'],
}
Using hiera
rinetd::allow:
  - '192.168.178.1'
  - '10.24.0.1'
  - 'fe80:*'

rinetd::deny:
  - '192.168.1.*'
  - '2001:618:*:e43f'

Set forwarding rules

class { 'rinetd':
    rules => [
        '192.168.178.1 8080 10.24.0.1 443',
        '10.24.42.1 5901/udp 192.168.7.49 3456/udp',
        '::1 80 192.168.1.2 80 [timeout=1200]'
    ],
}
Using hiera
rinetd::rules:
  - '192.168.178.1 8080 10.24.0.1 443'
  - '10.24.42.1 5901/udp 192.168.7.49 3456/udp'
  - '::1 80 192.168.1.2 80 [timeout=1200]'

Set logfile path

class { 'rinetd':
    logfile => ['/var/log/example.log'],
}
Using hiera
rinetd::logfile: '/var/log/example.log'

Use web-server style logfile format

class { 'rinetd':
    logcommon => true,
}
Using hiera
rinetd::logcommon: true

Class Parameters

Parameter Type Default Description
allow array [] set allow rules
deny array [] set deny rules
rules array [] set forwarding rules
logfile string /var/log/rinetd.log set logfile path
logcommon boolean false use web-server style logfile format
package_ensure string present latest,present or absent
service_manage boolean true manage rinetd service state
service_restart boolean true manage service restart

Limitations

This module is currently only written to work on Debian based operating systems, although it may work on others. The supported Puppet versions are defined in the metadata.json

License:

Copyright 2017-2024 Martin Simon

Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at

   http://www.apache.org/licenses/LICENSE-2.0

Unless required by applicable law or agreed to in writing, software
distributed under the License is distributed on an "AS IS" BASIS,
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
See the License for the specific language governing permissions and
limitations under the License.

Buy me a coffee?

If you feel like buying me a coffee (or a beer?), donations are welcome:

BTC : bc1qq04jnuqqavpccfptmddqjkg7cuspy3new4sxq9
DOGE: DRBkryyau5CMxpBzVmrBAjK6dVdMZSBsuS
ETH : 0x2238A11856428b72E80D70Be8666729497059d95
LTC : MQwXsBrArLRHQzwQZAjJPNrxGS1uNDDKX6