2023-07-24 13:45:45 +00:00
{% extends 'base.html' %}
2024-04-30 13:13:50 +00:00
{% block header %}
< style >
td > input {
width: 100%;
}
< / style >
{% endblock %}
2023-07-24 13:45:45 +00:00
{% block content %}
< p >
2024-04-30 13:13:50 +00:00
Urejate naslovna območja. Za statična omrežja lahko določimo naslov NAT in skupino za VPN. Za lastna območja lahko poleg tega definiramo enega ali več obsegov IP, ločenih s presledki.
< p >
NAT se izvaja na območjih, kjer je nastavljen. Uporabniki VPN imajo glede na skupine v AD enake dostope kot območja, za katera so nastavljene te skupine.
2023-07-24 13:45:45 +00:00
< form id = "request" method = "POST" >
2024-04-30 13:13:50 +00:00
< table style = "width: 100%;" >
2023-07-24 13:45:45 +00:00
< thead >
2024-04-30 13:13:50 +00:00
< th > Ime< th > IP< th > IPv6< th > NAT< th > VPN
2023-07-24 13:45:45 +00:00
< tbody >
2024-04-30 13:13:50 +00:00
{% for name, data in ipsets.items() %}
2023-07-24 13:45:45 +00:00
< tr >
2024-04-30 13:13:50 +00:00
< td style = "max-width: 4em;" > < input name = "name" value = "{{ name }}" { % if not data . custom % } readonly { % endif % } / >
< td style = "max-width: 5em;" > < input name = "ip" value = "{{ data.ip|join(' ') }}" { % if not data . custom % } readonly { % endif % } / >
< td style = "max-width: 8em;" > < input name = "ip6" value = "{{ data.ip6|join(' ') }}" { % if not data . custom % } readonly { % endif % } / >
< td style = "max-width: 5em;" > < input name = "nat" value = "{{ data.nat }}" / >
< td style = "" > < input name = "vpn" value = "{{ data.vpn }}" / >
2023-07-24 13:45:45 +00:00
{% endfor %}
< tr >
2024-04-30 13:13:50 +00:00
< td style = "max-width: 4em;" > < input name = "name" / >
< td style = "max-width: 5em;" > < input name = "ip" / >
< td style = "max-width: 8em;" > < input name = "ip6" / >
< td style = "max-width: 5em;" > < input name = "nat" / >
< td > < input name = "vpn" / >
2023-07-24 13:45:45 +00:00
< / table >
< p > < button id = "submit" type = "submit" > Shrani< / button >
< / form >
{% endblock %}