I want traffic from a Chromecast with Google TV (CCwGTV) to go through a RPi that I have placed on another network. Basically, I want so that it appears that the CCwGTV is located at the other network. The RPi is connected to my local network through a WG tunnel.
I only want certain applications traffic to be routed through the RPi using the possibility to list IncludedApplications in the WG config on CCwGTV. So I want to have a WG tunnel from the CCwGTV to the RPi. However, the RPi is behind a NAT so to expose the RPi to the CCwGTV it has to go through my OpenWRT router.
Unfortunately, I cannot get the CCwGTV to connect to the RPi through WG and I need some help to understand why. I am able to ping the RPi from the CCwGTV.
Unfortunately the WG application on android TV does not allow me to view the logs like on the regular android version. And raspian does not seems to allow dynamic debugging. So I am not sure why they never establish any connection.
Do you see them arriving at RPi?
If they arrive but no response is sent back, I'd create a second wireguard interface to listen to a different port for the TV.
I finally got it to work. While I tried creating a second interface I could see that the packets arrived to the RPI but no handshake so I figured something was wrong with the keys. So I triple-checked my configuration files without seeing anything obvious and in the end I decided to completely redo them all. And after that I had no problem connect them to each other on another interface or on the same as interface as my first post.
I guess that some bad character with wrong encoding or something must have snuck in when I copy-pasted cause I couldn't see anything wrong with my eyes at least.
For anyone else looking to do the same as I, dont forget to enable ip forwarding (net.ipv4.ip_forward=1) on your RPI or equivalent device.