|
|
@ -4,65 +4,60 @@
|
|
|
|
|
|
|
|
|
|
|
|
{% block pagetitle %}{% trans 'OpenVPN Configuration' %}{% endblock %}
|
|
|
|
{% block pagetitle %}{% trans 'OpenVPN Configuration' %}{% endblock %}
|
|
|
|
{% block account_content %}
|
|
|
|
{% block account_content %}
|
|
|
|
<div>
|
|
|
|
<form action="/account/config_dl" method="get" class="pure-form pure-form-aligned">
|
|
|
|
<form action="/account/config_dl" method="get" class="pure-form pure-form-aligned">
|
|
|
|
<fieldset>
|
|
|
|
<fieldset>
|
|
|
|
<div class="pure-control-group">
|
|
|
|
<div class="pure-control-group">
|
|
|
|
<label for="p_os">{% trans 'OS' %}</label>
|
|
|
|
<label for="p_os">{% trans 'OS' %}</label>
|
|
|
|
<select name="platform" id="p_os" class="pure-input-1-2">
|
|
|
|
<select name="platform" id="p_os" class="pure-input-1-2">
|
|
|
|
{% for k, v in config_os %}
|
|
|
|
{% for k, v in config_os %}
|
|
|
|
<option value="{{k}}">{{v}}</option>
|
|
|
|
<option value="{{k}}">{{v}}</option>
|
|
|
|
{% endfor %}
|
|
|
|
{% endfor %}
|
|
|
|
</select>
|
|
|
|
</select>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
|
|
|
|
|
|
|
|
<div class="pure-control-group">
|
|
|
|
<div class="pure-control-group">
|
|
|
|
<label for="p_gw">{% trans 'Gateway' %}</label>
|
|
|
|
<label for="p_gw">{% trans 'Gateway' %}</label>
|
|
|
|
<select name="gateway" id="p_gw" class="pure-input-1-2">
|
|
|
|
<select name="gateway" id="p_gw" class="pure-input-1-2">
|
|
|
|
<option value="" selected>{% trans 'Random' %}</option>
|
|
|
|
<option value="" selected>{% trans 'Random' %}</option>
|
|
|
|
<option value="all">{% trans 'All (multiple config files)' %}</option>
|
|
|
|
<option value="all">{% trans 'All (multiple config files)' %}</option>
|
|
|
|
{% for c in config_countries %}
|
|
|
|
{% for c in config_countries %}
|
|
|
|
<option value="cc_{{c.country_code}}">
|
|
|
|
<option value="cc_{{c.country_code}}">
|
|
|
|
{% trans 'Country' %}: {{c.country_name}}
|
|
|
|
{% trans 'Country' %}: {{c.country_name}}
|
|
|
|
{% if c.message %}
|
|
|
|
{% if c.message %}
|
|
|
|
[ {{ c.message }} ]
|
|
|
|
[ {{ c.message }} ]
|
|
|
|
{% endif %}
|
|
|
|
{% endif %}
|
|
|
|
</option>
|
|
|
|
</option>
|
|
|
|
{% endfor %}
|
|
|
|
{% endfor %}
|
|
|
|
</select>
|
|
|
|
</select>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
|
|
|
|
|
|
|
|
<div class="pure-control-group">
|
|
|
|
<div class="pure-control-group">
|
|
|
|
<label for="p_proto">{% trans 'Protocol' %}</label>
|
|
|
|
<label for="p_proto">{% trans 'Protocol' %}</label>
|
|
|
|
<select name="protocol" id="p_proto" class="pure-input-1-2">
|
|
|
|
<select name="protocol" id="p_proto" class="pure-input-1-2">
|
|
|
|
{% for k, v in config_protocols %}
|
|
|
|
{% for k, v in config_protocols %}
|
|
|
|
<option value="{{k}}">{{v}}</option>
|
|
|
|
<option value="{{k}}">{{v}}</option>
|
|
|
|
{% endfor %}
|
|
|
|
{% endfor %}
|
|
|
|
</select>
|
|
|
|
</select>
|
|
|
|
<p class="inputinfo">{% trans 'TCP is slower. Use it only if you have important packet loss or if UDP is filtered.' %}</p>
|
|
|
|
<p class="inputinfo">{% trans 'TCP is slower. Use it only if you have important packet loss or if UDP is filtered.' %}</p>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
|
|
|
|
|
|
|
|
<div class="pure-control-group">
|
|
|
|
<div class="pure-control-group">
|
|
|
|
<label for="p_proxy">{% trans 'Use HTTP Proxy?' %}</label>
|
|
|
|
<label for="p_proxy">{% trans 'Use HTTP Proxy?' %}</label>
|
|
|
|
<input type="text" name="http_proxy" id="p_proxy"
|
|
|
|
<input type="text" name="http_proxy" id="p_proxy"
|
|
|
|
placeholder="{% trans "Leave empty if you don't know." %}"
|
|
|
|
placeholder="{% trans "Leave empty if you don't know." %}"
|
|
|
|
class="pure-input-1-2" />
|
|
|
|
class="pure-input-1-2" />
|
|
|
|
<p class="inputinfo">{% trans 'Requires TCP.' %}</p>
|
|
|
|
<p class="inputinfo">{% trans 'Requires TCP.' %}</p>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
|
|
|
|
|
|
|
|
<div class="pure-controls">
|
|
|
|
<div class="pure-controls">
|
|
|
|
<label for="p_ipv6" class="pure-checkbox">
|
|
|
|
<label for="p_ipv6" class="pure-checkbox">
|
|
|
|
<input type="checkbox" name="enable_ipv6" id="p_ipv6" checked />
|
|
|
|
<input type="checkbox" name="enable_ipv6" id="p_ipv6" checked />
|
|
|
|
{% trans 'Enable IPv6?' %}
|
|
|
|
{% trans 'Enable IPv6?' %}
|
|
|
|
</label>
|
|
|
|
</label>
|
|
|
|
|
|
|
|
|
|
|
|
<input type="submit" class="pure-button pure-button-primary"
|
|
|
|
<input type="submit" class="pure-button pure-button-primary"
|
|
|
|
value="{% trans 'Download config' %}" />
|
|
|
|
value="{% trans 'Download config' %}" />
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
</fieldset>
|
|
|
|
</fieldset>
|
|
|
|
</form>
|
|
|
|
</form>
|
|
|
|
|
|
|
|
</div>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
{% endblock %}
|
|
|
|
{% endblock %}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|