Questions tagged [udp]

User Datagram Protocol (UDP) is defined to make available a datagram mode of packet-switched computer communication in the environment of an interconnected set of computer networks. This protocol assumes that the Internet Protocol (IP) is used as the underlying protocol.

Filter by
Sorted by
Tagged with
0
votes
1answer
16 views

How to convert stream data which come over udp to video device?

I'm trying to share my computer's camera with the remote computer. In order to do this, I wanted to share my own computer's camera with the udp port(stream), take the stream on the remote computer and ...
0
votes
1answer
1k views

ncat v7.6 UDP -k and -w not working as expected

At work ( BSD nc version ) and on many internet examples ncat can listen to udp and be used with the following options : -k which allows multiple connections -w 0 which terminates the current ...
1
vote
1answer
1k views

Detecting where to bind to receive a UDP broadcast

I'm writing an application that needs to capture and print UDP broadcasts. The network interface in use is: enp0s3: flags=4163<UP,BROADCAST,RUNNING,MULTICAST> mtu 1500 inet 192.168.10....
0
votes
0answers
10 views

How to measure the duration of packet from network to process

I want to measure the duration of a TCP/UDP packet from network to process. Let's say that I develop a Linux process, which provides a kind of web service. My process is listening on the port 8999 and ...
1
vote
2answers
1k views

UDP Port Fowarding: channel 2: open failed: connect failed: Connection refused

My situation is as follows: I have currently trying to have a program between two Hosts send UDP packets over a SSH Tunnel. There is also a host intermediate between the two hosts. Note Server01 ...
0
votes
1answer
1k views

How to route all snmp request to remote deivces from a local machine through a proxy server

I have to forward all snmp request to remote deivces from a local machine to proxy server. Is it possible ? The actual requirement is like i have set of network devices that are only accessible ...
1
vote
2answers
798 views

UDP reverse proxy

Is there any easy way of doing userspace UDP reverse proxying? Specifically, I want the equivalent of ssh -R 10000:localhost:10000 $server but for UDP. I want this approach to be unreliable in the ...
0
votes
0answers
36 views

Using nftable to duplicate udp packet

I am trying to setup udp packet duplication. Usecase will be syslog messages. These messages are beeing sent to machine A ( xxx.xxx.xxx.177 : 5140 , debian 10). They are received by a service. With ...
8
votes
2answers
3k views

Cannot see packets arrive on application socket that were seen by Wireshark

Using Ubuntu 14 I have a Linux machine where there are two interfaces: eth1: 172.16.20.1 ppp0: 192.168.0.2 ppp0 is connected to a device which has a PPP interface (192.168.0.1) and a WAN interface (...
3
votes
1answer
762 views

Socat: send a UDP broadcast from stdin, but handling responses with SYSTEM

I'm trying to implement a simple proprietary discovery protocol using socat. The discovery is done by sending a UDP broadcast to a well-defined port with a small payload, then listening to "...
2
votes
1answer
90 views

incoming UDP multicast stream stops after fixed time on macOS

My ISP provides IPTV feature, stream example: udp://@239.255.2.97:5500. I'd like to watch IPTV on macOS, so I used VLC. Initially, IPTV didn't work at all. At first I thought that it's locked to ISP's ...
1
vote
0answers
32 views

Linux: UDP “multiplexer” inside kernel

I have an application with very high performance requirements and the following job: There is incoming UDP traffic on port 1234. The packets have as fast as possible to be sent to hosts H1, H2, ... Hn ...
0
votes
2answers
320 views

Sending multiple packets of hex data with UDP

I'm trying to reverse engineer a wifi webcam that connects to an Android app. I sniffed the traffic and found that the transaction is initiated when the app sends a series of 8 UDP packets, at which ...
0
votes
1answer
18 views

state of tcp/udp source ports when waiting for answer from target

i have a quick question about tcp port states: suppose i am establishing a tcp connection to a server: source address/port should be 44.44.44.44:33456 destination address/port is 55:55:55.55:443. in ...
0
votes
1answer
112 views

UDP Packet drops

I understand that the receive flow for a UDP packet is Check udp header for errors Match destination to socket Send an error message back if no such socket Put packet into appropriate socket receive ...
1
vote
1answer
51 views

Why is it that TCP packets can be modified to block invalid packets, but not UDP packets

On a random day I was googling iptables rules to harden my desktop, and came across this post[1]. At some point the guide mentions blocking invalid TCP packets using tcp-modules with these rules; ...
3
votes
0answers
369 views

Debian ignores second multicast packet

I have a home local network with several devices. One of the devices is sending multicast packets with information about some events (smart home). It works well - I've tried to launch Multicast Tester ...
4
votes
1answer
747 views

Limiting socat udp to receive one packet or timeout

When testing certain multicast connectivities in the past I have been using socat to do this: socat -u UDP4-RECVFROM:12345,add-membership=224.1.2.3:eth0,fork,reuseaddr,readbytes=32 SYSTEM:"hexdump -C"...
6
votes
4answers
9k views

How to listen to all ports (UDP and TCP) or make them all appear open in Debian

I got an external Debian server. The problem is that my university campus doesn't allow connections to go outside when the port is different than TCP port 22, 80, 443, or UDP port 123. I tested them ...
-1
votes
1answer
6k views

Sending UDP packets to a destination

On my Linux machine, I am receiving UDP packets from another machine. When I receive the UDP packets, I get the message "Listening on UDP port : 8999" This is triggered by the following command ...
1
vote
0answers
113 views

Bridge / Tunnel using netcat and named pipes

I have two devices (A and B) that should communicate with each other - indirectly via a server (S): /---\ /---\ /---\ | A | <===> | S | <===> | B | \---/ \---/ \---/...
1
vote
1answer
48 views

Why did iperf3 show thunderbolt speed 3 Gbit in one direction, and just 500 Mbit in the other direction?

I connected two MBPs via thunderbolt, via thunderbolt bridge which should provide 10Gbit/s bidirectional connection on one of its channels. I have them connected over a thunderbolt 2 male male cable ...
3
votes
1answer
45 views

What happens to data on unpolled datagram sockets?

I've tried to google this, but can't find anything. If I have a long running program that listens to a datagram (UDP) socket. If data is sent to my socket, but my program does not poll for it or read ...
1
vote
0answers
38 views

Receive data on a udp port and forward the same on a tcp port

I'm not sure whether this is even possible, but I want to receive some data over UDP port (say 14550) and forward it to a newly opened TCP port (say 50000). I have tried socat as of now but no success:...
1
vote
0answers
113 views

How to monitor a UDP specific port/socket?

I have an application that receives UDP packets at port 5000. In order to be 100% sure that the application is receiving all packets (for example the RX buffer could be full and some packets could be ...
1
vote
2answers
57 views

How does multicast routing work on the internet?

For a LAN, it is effectively several additional layers of filters on hardware/software, maybe including switch(IGMP snooping)/NIC/kernel stack, etc. Otherwise it is similar to broadcast. I think I can ...
0
votes
1answer
260 views

Can UDP multicast listening socket receive unicast packet, OR, can UDP unicast socket receive multicast packet, on Linux IPv4 stack?

My understanding is this, if a socket does not bind local address(or binds to INADDR_ANY), and does not call connect() to set remote address/port, then there is no way to prevent unicast packets to be ...
0
votes
2answers
29 views

Counting bytes on all connections traversing a Linux router

I have a Linux box which works as a router. How can I measure which connections send and receive how much data? For each hour, I would like something like: src_addr src_port dst_addr ...
0
votes
3answers
914 views

dmesg + UDP: bad checksum. + rhel 7.x

from the dmesg we get very strange lines as [6484420.812643] raid6: using avx2x2 recovery algorithm [6484420.859086] Btrfs loaded [6484426.278636] nr_pdflush_threads exported in /proc is scheduled ...
0
votes
1answer
151 views

Is UDP data lost when executing kill -HUP on rsyslog?

I am very new to rsyslog and I am going through the documentation as well as seeing examples of what other people have done with their configuration and a question came to mind when the topic of log ...
1
vote
0answers
9 views

Adding UDP checksum in IP layer after Xfrm transformation

I am doing a custom transformation of the packet using xfrm tables (IPv6). As part of the transformation, I am adding a UDP header (basically putting my data into an UDP a.k.a UDP encapsulation). The ...
0
votes
0answers
69 views

UDP multicast between FreeBSD QEMU guest and Ubuntu host

I am trying to perform UDP multicast between a FreeBSD QEMU guest and an Ubuntu host (this is part of an effort to use ROS2 on a FreeBSD-based research system). As a basic test, I've been running the ...
1
vote
0answers
19 views

Tunnelling IP Multicast traffic between two residential networks or machines

The Ableton Link music synchronization service operates by broadcasting and receiving messages via an IPv4 multicast group in the "Ad-Hoc 2" address block. In order to use the protocol to synchronize ...
1
vote
1answer
95 views

How to enable Nginx binding to UDP port 10000 with SELinux

Not sure if ServerFault is a better place for this question? I'm building a new application which needs Nginx to bind to UDP port 10000. If this were a TCP port for HTTP/S then I'd just add it to the ...
8
votes
2answers
20k views

What does 0.0.0.0:* mean in netstat?

Could anyone explain the following output of netstat -plunt? udp 0 0 0.0.0.0:58262 0.0.0.0:* 1163/avahi-daemon: udp 0 0 0.0.0.0:17500 0.0.0.0:* 3779/...
0
votes
0answers
30 views

Linux Kernel Holding Packet?

I've been looking at a 3rd party program for DNS resolution (on an embedded solution) and in the code to send the DNS query to the upstream server it will connect() then send(). send() returns with ...
0
votes
0answers
145 views

Outgoing packets from linux: Packets seen in tcpdump but not on destination

I observed that UDP packets are sent by using tcpdump; also, the sending process didn't cause any error when sendto() was called. However, on the destination host (which is within the same subnet) the ...
0
votes
1answer
83 views

ncat stops listening after 100 UDP packets

I'm continuously sending packets to a UDP server after 1 second. To listen for UDP packets: ncat -klup 1234 --sh-exec "cat > /proc/$$/fd/1" However, after printing 100 packets, nothing else ...
0
votes
1answer
238 views

Is there a way in linux to increase the MTU size of a Broadcast interface on linux to be able to send bigger UDP packets?

I am broadcasting UDP packets on a Bcast:192.168.1.255 of a wlan0 interface on linux. Its working well and I am receiving an UDP client written on another machine. I learnt that I cannot send a UDP ...
0
votes
1answer
247 views

Ip address is of 32 bit, which means 4 bytes. Yet all answers to question on 13 root dns servers say otherwise [closed]

All of the articles I read that explains why there are 13 root dns servers saying each ip address takes 32 bytes and hence (13 x 32) = 416 bytes leaving up to 96 bytes for other protocol information. ...
3
votes
0answers
208 views

netcat -s switch does not work or do anything at all

I have a computer with a NIC with two ports and a switch between them, and I'm trying to send data from one port to the other using netcat. I thought I could simply specify the source address (i.e. ...
2
votes
1answer
1k views

High network latency after incoming UDP bursts [closed]

This has been crossposted to https://forum.rocketboards.org/t/high-network-latency-after-incoming-udp-bursts/1266 I have an application sending UDP packets over a RAW socket (defining ETH, IP and UDP ...
1
vote
1answer
970 views

Setting up UDP packets to two different destinations using iptables and PREROUTING

I am trying to send a UDP on a packet to two different external/remote IPs using iptables. Currently I am running a command that looks like this: iptables -t nat -A PREROUTING -i eth0 -p udp --dport ...
1
vote
1answer
771 views

/dev/tcp/host/port, /dev/udp/host/port what kernel module is this?

I noticed this in the bash(1) man page. Is there an operating system or certain kernel module that provides this interface? Tried it on my Debian installation and these devices do not exist. ...
1
vote
1answer
447 views

IPTABLES does not drop incoming DNS packets

I got an Ubuntu 19.10 VPS server which is serving some users for a certain monitoring traffic. Users connect, read a file and disconnect. Recently I noticed the aforementioned server is being used in ...
3
votes
0answers
497 views

UDP Multicast not seen on PiZero with Raspbian

Looking for help troubleshooting my missing UDP Multicasts. Some background... So I finally got an Amazon Echo and was playing with fauxmo on my PiZero to see if Alexa could find my device, but she ...
2
votes
3answers
542 views

How to scan my computer's UDP ports

What command can I use to port scan UDP? I hear that UDP scanning has some specific issues, that do not apply to TCP scanning. I tried running sudo nmap -p0-65535 -sU 192.168.1.97. But it has been ...
0
votes
4answers
902 views

Is any solution to make interactive TCP/UDP server under Linux?

I need some tool like this one (called "TCP Test Tool") for Linux. I need not a GUI (i.e. GUI/CLI -- this is not so important), but I need to be able to make a server which can listen at any port, ...
0
votes
1answer
386 views

iptables: Wrong destination-IP of duplicated UDP packet

I have the following setup: A data source (IP 192.168.178.1) sends UDP packets to a server. Server (Debian) collects and processes UDP data (IP 192.168.178.10, port 4000) PC (Windows 10) is supposed ...
0
votes
0answers
212 views

How to use a SOCKS5 Proxy in Unix

I have a python bot which works on UDP Protocol. I know that only SOCKS5 Proxies support UDP, but how do I use them? I have seen many tutorials but they're using ssh to connect to remote and that's ...