# One-click Windows Proxy

####

**Run this command to instantly start a proxy server and enable it for Windows.**

```
powershell -ExecutionPolicy Bypass -NoProfile -Command "irm https://raw.githubusercontent.com/anyone-protocol/anon-install/main/windows/start_proxy.ps1 | iex"
```

#### **Read Me**

This command runs a script that downloads a executable Anyone client from [GitHub](https://github.com/anyone-protocol/ator-protocol/releases/) and executes the client with the configuration below:

```
SocksPort 127.0.0.1:9055
SocksPolicy accept 127.0.0.1
SocksPolicy reject *
HTTPTunnelPort auto
```

The script automatically configures proxy settings on Windows and enables the proxy.

```
Set-ItemProperty -Path "HKCU:\Software\Microsoft\Windows\CurrentVersion\Internet Settings" -Name "ProxyEnable" -Value 1
Set-ItemProperty -Path "HKCU:\Software\Microsoft\Windows\CurrentVersion\Internet Settings" -Name "ProxyServer" -Value "socks=127.0.0.1:9055"
Set-ItemProperty -Path "HKCU:\Software\Microsoft\Windows\CurrentVersion\Internet Settings" -Name "ProxyOverride" -Value "<local>"
```

The script disables the proxy when **'Ctrl+C'** is initiated.

```
Set-ItemProperty -Path "HKCU:\Software\Microsoft\Windows\CurrentVersion\Internet Settings" -Name "ProxyEnable" -Value 0
Remove-ItemProperty -Path "HKCU:\Software\Microsoft\Windows\CurrentVersion\Internet Settings" -Name "ProxyServer" -ErrorAction SilentlyContinue
Remove-ItemProperty -Path "HKCU:\Software\Microsoft\Windows\CurrentVersion\Internet Settings" -Name "ProxyOverride" -ErrorAction SilentlyContinue
```
