Changeset 10244 in genesis


Ignore:
Timestamp:
Mar 19, 2012, 11:47:59 AM (13 years ago)
Author:
richardvm
Message:

merge hybrid and proxy configuration.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • tools/gformat.py

    r10238 r10244  
    300300{% endif -%}
    301301
    302 {% if nodetype == "Proxy" %}
     302{% if nodetype == "Proxy" or nodetype == "Hybrid" %}
    303303#
    304 # PROXY Configuration
     304# Edge Configuration
    305305#
     306
     307
     308# Firewall and Routing Configuration
    306309
    307310{% if gateway -%}
     
    310313#defaultrouter="NOTSET"
    311314{% endif -%}
    312 
    313315internalif="{{ internalif }}"
    314 
    315 # PROXY iLeiden Configuration
    316316ileiden_enable="{{ autogen_ileiden_enable }}"
    317317gateway_enable="{{ autogen_ileiden_enable }}"
     
    338338# iLeiden Proxies {{ autogen_ileiden_proxies_names }}
    339339lvrouted_flags="-u -s s00p3rs3kr3t -m 28 -z {{ autogen_ileiden_proxies }}"
     340{% endif %}
     341{% if vpnif -%}
     342  vpnif="{{ vpnif }}"
     343{% endif -%}
    340344
    341345captive_portal_whitelist=""
    342346captive_portal_interfaces="{{ autogen_dhcp_interfaces }}"
    343 {% endif %}
    344 
    345 {% if nodetype == "Hybrid" %}
    346 #
    347 # Hybrid Node
    348 #
    349 {% if internalroute -%}
    350 static_routes="wleiden"
    351 route_wleiden="-net 172.16.0.0/12 {{ internalroute }}"
    352 {% endif -%}
    353 
    354 {% if gateway -%}
    355 defaultrouter="{{ gateway }}"
    356 {% else -%}
    357 #defaultrouter="NOTSET"
    358 {% endif -%}
    359 
    360 internalif="{{ internalif }}"
    361 {% if vpnif -%}
    362   vpnif="{{ vpnif }}"\n
    363 {% endif -%}
    364 
    365 lvrouted_enable="{{ autogen_ileiden_enable }}"
    366 lvrouted_flags="-u -s s00p3rs3kr3t -m 28"
    367 
    368 gateway_enable="{{ autogen_ileiden_enable }}"
    369 
    370 ileiden_enable="{{ autogen_ileiden_enable }}"
    371 firewall_enable="{{ autogen_ileiden_enable }}"
    372 firewall_script="/etc/ipfw.sh"
    373 
    374 captive_portal_whitelist=""
    375 captive_portal_interfaces="{{ autogen_dhcp_interfaces }}"
    376 {% endif %}
    377347
    378348""").render(datadump)
Note: See TracChangeset for help on using the changeset viewer.