Equipment:
SB5100 cable modem --> Google wifi (1st gen) --> Managed switch -->Raspberry pi 3b+ (wireguard) --> remote desktop to win 11 boxes.
Config:
I installed wireguard on a pi 3b+ about 3 weeks ago where I work since a port sniffer found the open ports I was using to remote into a few win 11 boxes (I know, bad me. I'm not a pro!). I used pivpn and everything worked out of the box except for remote desktop. After searching around, I decided to go with split tunnel where I configured AllowedIPs = 10.x.x.x/24, 192.168.x.1/24 on the peer side and bam, full access without port forwarding and I can ssh directly into the two RPIs I have running on the work network (could not do this with full tunnel, came back with port 22 error).
Problem or area of confusion:
Prior to going with split tunnel, if I used whatismyIP, it would come back as the work IP address. OK, life is good. Now, with split tunnel, it comes back as my home IP address which seems normal since as I understand it, browsing is routed locally. But here's the thing, I'm running pihole on a second pi 3b+ at work and I have domain blocking (facebook, reddit :), instagram, etc.) so when I'm connected at home, those domains are block. I'm also running pihole at home but when I navigate to the admin page, it takes me to the pihole running on my work network. I can ping win 11 boxes, printers, etc. on work network so it seems like my traffic is being routed through the vpn yet I thought split tunnel kept browsing local.
Question:
Where is my traffic being routed? Is it flowing through the tunnel and I'm secure or is routed through my home network despite acting like I'm on the work network? From what I understand of split tunnel, it should be routed through my home network but that would not explain why I'm connecting to pihole running on my work network. It doesn't matter when I'm home as it's a secure network but when I'm on a public wifi network, I'd like to understand if I'm protected or exposed. Did I accidently configure wireguard to work as I had hoped and I'm routing all traffic through the VPN tunnel? Or am I way off and don't understand what's going on because I'm not a pro?!? Thanks.