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-05-02 21:33:13 +00:00
Urejate območja IP za < a href = "{{ url_for('rules.index') }}" > posredovalna pravila< / a > na požarnem zidu.
2024-04-30 13:13:50 +00:00
< p >
2024-05-02 21:33:13 +00:00
NAT se izvaja za notranja omrežja, kjer je nastavljen. Če nastavimo skupino AD, bodo omrežju dodane naprave, ki so jih v VPN povezali uporabniki v tej skupini. Vse naprave v posameznem omrežju so dostopne med sabo in za njih veljajo ista posredovalna pravila.
< p >
Imen in naslovnih prostorov fizičnih omrežij ne moremo spreminjati. Za svoja omrežja lahko definiramo vsa polja. Omrežje odstranimo tako, da mu pobrišemo ime.
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-05-02 21:33:13 +00:00
< th > Omrežje< 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-05-02 21:33:13 +00:00
< td style = "max-width: 4em;" > < input name = "name" placeholder = "novo območje" / >
< td style = "max-width: 5em;" > < input name = "ip" placeholder = "10.0.0.0/8" / >
< td style = "max-width: 8em;" > < input name = "ip6" placeholder = "fc00:1::/64 fc00:2::/64" / >
2024-04-30 13:13:50 +00:00
< td style = "max-width: 5em;" > < input name = "nat" / >
2024-05-02 21:33:13 +00:00
< td > < input name = "vpn" placeholder = "skupina v AD" / >
2023-07-24 13:45:45 +00:00
< / table >
< p > < button id = "submit" type = "submit" > Shrani< / button >
< / form >
{% endblock %}