Manages arptables

Vanessa Novak



8,343 latest version

3.1 quality score

Version information

  • 1.0.2 (latest)
  • 1.0.1
  • 1.0.0
released Mar 20th 2015
This version is compatible with:
  • Puppet Enterprise 2021.0.x, 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, 2017.1.x, 2016.5.x, 2016.4.x
  • Puppet >= 3.7.3
  • RedHat

Start using this module


novakv/arptables — version 1.0.2 Mar 20th 2015


This module makes use of the Puppet Type System and EPP templates, so it only works in 3.7 when the future parser is enabled.

On RedHat, in a direct routing load balancer setup, this module configures direct routing on real servers using arptables_jf.

This module manages /etc/sysconfig/arptables. With its default settings, it will also add ip aliasses and overwrite /etc/rc.d/rc.local. Set manage_ip_alias to false to prevent changes to rc.local.


###service_enable Default: false (boolean)

###service_ensure Default: stopped

The reasoning behind above defaults is that often the PREROUTING chain in iptables is used to achieve the same goal. So in order to configure direct routing using arptables_jf, you must change these defaults.

###manage_ip_alias Default: true (boolean)

If not already configured, adds ip aliasses to the interface specified in interface and adds them to rc.local for configuration to persist after reboots.

###virtual_ip Default: undef

Always specify virtual_ip, as string or array, when manage_ip_alias is true. In addition to adding ip aliasses through rc.local, it is used for configuring arptables when there is a single real ip on the system.

###real_ip Default: undef Specify real_ip string only when there is a sigle real ip, otherwise use virtual_real_ip mapping.

###virtual_real_ip Default: undef

virtual_real_ip hash is used to configure arptables when there are multiple real ips on the system.

###interface Default: undef

Always specify interface when manage_ip_alias is true (default). It is used in adding ip aliasses through rc.local.


Sample Hiera configurations


arptables::service_enable: true
arptables::service_ensure: running
arptables::interface: eth0


arptables::service_enable: true
arptables::service_ensure: running
arptables::interface: eth0
arptables::virtual_real_ip: '' '' ''