diff --git a/routermon/templates/routermon/_live_wan.html b/routermon/templates/routermon/_live_wan.html index 9131b61..b0fa894 100644 --- a/routermon/templates/routermon/_live_wan.html +++ b/routermon/templates/routermon/_live_wan.html @@ -7,7 +7,7 @@ Dst Port Src Port Geo - ISP + Target Service @@ -26,12 +26,26 @@ {% with p=ev.dst_port %} - {% if p == 22 %}SSH + {% if p == 21 %}FTP + {% elif p == 22 %}SSH {% elif p == 23 %}Telnet + {% elif p == 25 %}SMTP + {% elif p == 53 %}DNS {% elif p == 80 %}HTTP + {% elif p == 110 %}POP3 + {% elif p == 143 %}IMAP {% elif p == 443 %}HTTPS + {% elif p == 445 %}SMB + {% elif p == 1433 %}MSSQL + {% elif p == 3306 %}MySQL {% elif p == 3389 %}RDP + {% elif p == 5432 %}PostgreSQL + {% elif p == 5900 %}VNC + {% elif p == 6379 %}Redis {% elif p == 8080 %}HTTP-alt + {% elif p == 8443 %}HTTPS-alt + {% elif p == 9200 %}Elastic + {% elif p == 27017 %}MongoDB {% endif %} {% endwith %} {% else %} @@ -46,7 +60,32 @@ {% endif %} - {{ ev.isp|default:"—" }} + + {% with p=ev.dst_port %} + {% if p == 21 %}FTP + {% elif p == 22 %}SSH + {% elif p == 23 %}Telnet + {% elif p == 25 %}SMTP + {% elif p == 53 %}DNS + {% elif p == 80 %}HTTP + {% elif p == 110 %}POP3 + {% elif p == 143 %}IMAP + {% elif p == 443 %}HTTPS + {% elif p == 445 %}SMB + {% elif p == 1433 %}MSSQL + {% elif p == 3306 %}MySQL + {% elif p == 3389 %}RDP + {% elif p == 5432 %}PostgreSQL + {% elif p == 5900 %}VNC + {% elif p == 6379 %}Redis + {% elif p == 8080 %}HTTP-alt + {% elif p == 8443 %}HTTPS-alt + {% elif p == 9200 %}Elastic + {% elif p == 27017 %}MongoDB + {% else %} + {% endif %} + {% endwith %} + {% empty %}