-
Notifications
You must be signed in to change notification settings - Fork 40
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
THIS PROJECT IS DEAD AND IT DOESN'T WORK ON WINDOWS #110
Comments
For windows use Free Proxy |
Squid is working for Windows, follow these instructions. |
@zepingouin Any idea on how to get https traffic to work? http traffic works but I am having a hard time getting https to go through. |
太对了,浪费我老大精力用squid搞一个端口对应一个出站ip,又用了好久发现wss根本没法穿,查了之后才知道这个项目的windows可用版本太老了,不支持wss |
Indeed, I wasted so much time on this too. |
Life safer, I like it when I see a WinXP UI application I know for a fact that it is stable |
Works for me, not sure if it's being updated, but can confirm it works as is. I installed the MSI and got things working. Try running squid.exe from cmd to see what config errors are preventing it from starting. Would be nice if that was available in the logs but that is my workaround... |
I have an updated fork with Squid 6.10 version. |
alternative option, just follow these steps: TL;DR for the manual process, read on... download squid for windows from here: NOTE: download the MSI that says "Squid for Windows" (Approx 17MB, very small indeed) run the MSI, accept all defaults (or change your install directory if you want) you'll also get a 2nd app on your desktop and start menu called "Squid Server Tray" - run this to launch the system tray icon. click the system tray icon and select "Open Squid Configuration" it will open "C:\squid\etc\squid\squid.conf"
amend it to match the CIDR notation of your LAN/WLAN network
then you'd amend the ACLs in squid.conf (assuming you want to allow all local traffic)
now lets add just 1 x ACL that we'll later block, acl block_windows_updates_microsoft dstdomain .microsoft.com note, the address is the first dot is the syntax squid uses for wildcards (so .microsoft.com = *microsoft.com and *.microsoft.com) thats the rule created, we now need to tell squid what to do with it
so JUST ABOVE THESE, add the deny rule that references the ACL we created in the previous step http_access deny block_windows_updates_microsoft this means, "http_access" to "deny" the ACL named "block_windows_updates_microsoft" acl block_windows_updates_microsoft dstdomain .microsoft.com so to recap this step, in squid.conf, these lines:
should now look like this:
save squid.conf
(so if you think you messed up, you can just copy this and save as Squid.conf under "C:\squid\etc\squid\squid.conf") stop the squid service to do this, there's 2 x main methods (although be aware some connections may be able to bypass this)
"winhttp API" is just the "systems HTTP Stack" effectively. netsh winhttp set proxy 127.0.0.1:3128 this will force all system traffic (http and https) to go via the squid proxy. (assuming you left the squid port as its default 3128, otherwise, amend to what you set it as) now to sort out 2.) "wininet API" - thats simply enabling the proxy via "internet options" this will force all web traffic to go via the proxy as well now. ALMOST DONE, you also need to open the windows firewall to allow port 3128 (or whatever port you set for Squid) both inbound and outbound, you can probably just get away with setting for TCP, but for good measure, also allow port 3128 inbound and outbound for UDP too. (why not) NOW FINALLY - if you tried to go to https://microsoft.com in a browser, it will fail i just used microsoft as an example TROUBLESHOOTING: if however, if you find sending requests to test the proxy still logs nothing in access.log, but you've confirmed its not permissions or syntax in the conf file, it indicates something is preventing the request from even getting to the proxy, like a firewall, or some other error, or maybe a route is in place you don't know about, or redirect, etc. In which case, you can use CURL commands (download here: https://curl.se/windows/) to run tests to the proxy - try http address first, such as "http://example.com" to rule out SSL potentially getting in your way, if Http works, try a https address, if that fails, your SSL config is likely the culprit, but by default i havent needed to configure anything for SSL or HTTPs to get it to block them successfully. if you're unsure on how to write curl commands, just lean on chatgpt tell it what you want to test and it will write it for you easily. |
No working version for windows
no help
nothing works.
better delete this trash.
The text was updated successfully, but these errors were encountered: