janorn-ipfilter

Puppet module to manage ipfilters on solaris and perhaps bsd


Keywords
solaris, firewall, ipfilter
License
Apache-2.0
Install
puppet module install janorn-ipfilter --version 0.1.0

Documentation

Puppet module: ipfilter

This is a puppet module to manage ipfilter in solaris primarily.

License

Released under the terms of Apache 2 License.

Support

Please log tickets and issues at our [Projects site](github.com/janorn/puppet-ipfilter/issues)

Usage

This config:

class { 'ipfilter': 
  block_policy => 'reject',
}
	
ipfilter::rule { 'http': 
  port       => '80',
  protocol   => 'tcp',
}

Will generate this ipf.conf file:

## File Managed by Puppet
# Default block rule with reject. 
block return-icmp-as-dest(3) in log all
block out log all

# Accept all ICMP pkgs
pass in quick proto icmp from any to <thishost>
pass out quick proto icmp from <thishost> to any

# Allow ssh on port 22
pass in quick proto tcp from any to <thishost> port = 22 keep state

# Rule http
pass in quick proto tcp from any to <thishost> port = 80 keep state

# Allow connections originating from local machine out
pass out quick proto tcp all flags S/SA keep state
pass out quick proto udp all keep state