Guys,
Today, I had to check UDP packet communication between linux and a windows system. Main purpose of the windows system was to capturing or receiving syslog data from various linux system on arcsight. Hence, remote log forwarding was enabled on client. Following steps I followed :
Sending UDP packets from client :
$nc -uv IP_of_system_where_UDP_is_sending port_number_to_which_UDP_is_receiving
Hello
This is test UDP packet
Are you capturing it
Please let me know
Example :
A$ nc 192.1.2.10 514
Hello
This is test UDP packet
Are you capturing it
Please let me know
If you capture the packets using wireshark / tshark or tcpdump, you'll see above packets on windows system/linux system
If your system wants to listen or receive UDP packets on any linux box, you can execute this :
$ nc -luv port
Example :
B$ nc -luv 514
If you don't have nc command, install it like :
$ yum install nc -y
Try with your own risk :)
Today, I had to check UDP packet communication between linux and a windows system. Main purpose of the windows system was to capturing or receiving syslog data from various linux system on arcsight. Hence, remote log forwarding was enabled on client. Following steps I followed :
Sending UDP packets from client :
$nc -uv IP_of_system_where_UDP_is_sending port_number_to_which_UDP_is_receiving
Hello
This is test UDP packet
Are you capturing it
Please let me know
Example :
A$ nc 192.1.2.10 514
Hello
This is test UDP packet
Are you capturing it
Please let me know
If you capture the packets using wireshark / tshark or tcpdump, you'll see above packets on windows system/linux system
If your system wants to listen or receive UDP packets on any linux box, you can execute this :
$ nc -luv port
Example :
B$ nc -luv 514
If you don't have nc command, install it like :
$ yum install nc -y
Try with your own risk :)
0 comments:
Post a Comment