The Unbound logs show the request with the clients VPN IP address as the source.The logs of the Nginx proxy server show the WAN address from the location I al at even though I am connecting trough the VPN tunnel.
Yeah, so the requested host probably resolves to the WAN IP. But the WAN IP, which is the VPN client connected to is not routed via the VPN and cannot be due to plausible reasons.
IPv4 Route Table===========================================================================Active Routes:Network Destination Netmask Gateway Interface Metric 0.0.0.0 0.0.0.0 192.168.101.227 192.168.101.196 50 0.0.0.0 128.0.0.0 10.10.102.1 10.10.102.66 257 10.10.102.0 255.255.255.0 On-link 10.10.102.66 257 10.10.102.66 255.255.255.255 On-link 10.10.102.66 257 10.10.102.255 255.255.255.255 On-link 10.10.102.66 257 86.83.115.52 255.255.255.255 192.168.101.227 192.168.101.196 306 127.0.0.0 255.0.0.0 On-link 127.0.0.1 331 127.0.0.1 255.255.255.255 On-link 127.0.0.1 331 127.255.255.255 255.255.255.255 On-link 127.0.0.1 331 128.0.0.0 128.0.0.0 10.10.102.1 10.10.102.66 257 192.168.1.0 255.255.255.0 10.10.102.1 10.10.102.66 257 192.168.101.0 255.255.255.0 On-link 192.168.101.196 306 192.168.101.196 255.255.255.255 On-link 192.168.101.196 306 192.168.101.255 255.255.255.255 On-link 192.168.101.196 306 224.0.0.0 240.0.0.0 On-link 127.0.0.1 331 224.0.0.0 240.0.0.0 On-link 10.10.102.66 257 224.0.0.0 240.0.0.0 On-link 192.168.101.196 306 255.255.255.255 255.255.255.255 On-link 127.0.0.1 331 255.255.255.255 255.255.255.255 On-link 10.10.102.66 257 255.255.255.255 255.255.255.255 On-link 192.168.101.196 306===========================================================================Persistent Routes: None
[26/Sep/2024:15:29:50 +0200] - - 403 - GET https xxx.xxx.xxx "/favicon.ico" [Client 88.25.93.196] [Length 171] [Gzip 3.23] [Sent-to OPNsense.home.arpa] "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/129.0.0.0 Safari/537.36" "https://xxx.xxx.xxx"[26/Sep/2024:15:30:02 +0200] - 200 200 - GET https xxx.xxx.xxx "/" [Client 10.10.102.42] [Length 1114] [Gzip -] [Sent-to OPNsense.home.arpa] "Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/129.0.0.0 Safari/537.36" "-"
2024-09-26T15:30:02 Informational unbound [74769:5] info: . transparent 10.10.102.42@2194 xxx.xxx.xxx HTTPS IN 2024-09-26T15:30:02 Informational unbound [74769:1] info: . transparent 10.10.102.42@33102 xxx.xxx.xxx. A IN 2024-09-26T15:29:45 Informational unbound [74769:7] info: . transparent 10.10.102.15@58573 xxx.xxx.xxx. A IN 2024-09-26T15:29:44 Informational unbound [74769:5] info: . transparent 10.10.102.15@55439 xxx.xxx.xxx. A IN
And here are the Unbound logs where twice the VPN IP is logged. The only difference I see is twice and A for the laptop and A plus HTTPS for the phone.Code: [Select]2024-09-26T15:30:02 Informational unbound [74769:5] info: . transparent 10.10.102.42@2194 xxx.xxx.xxx HTTPS IN 2024-09-26T15:30:02 Informational unbound [74769:1] info: . transparent 10.10.102.42@33102 xxx.xxx.xxx. A IN 2024-09-26T15:29:45 Informational unbound [74769:7] info: . transparent 10.10.102.15@58573 xxx.xxx.xxx. A IN 2024-09-26T15:29:44 Informational unbound [74769:5] info: . transparent 10.10.102.15@55439 xxx.xxx.xxx. A IN
1 1757 ms 308 ms 11 ms hsjameosplaya.net [172.16.0.1] 2 283 ms 33 ms 444 ms 192.168.144.1 3 20 ms 208 ms 23 ms 229.red-81-41-250.staticip.rima-tde.net [81.41.250.229] 4 185 ms 864 ms 185 ms 254.red-81-41-250.staticip.rima-tde.net [81.41.250.254]
1 89 ms 13 ms 199 ms 172.16.0.1 2 16 ms 95 ms 21 ms 192.168.144.1 3 438 ms 273 ms 925 ms 229.red-81-41-250.staticip.rima-tde.net [81.41.250.229] 4 1994 ms 1068 ms 501 ms 254.red-81-41-250.staticip.rima-tde.net [81.41.250.254]