code: def new_chain(table='filter', chain=None, family='ipv4'):
      '''
      .. versionadded:: 2014.1.0
  
      Create new custom chain to the specified table.
  
      CLI Example:
  
      .. code-block:: bash
  
          salt '*' iptables.new_chain filter CUSTOM_CHAIN
  
          IPv6:
          salt '*' iptables.new_chain filter CUSTOM_CHAIN family=ipv6
      '''
  
      if not chain:
          return 'Error: Chain needs to be specified'
  
      wait = '--wait' if _has_option('--wait', family) else ''
      cmd = '{0} {1} -t {2} -N {3}'.format(
              _iptables_cmd(family), wait, table, chain)
      out = __salt__['cmd.run'](cmd)
  
      if not out:
          out = True
      return ouf new_chain(table='filter', chain=None, family='ipv4'):
      '''
      .. versionadded:: 2014.1.0
  
      Create new custom chain to the specified table.
  
      CLI Example:
  
      .. code-block:: bash
  
          salt '*' iptables.new_chain filter CUSTOM_CHAIN
  
          IPv6:
          salt '*' iptables.new_chain filter CUSTOM_CHAIN family=ipv6
      '''
  
      if not chain:
          return 'Error: Chain needs to be specified'
  
      wait = '--wait' if _has_option('--wait', family) else ''
      cmd = '{0} {1} -t {2} -N {3}'.format(
              _iptables_cmd(family), wait, table, chain)
      out = __salt__['cmd.run'](cmd)
  
      if not out:
          out = True
      return out
docs: .. versionadded:: 2014.1.0
  
      Create new custom chain to the specified table.
  
      CLI Example:
  
      .. code-block:: bash
  
          salt '*' iptables.new_chain filter CUSTOM_CHAIN
  
          IPv6:
          salt '*' iptables.new_chain filter CUSTOM_CHAIN family=ipv6