rinetd

pdk
Install and manage rinetd(8) via Puppet

Martin Simon

barnumbirr

13,105 downloads

1,125 latest version

5.0 quality score

Version information

  • 0.2.0-a (latest)
  • 0.2.0
  • 0.1.0
  • 0.0.2
  • 0.0.1
released Nov 14th 2019
This version is compatible with:
  • Puppet Enterprise 2019.8.x, 2019.7.x, 2019.5.x, 2019.4.x, 2019.3.x, 2019.2.x, 2019.1.x, 2019.0.x, 2018.1.x, 2017.3.x, 2017.2.x, 2016.4.x
  • Puppet >=4.10.0 < 7.0.0
  • Debian
    ,
    Ubuntu

Start using this module

Documentation

barnumbirr/rinetd — version 0.2.0 Nov 14th 2019

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', '10.24.42.1'],
    deny => ['192.168.1.*'],
}
Using hiera
rinetd::allow:
  - '192.168.178.1'
  - '10.24.0.1'
  - '10.24.42.1'

rinetd::deny:
  - '192.168.1.*'

Set forwarding rules

class { 'rinetd':
    rules => [
        '192.168.178.1 8080 10.24.0.1 443',
        '10.24.42.1 5901 192.168.7.49 3456',
    ],
}
Using hiera
rinetd::rules:
  - '192.168.178.1 8080 10.24.0.1 443'
  - '10.24.42.1 5901 192.168.7.49 3456'

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