47,510 questions
-1
votes
0
answers
23
views
FreeRADIUS RadSec TCP connections plateau around ~500 per instance [closed]
We are benchmarking RadSec (TCP/TLS) connections against a single FreeRADIUS instance and observing a consistent connection ceiling.
FreeRADIUS (version 3.2.8)
Running in Kubernetes (single pod)
~...
Advice
1
vote
0
replies
36
views
Designing a host-authoritative multiplayer architecture (similar to Mini Militia)
Body
I’m currently working on a capstone project where we are building a local multiplayer mobile game (Wi-Fi / hotspot based). I designed the following system architecture inspired by the host-...
1
vote
0
answers
87
views
Linux kernel netdev: module_param deprecated
I am working on a linux kernel tcp congestion control module and was using the module_param macro to get some runtime configurable parameters.
When submitting to the netdev mailing list, the automated ...
Best practices
0
votes
7
replies
80
views
How to(do I) write a network data consumption monitoring program that monitors all system processes and has control over them?
How do I write a program that alerts me when any app connects to the internet on Android or Windows?
My problem is my data subscription is getting drained. I don't know what apps are sucking it.
I can ...
Best practices
1
vote
6
replies
129
views
How to implement smooth synchronization of the predicted position with the authoritative one while maintaining instant response?
P5js is used for rendering.
It's a bit long, so if anything's unclear, just ask me.
This is the best result I've achieved, but the response is terrible and hasn't eliminated the jerking (it just ...
Advice
1
vote
5
replies
132
views
How to map domain names to IP addresses in real-time using WinDivert for traffic shaping (C++)?
I’m working on a personal project that limits or slows down access to certain websites. The idea is to introduce artificial network delay for selected sites to reduce time spent on them.
I’m ...
Advice
1
vote
3
replies
87
views
Transparently send RDS traffic via an EC2 instance
Hey AWS / Postgres folks,
Running into a tricky situation.
Clients currently connect directly to my RDS Postgres endpoint using the usual host/user/password. Now I need every connection to first pass ...
Advice
0
votes
2
replies
63
views
Network Interface Configuration (inside docker)
I'm currently running a docker setup inside a NVIDIA orin dev board
in that I have to configure the network interface through my cpp application
I have tried using nmcli , ioctl , ect. In that most ...
Best practices
0
votes
1
replies
51
views
How would one go about doing highly specific IP routing?
My problem is that many different IP addresses are pointing to the same device, each with a different route they take. Some are tunneled, whereas some are direct over LAN, and so are faster.
My ...
Tooling
0
votes
7
replies
107
views
Is it possible to create service/GUI to be able to monitor rate of communication and provide evaluation between servers and hardware?
I have a case where I am using a virtual machine which is Windows Server and have couple of C# services communicating with hardware devices using for example Advantech and then connects to readers. In ...
-1
votes
1
answer
119
views
GetIsNetworkAvailable() behaves differently depending on .NET version
We have a project using following function call:
var isNetworkAvailable = NetworkInterface.GetIsNetworkAvailable();
On a Win11 LTSC (W11 IoT Enterprise LTSC) test unit with no network connection (...
Best practices
0
votes
7
replies
152
views
Best way to get the name of the current interface
I want to get the current interface name in order to obtain its MAC address for use when sending UDP packets. It's unlikely that I will be able to obtain the MAC address from the packet because I do ...
0
votes
1
answer
95
views
Scapy does not recognize IP-in-IP encapsulation
I need to manipulate pcap with some packets that are IP-in-IP encapsulated. Wireshark/tshark readily shows encapsulation:
However, scapy can't see encapsulated packet (IP layer):
Wireshark shows ...
Advice
0
votes
1
replies
123
views
How to use nftables to NAT a range of IPs when forwarding between interfaces
I currently have a WireGuard VPN (interface wg0) running on a linux device, which is used to allow access to other devices on a given interface remotely - say eth0.vlan1. I already have a working ...
Advice
0
votes
2
replies
99
views
What's the fastest and most reliable way to aggregate ipv4 addresses into CIDRs in Go?
I have an array of ipv4 addresses (over 750k addresses).These IPs have so long been stored in hash:ip ipset of Linux through the Go application.
I want to reduce this to shortest (if that's a good ...
-2
votes
1
answer
101
views
How to create a TCP packet bigger than 64KB and save it in a pcap file?
Edit: theoretically maximum size of a packet is 64KB. However, broken or not, such packets do happen in practice on some more exotic network hardware.
For purpose of testing a network device I need to ...
2
votes
2
answers
91
views
Unity TCP client works on Windows but not on Android (same Wi-Fi network)
What I want to ask is this:
When running the server code in Visual Studio and the client code in Unity on Windows, the server successfully receives responses from the client.
However, when running the ...
0
votes
0
answers
42
views
Trying to get a PS script to monitor and log NIC connection drops [duplicate]
I want a simple Powershell GUI, to have the local computer let me know when any of its NICs drop connection. The results should be a .csv file, stored in a folder named NIC_Drops, located in the root ...
4
votes
1
answer
333
views
sending packet with AF_XDP socket failing, increments tx_ring_empty_descs
I'm currently trying to figure out how to use an AF_XDP socket without relying on libxdp as I want to learn how it works under the hood. I'm having an issue where the packet is seemingly getting ...
2
votes
1
answer
102
views
Handshake fails with RST after destination address modification of TCP packets in Netfilter hooks
I am implementing a destination NAT-like behavior by hooking into NF_INET_PRE_ROUTING and NF_INET_LOCAL_OUT to modify the destination IP address and recalculate the checksums.
nf_tracer_handler(void *...
3
votes
1
answer
265
views
Unexpectedly poor performance of io_uring for multiple TCP socket writes
I am looking for some guidance on using io_uring for high-fan-out TCP writes.
I have a Rust application that waits for an event in a tight loop. Whenever the event occurs, the same payload needs to be ...
Advice
0
votes
1
replies
68
views
Why is the WSL (Nat) able to reach to Vmware (Nat)?
Thank you all for reading my post in advance.
So I have my VMware Virtual machine (Nat) which is listed as below:
huang@ubuntu:~$ ip route show default
default via 192.168.189.2 dev ens33 proto ...
2
votes
1
answer
130
views
Network namespace MTU setting in C vs the 'ip' utility with big Ethernet frames
I have this Linux C project that (among others) sends (bigger than 1500 bytes) raw Ethernet frames between network interfaces of different processes. I have a bunch of system tests where this ...
Advice
0
votes
2
replies
87
views
How to make devices discover each other using WIFI
What's the best way to allow programs to discover each other on the network?
Let's say we are writing a system that tracks the usage of computers over the network.
We have an agent program that sends ...
2
votes
1
answer
65
views
Node JS AXIOS Client fail to send request to Internet
What I try that works:
npm "request" package works fine in the Node JS backend, however request is a deprecated package with security problem. I don't feel like to keep using it.
request({
...
Advice
0
votes
0
replies
67
views
nvim server to use nvim as godot editor
I am trying to use nvim as the external editor for Godot, with GDScript.
I have found a decent amounts of post explaining how to do it, so I have some idea on how to do it.
No solutions perfectly fit ...
2
votes
0
answers
124
views
Performing Peer - Peer connection with Turn server
I'm writing an application for a peer to peer service with a TURN server, but I'm struggling to construct one. If my understanding is correct, there are three steps needed for a successful peer to ...
Advice
1
vote
2
replies
200
views
Turning off buffering in k8s nginx ingress greatly increases client side latency and streaming in downstream
I have the following architecture:
Browser App (React) -> Nginx K8S Ingress -> Streaming Service A (Kotlin, POD) -> Streaming Service B (Java,POD)
From the browser I upload a json array of ...
-4
votes
1
answer
98
views
Code says 'pkt' is not defined but the tutorial I'm following doesn’t have this issue [closed]
I'm working on a project about VPN tunneling, I've been following along with this example (https://www.youtube.com/watch?v=t_VmiXNWKkk&list=WL&index=2&pp=gAQBiAQB). The guy demonstrates ...
3
votes
1
answer
83
views
Parsing MySQL Client Handshake response message
I'm trying to parse the Handshake response packet from MySQL client/server protocol
For the task I'm connecting to the application via mysql cli client:
mysql --version
mysql Ver 9.5.0 for macos15.4 ...
2
votes
2
answers
119
views
Database connection failing as soon as the parent ssh shell is terminated, even though I backgrounded and disowned
Alright, so bear with me. This took me an entire day to dig into.
what I'm doing
I'm running a C program on a remote host over SSH. The program calls a local redis database IP and port and also 8.8.8....
0
votes
0
answers
96
views
Android: Video streaming in WebView not working on certain devices (Yacine TV APK)
I am developing an Android app similar to Yacine TV that streams video content using a WebView. However, on some devices running Android 12 and 13, the video player shows a black screen while the ...
0
votes
0
answers
98
views
How to disable automatic radiotap header insertion in raw sockets?
I’m working on a tool using raw system sockets.
The tool needs to send packets with low-level protocols such as IEEE 802.1X.
When I inspect the packets in Wireshark, I notice that the radiotap header ...
Advice
1
vote
1
replies
89
views
Why don't we use HTTP for everything instead of SMTP?
We can fully emulate SMTP with current technology. Clearly, I can send a JSON containing the title, the body, and any other email information. The forwarding and replying mechanism can just be regular ...
0
votes
1
answer
93
views
WriteFile failure when networkshare is disconnected
I have a win32 app opening a log file on a network share using CreateFile and WriteFile (non overlapped) to write records. What I am seeing when the network share is lost, WriteFile reports an error (...
Advice
0
votes
6
replies
239
views
The feasibility of creating a small-scope 3D multiplayer game using C and Vulkan
I come seeking advice.
I'm attempting to make a game with C and Vulkan (no engine). It will be low scope. It has a low-mid poly aesthetic, fairly involved mechanics, and will be multiplayer, ...
2
votes
1
answer
142
views
Sending raw packets back to host's networking stack
I'm writing a TCP/IP stack for embedded systems, but I wanted to test it on my host system.
Originally I tried with tap0 + a bridge. But I quickly realized it would make the most sense to bind to the ...
0
votes
0
answers
85
views
Socket TCP connection through Radmin (can't connect) in Console Application
I made a simple console messenger to test the possibility of connecting 2 or more computers for my game using RadminVpn+Sockets but its not working. I can connect to myself using my radmin ip but if I ...
0
votes
0
answers
93
views
How can I capture and inspect outgoing HTTP requests from a Flutter WebView or video player?
I'm developing a Flutter app that loads a web page containing an embedded video player.
When the page loads, the browser internally makes several HTTP requests (for example, .m3u8 or .ts files), but I ...
0
votes
0
answers
58
views
How to achieve complete read/write thread separation for BoringSSL using BIO APIs
I'm integrating BoringSSL into my networking library for secure communication. I've observed that both SSL_read() and SSL_write() operations can potentially trigger both read and write activities on ...
3
votes
2
answers
253
views
How to make system proxy settings apply to HttpClient.GetAsync() without restarting Windows?
We use the following function to test internet connectivity every 5 seconds. But in some part of the world, this function always returns false. Now, the problem is we can set a proxy server in Windows ...
0
votes
0
answers
91
views
C++ pcap ARP Spoofing Packet Issue: IP/MAC Addresses Not Recognized
I am working on an ARP spoofing project using C++ and the WinPcap library. I have an issue where two seemingly identical methods of constructing the ARP packet result in different behaviors in ...
0
votes
0
answers
92
views
Can a process read/write a TAP device file descriptor after changing network namespaces?
I am working on a C++ program on Linux that involves interacting with network namespaces (netns) and a TAP device.
My procedure is as follows:
My process starts in an initial network namespace (e.g., ...
1
vote
0
answers
30
views
Reusing socket which failed to connect with timeout seems bad - is it documented somewhere? [duplicate]
Briefly: is the requirement to re-create TCP socket after it failed (e.g. on timeout) documented in some official manual, guide etc?
In details:
Some code I stuck upon is faulty in the following way:
...
-1
votes
1
answer
104
views
Seastar: per-shard TCP listeners not binding or exiting silently on non-0 shards
I’m trying to start a per-shard TCP listener in Seastar, where each shard binds to its own port (6010 + shard_id). On shard 0, everything works — the listener binds and accepts connections fine. But ...
0
votes
0
answers
142
views
MQL5 SocketConnect fails with error 4014 connecting to local TCP server
I’m developing an MQL5 Expert Advisor that should connect to a local TCP server (127.0.0.1:5001).
The server is running and responds correctly to Telnet.
In MetaTrader, I added 127.0.0.1:5001 in ...
0
votes
1
answer
219
views
Decrypting data from stream without knowing data size
Assuming we know the key and the IV for the data we're getting from the stream, is it possible to decrypt it within stream? I encrypted the same message three times and then decrypted it all at once, ...
-1
votes
1
answer
61
views
How to connect to Dask Gateway Server from inside a Docker container?
I have a method that connects my app to a Dask Gateway Server
def set_up_dask(dashboard=False, num_workers=4, min_workers=4, max_workers=50):
gateway = Gateway("http://127.0.0.1:8000")
...
3
votes
1
answer
230
views
Understanding socket() function args
I need to use socket() but the args given to the function make me confused.
I have to do an school exercice where I have to use socket for intercept ethernet frame (more specifically arp spoofing).
...
0
votes
0
answers
139
views
My transparent TCP/UDP proxy with NFQUEUE + WinDivert dont work
I have a transparent proxy that works by spoofing addresses and ports, but for some reason it's not working. On a Debian 12 amd64 server, I used iptables -t mangle -A PREROUTING -j NFQUEUE --queue-num ...