{% for i in range(links_number) %} link {{ internal_links_name }}{{ server_port + i }} {{ link_start_ip_addr | ipmath(4*i) }} {{ link_ip_mask }} {% endfor %} {% if stcp_mode == "tap" %} {% if stcp_level|lower == "l2" %} tap {{ tap_iface_name }} {% else %} tap {{ tap_iface_name }} {{ tap_iface_ip_addr }} {{ tap_iface_ip_mask }} {% endif %} {% endif %} {% if stcp_mode == "tun" %} tun {{ tun_iface_name }} {{ tun_iface_ip_addr }} {{ tun_iface_ip_mask }} {% endif %} {% if stcp_mode == "tuntap" or stcp_mode == "taptun" %} tun {{ tun_iface_name }} {{ tun_iface_ip_addr }} {{ tun_iface_ip_mask }} {% if stcp_level|lower == "l2" %} tap {{ tap_iface_name }} {% else %} tap {{ tap_iface_name }} {{ tap_iface_ip_addr }} {{ tap_iface_ip_mask }} {% endif %} {% endif %} {% if stcp_level|lower == "l2" %} ifup {{ stcp_scripts_dir }}/up.sh ifdown {{ stcp_scripts_dir }}/down.sh {% endif %} {% if split_tcp_sessions is defined %} SPLIT_TCP_SESSIONS {{ split_tcp_sessions }} {% endif %} {% if max_sessions_threshold is defined %} MAX_SESSIONS_THRESHOLD {{ max_sessions_threshold }} {% endif %} {% if min_sessions_threshold is defined %} MIN_SESSIONS_THRESHOLD {{ min_sessions_threshold }} {% endif %} {% if flush_sort_delay_max is defined %} FLUSH_SORT_DELAY_MAX {{ flush_sort_delay_max }} {% endif %} {% if flush_sort_delay_min is defined %} FLUSH_SORT_DELAY_MIN {{ flush_sort_delay_min }} {% endif %} {% if flush_sort_add_time is defined %} FLUSH_SORT_ADD_TIME {{ flush_sort_add_time }} {% endif %} {% if stcp_http_srv_addr is defined and stcp_http_srv_port is defined %} server_http {{ stcp_http_srv_addr }} {{ stcp_http_srv_port }} {% endif %} {% if en_peer_to_peer == true %} enable_peer_to_peer 1 {% endif %} {% if en_print_info == true %} print_info 1 {% endif %} {% if stcp_mtu_size is defined %} INTERFACE_MTU {{ stcp_mtu_size }} {% endif %} {% if use_auth == true %} users {{ users_file_path }} {% endif %} {% if use_client_logging == true %} clients_log_fname {{ clients_log_file_path }} {% endif %}