connections
Использование
net show connections [-h] [--to_file] [-i INTERFACE] [-v] [-m MATCH] [-f FILTER]
Описание
Отображение сессий трафика виртуальных машин.
Аргументы
--to_file
- Redirect output to file (/tmp/cli-stdout.txt).-i
- INTERFACE, --interface INTERFACE The interface through which connections are tracked.-v,
- --verbose Display verbose output.-m
- MATCH, --match MATCH Match the output using regular expression syntax.-f
- FILTER, --filter FILTER Filter out the output using regular expression syntax.
Примеры использования
Displaying all sessions for VM traffic on the specified interface <INTERFACE>:
net show connections -i <INTERFACE>
Display only TCP sessions for node traffic in static mode:
net show connections -m "tcp.*ESTABLISHED"
Display only sessions for traffic coming to the address <ADDRESS> and port 22 of the VM:
net show connections -m "(src|dst)=<ADDRESS>.*port=22"