2021-04-03 04:10:37 +00:00
{% extends "base.html" %}
2023-02-13 14:45:45 +00:00
{% block title %}{{ lang.menu_links.monitoring.net_tools }}{% endblock %}
{% block h2 %}{{ lang.menu_links.monitoring.net_tools }}{% endblock %}
2021-04-03 04:10:37 +00:00
{% block content %}
{% from 'include/input_macros.html' import input, checkbox, select %}
2024-11-18 08:34:25 +00:00
< script src = "{{ url_for('static', filename='js/nettools.js')}}" > < / script >
2024-08-02 09:50:02 +00:00
< form name = "nettools_icmp_form" id = "nettools_icmp_form" method = "post" action = "/nettools/icmp" >
2021-04-03 04:10:37 +00:00
< table class = "overview" >
< caption > < h3 > ICMP< / h3 > < / caption >
< tr class = "overviewHead" >
2023-02-13 14:45:45 +00:00
< th class = "padding10 first-collumn" > {{lang.words.from|title()}}< / th >
< th class = "padding10 first-collumn" > {{lang.words.to|title()}}< / th >
2021-04-03 04:10:37 +00:00
< th class = "padding10 first-collumn" > < / th >
< th > < / th >
< / tr >
< tr >
2023-02-13 14:45:45 +00:00
< td class = "padding10 first-collumn" >
2023-09-17 09:42:39 +00:00
< select autofocus required name = "server_from" id = "nettools_icmp_server_from" >
2023-02-13 14:45:45 +00:00
< option disabled selected > ------< / option >
2024-11-18 08:34:25 +00:00
< option value = "localhost" > Roxy-WI server< / option >
2024-02-04 07:28:17 +00:00
{% for server in g.user_params['servers'] %}
2023-02-13 14:45:45 +00:00
< option value = "{{ server.2 }}" > {{ server.1 }}< / option >
2021-04-03 04:10:37 +00:00
{% endfor %}
< / select >
2023-02-13 14:45:45 +00:00
< / td >
< td class = "padding10 first-collumn" >
2024-11-18 08:34:25 +00:00
{{ input('nettools_icmp_server_to', name='server_to', title='Enter IP or Name') }}
2023-02-13 14:45:45 +00:00
< / td >
< td class = "padding10 first-collumn" >
2024-11-18 08:34:25 +00:00
< button type = "submit" title = "Run Ping" id = "nettools_ping" name = "nettools_ping" value = "ping" > Ping< / button >
2023-02-13 14:45:45 +00:00
< / td >
< td >
2024-11-18 08:34:25 +00:00
< button type = "submit" title = "Run Traceroute" id = "nettools_trace" name = "nettools_trace" value = "trace" > Traceroute< / button >
2023-02-13 14:45:45 +00:00
< / td >
2021-04-03 04:10:37 +00:00
< / tr >
< / table >
< / form >
2024-08-02 09:50:02 +00:00
< form name = "nettools_telnet_form" id = "nettools_telnet_form" method = "post" action = "/nettools/tcp" >
2021-04-03 04:10:37 +00:00
< table class = "overview" >
< caption > < h3 > Check port< / h3 > < / caption >
< tr class = "overviewHead" >
2023-02-13 14:45:45 +00:00
< th class = "padding10 first-collumn" > {{lang.words.from|title()}}< / th >
< th class = "padding10 first-collumn" > {{lang.words.to|title()}}< / th >
< th class = "padding10 first-collumn" > {{lang.words.port|title()}}< / th >
2021-04-03 04:10:37 +00:00
< th > < / th >
< / tr >
< tr >
< td class = "padding10 first-collumn" >
2023-09-17 09:42:39 +00:00
< select autofocus required name = "server_from" id = "nettools_telnet_server_from" >
2021-08-05 05:46:44 +00:00
< option disabled selected > ------< / option >
2024-11-18 08:34:25 +00:00
< option value = "localhost" > Roxy-WI server< / option >
2024-02-04 07:28:17 +00:00
{% for server in g.user_params['servers'] %}
2021-04-03 04:10:37 +00:00
< option value = "{{ server.2 }}" > {{ server.1 }}< / option >
{% endfor %}
< / select >
< / td >
< td class = "padding10 first-collumn" >
2024-11-18 08:34:25 +00:00
{{ input('nettools_telnet_server_to', name='server_to', title='Enter IP or Name') }}
2021-04-03 04:10:37 +00:00
< / td >
< td class = "padding10 first-collumn" >
2024-11-18 08:34:25 +00:00
{{ input('nettools_telnet_port_to', name='port', title='Enter port', type='number', style='width: 60px;') }}
2021-04-03 04:10:37 +00:00
< / td >
< td >
2023-02-13 14:45:45 +00:00
< button type = "submit" title = "{{lang.words.run|title()}} Telnet" id = "nettools_telnet" name = "nettools_telnet" value = "nettools_telnet" > {{lang.words.connect|title()}}< / button >
2021-04-03 04:10:37 +00:00
< / td >
< / tr >
< / table >
< / form >
2024-08-02 09:50:02 +00:00
< form name = "nettools_nslookup_form" id = "nettools_nslookup_form" method = "post" action = "/nettools/dns" >
2021-04-03 04:10:37 +00:00
< table class = "overview" >
< caption > < h3 > NSLookup< / h3 > < / caption >
< tr class = "overviewHead" >
2023-02-13 14:45:45 +00:00
< th class = "padding10 first-collumn" > {{lang.words.from|title()}}< / th >
< th class = "padding10 first-collumn" > {{lang.words.record_type}} < / th >
< th class = "padding10 first-collumn" > DNS {{lang.words.name}}< / th >
2021-04-03 04:10:37 +00:00
< th > < / th >
< / tr >
< tr >
< td class = "padding10 first-collumn" >
2023-09-17 09:42:39 +00:00
< select autofocus required name = "server_from" id = "nettools_nslookup_server_from" >
2021-08-05 05:46:44 +00:00
< option disabled selected > ------< / option >
2024-11-18 08:34:25 +00:00
< option value = "localhost" > Roxy-WI server< / option >
2024-02-04 07:28:17 +00:00
{% for server in g.user_params['servers'] %}
2021-04-03 04:10:37 +00:00
< option value = "{{ server.2 }}" > {{ server.1 }}< / option >
{% endfor %}
< / select >
< / td >
< td class = "padding10 first-collumn" >
{% set values = dict() %}
2024-11-18 08:34:25 +00:00
{% set values = {'a':'A','aaa':'AAA', 'cname':'CNAME', 'mx':'MX', 'txt':'TXT', 'ptr':'PTR', 'srv':'SRV',
2021-04-03 04:10:37 +00:00
'SOA':'SOA', 'CAA':'CAA'} %}
2024-11-18 08:34:25 +00:00
{{ select('nettools_nslookup_record_type', name='record_type', values=values, selected='A', required='required') }}
2021-04-03 04:10:37 +00:00
< / td >
< td class = "padding10 first-collumn" >
2024-11-18 08:34:25 +00:00
{{ input('nettools_nslookup_name', name='dns_name', title='Enter a DNS name') }}
2021-04-03 04:10:37 +00:00
< / td >
< td >
2023-02-13 14:45:45 +00:00
< button type = "submit" title = "{{lang.words.run|title()}} Telnet" id = "nettools_nslookup" name = "nettools_nslookup" value = "nettools_nslookup" > {{lang.words.check|title()}}< / button >
2021-04-03 04:10:37 +00:00
< / td >
< / tr >
< / table >
< / form >
2024-08-02 09:50:02 +00:00
< form name = "nettools_portscanner_form" id = "nettools_portscanner_form" method = "post" action = "/nettools/portscan" >
2024-11-18 08:34:25 +00:00
< table class = "overview" style = "width: 30%;float: left;" >
2023-11-02 12:38:04 +00:00
< caption > < h3 > Port scanner< / h3 > < / caption >
< tr class = "overviewHead" >
< th class = "padding10 first-collumn" > {{lang.words.server|title()}}< / th >
< th > < / th >
< / tr >
< tr >
< td class = "padding10 first-collumn" >
2024-11-18 08:34:25 +00:00
{{ input('nettools_portscanner_server', title='Enter a server for port scanning') }}
2023-11-02 12:38:04 +00:00
< / td >
< td class = "padding10" style = "width: 0" >
< button type = "submit" title = "{{lang.words.run|title()}} port scanning" id = "nettools_portscan" name = "nettools_portscan" value = "nettools_portscan" > {{lang.words.run|title()}}< / button >
< / td >
< / tr >
< / table >
< / form >
2024-08-02 09:50:02 +00:00
< form name = "nettools_whois_form" id = "nettools_whois_form" method = "post" action = "/nettools/whois" >
2024-11-18 08:34:25 +00:00
< table class = "overview" style = "width: 30%;float: left" >
2024-04-04 11:30:07 +00:00
< caption > < h3 > Whois< / h3 > < / caption >
< tr class = "overviewHead" >
< th class = "padding10 first-collumn" > {{lang.words.name|title()}}< / th >
< th > < / th >
< / tr >
< tr >
< td class = "padding10 first-collumn" >
2024-11-18 08:34:25 +00:00
{{ input('nettools_whois_name', name='dns_name', title=lang.nettools_page.dns_name) }}
2024-04-04 11:30:07 +00:00
< / td >
< td class = "padding10" style = "width: 0" >
< button type = "submit" title = "{{lang.words.check|title()}}" id = "nettools_whois" name = "nettools_whois" value = "nettools_whois" > {{lang.words.check|title()}}< / button >
< / td >
< / tr >
< / table >
< / form >
2024-11-18 08:34:25 +00:00
< form name = "nettools_ip_calc_form" id = "nettools_ipcalc_form" method = "post" action = "/nettools/ipcalc" >
< table class = "overview" style = "width: 40%;" >
< caption > < h3 > IP {{lang.words.calculator}}< / h3 > < / caption >
< tr class = "overviewHead" >
< th class = "padding10 first-collumn" > IP {{lang.words.address|title()}}< / th >
< th > {{lang.words.netmask}}< / th >
< th > < / th >
< / tr >
< tr >
< td class = "padding10 first-collumn" >
{{ input('nettools_address', name='ip', placeholder='192.168.0.1') }}
< / td >
< td >
{{ input('nettools_netmask', name='netmask', placeholder='24', type='number') }}
< / td >
< td class = "padding10" style = "width: 0" >
< button type = "submit" title = "{{lang.words.calculate|title()}}" id = "nettools_ipcalc_form" name = "nettools_ipcalc_form" value = "nettools_ipcalc_form" > {{lang.words.calculate|title()}}< / button >
< / td >
< / tr >
< / table >
< / form >
2021-04-03 04:10:37 +00:00
< div id = "ajax-nettools" style = "padding: 20px;" > < / div >
2023-11-02 12:38:04 +00:00
< div id = "show_scans_ports" style = "display: none; padding: 0;" >
< div id = "show_scans_ports_body" > < / div >
< / div >
2023-02-13 14:45:45 +00:00
{% endblock %}