np-guard / models

Models for connectivity and network resources
https://pkg.go.dev/github.com/np-guard/models
Apache License 2.0
1 stars 0 forks source link

shorter version of the connection labels #35

Closed haim-kermany closed 2 months ago

haim-kermany commented 2 months ago

for html output (and maybe more), need shorter version of the connection labels examples: protocol: TCP src-ports: 1-442,444-65535 dst-ports: 443 - shorten to TCP src-ports: 1-442,444-65535 dst-ports: 443 protocol: TCP src-ports: 442; protocol TCP dst-ports: 443 - shorten to TCP src-ports: 442; TCP dst-ports: 443 protocol: TCP src-ports: 443 - shorten to TCP src-ports: 443 protocol: TCP dst-ports: 443 - shorten to TCP 443 protocol: TCP dst-ports: 443-449,722 - shorten to TCP 443-449,722

haim-kermany commented 2 months ago

need examples also with icmp-type and icmp-code

zivnevo commented 2 months ago

protocol: ICMP icmp-type: 0 icmp-code: 0 - shorten to ICMP type: 0 code: 0

zivnevo commented 2 months ago

See also this issue