Monitor network activity in Android Phones

I would like to monitor network traffic of my Android Phone. I was thinking using tcpdump for Android, but I'm not sure if I have to cross-compile for the phone. Another question is the following,...

How can I prevent RuntimeError("Unable to create a new session key.")?

A client's Django application is intermittently (about twice a day) throwing RuntimeError("Unable to create a new session key."): Traceback (most recent call last): File...

Streaming on UDP

I have the following issue here: I want to write a server streaming data on a UDP socket on a specific port, and clients should be able to connect to it and receive the data that is being sent out...

Play 2.1.0 + Apache 2.2 Reverse proxy => 502 proxy error when idle

Config We have a play 2.1.0 with angularjs setup in a production mode. We have reverse proxy load balancer setup with apache 2.2 something like mentioned in...

Can reading sessions from a pcap file with Scapy be made more memory efficient

At the moment I'm trying to write a quick Python program that reads in a .pcap file and writes out data about the various sessions that are stored in there. The information I write out includes...

reading a tcpdump file with C++

Actually I'm trying to capture trafic with TCPdumpand redirect result in a file (.pcap) my first problem is how to read MAC address IP address and Signal strenghfrom the .pcap using C++. Second...

Understanding Ryu OpenFlow Controller, mininet, WireShark and tcpdump

I am a newbie to OpenFlow and SDN. I need help setting up the Ryu OpenFlow controller on a Ubuntu or Debian machine and understand a basic Ryu application. Note: this question already has an answer.

How to log every http.request made in Node

I want log every http request being made by a particular node app, and all of its modules. Wrapping requests in a function could work for all non-module code, the disadvantage would obviously be...

why the leading 4bytes data missing when sending raw bytes data to a tap device?

i'm learning the tun/tap device of linux, there is a little problem i cannot figure out here is what i've done: 1: create a tap device, name is "tap1", get the file descriptor: tapfd 2:...

why ack packed don't have sequence number when three hand shark?

I use the tcpdump to watch the three-way handshake. the client port is 51484 and server port is 9501 //connect to server //three-way handshake 51484 > 9501 : Flags [S], seq 2969626801 9501 >...

Nginx UDP load balance transparent proxy source IP

I've setup an nginx load balancer on AWS to forward UDP packets to a range of radius servers (UDP:1812). I'm struggling to get the transparent mode working - proxy_bind... properly. I need the...

Bash broken pipe with tcpdump

I use the following command to send pinging IP's to a script: sudo tcpdump -ne -l -i eth0 icmp and icmp[icmptype]=icmp-echo \ | cut -d " " -f 10 | xargs -L2 ./pong.sh Unfortunately this gives...

How to resolve java.sql.SQLRecoverableException: IO Error: Connection timed out

We have 13 application servers out of which for one application server when we are starting tomcat we are getting the SEVERE: Unable to create initial connections of pool....

MariaDB server times out client connection after 600 seconds

My MariaDB server is timing out my C++ client (using libmariadb) after 600 seconds (10 minutes) of inactivity, and I'm not sure why, because I can't find any configured timeouts that specify that...

NGINX 408 timeout (reading client request headers)

I'm working on a server that is receiving requests from IoT devices. They perform a HEAD request on boot. Unfortunately, it seems there's something wrong with the headers. NGINX access...

How does requests' stream=True option streams data one block at a time?

I'm using the following code to test how many seconds an HTTP connection can be kept alive: start_time = time.time() try: r = requests.get(BIG_FILE_URL, stream=True) ...

Packet capturing in l3fwd

I am performing a dpdk experiment. In my setup, I have two physical machines, Host1 and Host2 with 2 10Gbps NICs on each. One interface of Host1 is bounded with dpdk and generating traffic using...

Wireguard: how to log network activity?

How to enable network activity logging in wireguard? I searched for ways to view the logs on the server but don't see anything under /var/log. As it's running as a systemd service I can see some...

Capturing PTP packets with Linux raw socket

I want to implement a C program that captures all the Precision-Time-Protocol (PTP) frames on the Ethernet, so I created a raw socket and attached a filter for PTP, I use recvmsg() to read data...

Nginx proxy_bind failing

I'm attempting to configure nginx to reverse proxy requests from (192.168.0.2:12345) the same Internal Host Address that it's listening from (192.168.0.2:443) on separate ports using the listen...

Troubleshooting ffmpeg/ffplay client RTSP RTP UDP * multicast * issue

I'm having problem with using udp_multicast transport method using ffmpeg or ffplay as a client to a webcam. TCP transport works: ffplay -rtsp_transport tcp...

Kubernetes NFS PV: Lock reclaim failed

Configuration: NFS server and the k8s cluster(single node cluster) run on two machines and use the same OS and NFS software, as below: [[email protected] ~]# yum info nfs-utils Failed to set locale,...

Snort 3.0 Error: Could not find requested DAQ moduel: pcap

I am trying to install Snort 3.0 on an Ubuntu 20.04 desktop. I'm using the manual as a guide for this install. Everything went well and it seems the install went fine, however, at page 6, to test...

Docker Swarm Overlay Network ICMP Works, But Not Anything Else

I have a small 1-manager, 3-worker cluster setup to pilot a few things. It is running swarm orchestration and is able to spin up services across the cluster from any stack yaml and serve the...

tcpdump filter out arp and all stp packets

I need to capture on an interface with tcpdump and filter out all arp and stp/rstp packets. I tried this command, which does filter out arp, but I still see rstp packets: tcpdump -n -i ens224 not...

Curl (56) Recv failure: Connection reset by peer [TCP Retransmission]

Network topology PC1: Env: Centos 8.2 Linux compute-31 4.18.0-240.22.1.el8_3.x86_64 #1 SMP Thu Apr 8 19:01:30 UTC 2021 x86_64 x86_64 x86_64 GNU/Linux IP: 10.0.0.31 ping is ok [[email protected]

Why does Linux sometimes hold back a UDP packet during receiving? (until next incoming UDP packet resolves that)

The problem is: Sometimes tcpdump sees that the receiving of a UDP packet is held back until the next incoming UDP packet, although the network tap device shows it goes without delay through the...

Svelte/Sveltekit and socket.io-client not working in dev (works in preview)

I'm trying to make socket.io-client work in a svelte front end app to talk to an existing API server that already uses socket.io. After a number of challenges, I managed to make this work but I...

Capturing traffic of two hosts in Mininet with Python

I currently have two hosts which run a client and server Python program which send TLS traffic to one another - I have tested this outside of mininet to confirm it works (and it does!). However,...

Broadcast(255.255.255.255) not received

I have a list of devices on the network that I send discovery messages to them(on 255.255.255.255) and then they reply me with broadcast message as well(on 255.255.255.255 also). I have multiple...