def generateTemplate(ips, forwardHeader):
    """
    Generates the template using ips (list) and forwardHeader (str)
    """
    text = ""
    template = "set_real_ip_from   {};\n"
    for ip in ips:
        text += template.format(ip)

    text += "real_ip_header     {};\n".format(forwardHeader)

    return text