I installed OpenWrt in a VMware virtual machine and want it to proxy all the traffic from host machine.
The configuration is below:
For VM: two VMnets:
- VMnet0: bridging to the WiFi card
- VMnet8: NAT, with subnet 192.168.240.0, and untick the "Use Local DHCP service to distribute IP address to VMs".
For Host Machine :
- WiFi properties: uninstall ipv4 & ipv6
- VMnet8:
IP address : 192.168.240.3
Subnetmask 255.255.255.0
Default gateway / DNS : 192.168.240.2
For OpenWrt settings:
Set IP address as 192.168.240.2
Close DHCP service for all interface.
192.18.0.99 is the proxy service from openclash.
/etc/config/network
/etc/config/firewall
>route print
This will have Internet access to all the websites except Microsoft services, but it can be accessed through the web browser (but cannot log in in Word, do windows update ).
The Wi-Fi Status will say Not connected to Internet. But in VMnet 8 , it will have Internet connectivity for ipv4. Is this why I see Not connected message?
PS C:\Users\***> tracert word.office.com
Tracing route to word.office.com [198.18.0.99]
over a maximum of 30 hops:
1 <1 ms <1 ms <1 ms 192.168.240.2
2 2 ms 2 ms 2 ms 192.168.0.1
3 3 ms 3 ms 3 ms 192.168.1.1
4 6 ms 6 ms 5 ms 111.176.***.1
5 12 ms 13 ms 14 ms ***.50.***.9