Forum Discussion
nitass_89166
Aug 20, 2012Noctilucent
is netcat useful i.e. using netcat as telnet client?
- Dexter2508_1388May 18, 2016NimbostratusYes , Netcat can be used to generate all sorts of traffic including Udp and IPV6 type traffic . See examples below : nc -u -4 10.90.100.1 514 , the u option is udp , -4 option is Ipv4 and 514 is the port . In this example I am generating udp traffic for the syslog port 514 to test udp connectivity nc -t -4 10.90.100.1 443 - the t option is tcp , -4 option is Ipv4 and 514 is the port . In this example I am generating tcp traffic for the https port 443 to test tcp connectivity
- Ken_Schultz_525May 20, 2016NimbostratusYes, nc can be used to generate the test traffic on any given port. HOWEVER... it fails when you use "-s [Floating-IP]" eg nc -v -z -s 10.1.1.2 10.3.4.5 80 ....works fine when .2 is the self-ip, however... nc -v -z -s 10.1.1.1 10.3.4.5 80 .... fails with nc: bind failed: Cannot assign requested address. Anyone know how to source the test traffic from a floating -IP ?