ver Apr23rdv2

updated explanation of proxy setting on Windows
This commit is contained in:
David Chang
2024-04-23 23:31:51 +08:00
parent ff9a9ac669
commit e36304dcbe
6 changed files with 28 additions and 4 deletions

View File

@@ -49,7 +49,7 @@ On Windows, if you have administrative privilidge, you can simply run the
following command in a `cmd` window with admin privilidge.
```bat
netsh interface portproxy add osworld_proxy listenaddress=192.168.108.1 listenport=1080 connectaddress=127.0.0.1 connectport=1080
netsh interface portproxy add v4tov4 listenaddress=192.168.108.1 listenport=1080 connectaddress=127.0.0.1 connectport=1080
```
Or if you haven't got administrative privilidge, you can use `ncat` bundled in
@@ -79,7 +79,7 @@ Set an appropriate proxy mode. Usually, use "Manual" mode, and set the correct
IP addresses and ports. The IP address should be the host machine IP noted in
the previous step.
Then you can open a chrome page to check if the proxy works normally.
Then you can open a chrome page to check if the proxy works well.
###### Configuration by Command Line
@@ -110,12 +110,30 @@ vmrun -T ws runProgramInGuest /path/to/vmx/file /usr/bin/gsettings set org.gnome
###### Configuration by GUI
<!-- TODO -->
Open system network setting in the VM.
![open setting](assets/winnetsetting1.png)
![open network setting](assets/winnetsetting2.png)
Then, click on "Proxy".
![proxy setting](assets/netsetting3.png)
Switch on "Use a proxy server" and type in the correct proxy configurations.
![proxy setting](assets/netsetting4.png)
Finally, remember to click on "Save".
Note only HTTP proxy is supported. Subsequently, you can open a chrome page to
check if the proxy works well.
<!--
###### Configuration by Command Line
If configuration by GUI is not suitable for you, you can instead execute the
following commands in the VM to configure proxy on the Windows image:
following commands in the VM to configure an HTTP proxy on the Windows image:
```bat
:: run this command in the VM
@@ -133,3 +151,6 @@ on the VM, you can run these commands with the help of `vmrun`. For instance,
# change ws to fusion if you use VMWare Fusion
vmrun -T ws runProgramInGuest /path/to/vmx/file # TODO
```
-->
<!-- TODO: add remind of new snapshot -->

View File

@@ -139,6 +139,9 @@ Afterward, you can execute a command similar to the one in the previous section
\*No environment parallelism. Calculated in April 2024.
### How can I configure a proxy for the VM if I'm behind a GFW?
See [Proxy Guideline](PROXY_GUIDELINE.md)
## 📄 Citation
If you find this environment useful, please consider citing our work:

BIN
assets/winnetsetting1.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 128 KiB

BIN
assets/winnetsetting2.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 16 KiB

BIN
assets/winnetsetting3.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 238 KiB

BIN
assets/winnetsetting4.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 215 KiB