[SOLVED] Routing to guest's bridged adapter
Posted: 3. Apr 2020, 18:41
Hi.
I have a network configured like this:
Wifi Router: 192.168.1.1
PC A (Linux): 192.168.1.10 - connected to router via Ethernet
PC H (HOST - Windows 10): 192.168.1.11 - connected to router via WiFi
- PC G (VirtualBox GUEST - Linux) - configured bridged adapter with host's wifi adapter - 192.168.1.20
Then I installed nginx server to PC G to test this, I turned off firewalls. On PC A I type 192.168.1.20 into browser -> I see nginx welcome page. I can see packets flowing in wireshark running in PC G (guest).
So far so good! That's what I wanted
The problem: I want to route traffic for some IPs through PC G (Guest)
I added routing rules for specific IPs to the Router. I added
Dest: 10.0.0.0 Mask: 255.0.0.0 GW: 192.168.1.20 Enabled
Now when I type 10.1.1.1 on PC A, I can see correct packets (source IP 192.168.1.10; dest IP 10.1.1.1) flowing in Wireshark running on PC H (host, 192.168.1.11) but not in Wireshark running in PC G (Guest, 192.168.1.20) - which is strange.
I am not sure if this is some configuration problem, which seem unlikely for me, but networking isn't my bread, or Windows problem or VirtualBox problem. Or maybe a router problem? Tp-link TL-WDR4300. Should I try to install ddwrt on the router and try it then?
Thanks.
Regards
G.
I have a network configured like this:
Wifi Router: 192.168.1.1
PC A (Linux): 192.168.1.10 - connected to router via Ethernet
PC H (HOST - Windows 10): 192.168.1.11 - connected to router via WiFi
- PC G (VirtualBox GUEST - Linux) - configured bridged adapter with host's wifi adapter - 192.168.1.20
Then I installed nginx server to PC G to test this, I turned off firewalls. On PC A I type 192.168.1.20 into browser -> I see nginx welcome page. I can see packets flowing in wireshark running in PC G (guest).
So far so good! That's what I wanted
The problem: I want to route traffic for some IPs through PC G (Guest)
I added routing rules for specific IPs to the Router. I added
Dest: 10.0.0.0 Mask: 255.0.0.0 GW: 192.168.1.20 Enabled
Now when I type 10.1.1.1 on PC A, I can see correct packets (source IP 192.168.1.10; dest IP 10.1.1.1) flowing in Wireshark running on PC H (host, 192.168.1.11) but not in Wireshark running in PC G (Guest, 192.168.1.20) - which is strange.
I am not sure if this is some configuration problem, which seem unlikely for me, but networking isn't my bread, or Windows problem or VirtualBox problem. Or maybe a router problem? Tp-link TL-WDR4300. Should I try to install ddwrt on the router and try it then?
Thanks.
Regards
G.