How to capture udp packet with tcpdump started by xinetd?

It's just a bunch of pipes

How to capture udp packet with tcpdump started by xinetd?

Postby Shawnturner » Wed Jan 03, 2018 12:25 pm

Hi,
I am trying to set up a xinetd for running shell script by receiving a udp packet on port 8012. It works. But in shell script I want to extract data from packet with tcpdump. But tcpdump recieve only second packet.

By first packet xinetd starts my script and only second packet go to tcpdump.

Maybe there is another way to do this?
# /etc/xinetd.d/stream_control
service stream_control
{
disable = no
type = UNLISTED
port = 8012
socket_type = dgram
protocol = udp
flags = IPv4
wait = yes
user = root
server = /home/user/test.sh
log_type = SYSLOG daemon
}

Please help.
Thanks!

I didn't find the right solution from the Internet.

References: https://www.linuxquestions.org/question ... 175619670/

3D Product Design Video
Shawnturner
 
Posts: 6
Joined: Mon Nov 20, 2017 7:10 am

Return to Networking



Who is online

Users browsing this forum: No registered users and 1 guest

cron