Okay, so here's the deal. I have two PCs setup for gaming. One is specifically for streaming, and the other is just for gaming. In order to get the video output from the gaming PC to the streaming PC, I use the NDI plugin with OBS Studio, which allows me to output video via an ethernet cable to my streaming PC, where that video is then received, processed, and sent to Twitch, YouTube, or wherever. The way I have the network setup, is I have my gaming laptop connected to my streaming PC via a crossover cable, and then I have my gaming computer connected to my ap via a (different, obviously) ethernet cable. The problem is, from my laptop, I can only access the internet if I use Wi-Fi (since my laptop only has one ethernet port, unlike my streaming PC), and Wi-Fi is not ideal for gaming. So, I would like to find a way to allow my streaming PC to act almost like a switch, and allow any traffic not destined for it (i.e. the gaming traffic, and not the NDI traffic) to automatically get forwarded to the AP as if it were directly connected, therefore allowing my gaming laptop to access both the internet and send its screencapture through the ethernet cable. I have been playing around with the routing tables for the past hour, and can't quite get it to work. I am running Windows 10 on my gaming PC, and a debian-based linux distro on my streaming PC. Any help would be greatly appreciated! Thanks!
Edit: I understand that using a simple switch would be the easiest solution, but I would still like to know how to make it work the way I originally mentioned, for learning sake. So for now, let's assume I only have the two PCs, one crossover cable, and one patch cable connected to the AP. Thanks!
/proc/sys/net/ipv4/ip_forward
.