Git Product home page Git Product logo

squid-server's Introduction

Newer alternative is at https://squid.diladele.com/ and my config(just changed dns server ips for work) (secret gist https://gist.github.com/Kambaa/2f189a70ef3bf26ad5410947bcfefb4d)

squid-server

An OLDER, simple working squid server for windows, not very secure, some config editing needed.

instructions

  • unzip to a <YOUR_DIR>
  • open <YOUR_DIR>/squid/etc/squid.conf file
  • replace all <YOUR_DIR> with appropriate directory(that squid folder is in)
  • go to https://www.web2generators.com/apache-tools/htpasswd-generator create htpasswd text according to given user and password (or https://hostingcanada.org/htpasswd-generator/ on mode field, select Apache specific salted MD5 (insecure but common))
  • copy generated user pass info text to squid/etc/passwd file(replace with everything)
  • open <YOUR_DIR>/squid/sbin folder in terminal
  • use run.bat file or
    • run command below to create cache stuff(edit where your squid folder is and cd to it first)
.\squid.exe -z -f <YOUR_DIR>/squid/etc/squid.conf
  • run command below to start cache server(or run the start.bat file in the main squid directory-edit where your squid folder is and cd to it first)
.\squid.exe -f <YOUR_DIR>\squid\etc\squid.conf -d 2
  • use proxy like this:
<squid's running local ip address>:3128

USAGE

git

setup no auth:

git config --global http.proxy http://ip:port

setup with auth:

git config --global http.proxy http://username:password@ip:port

revert/reset setting:

git config --global --unset http.proxy

maven

add this to your settings.xml

<settings>
 ... OTHER SETTINGS ...
<proxies>
   <proxy>
      <id>worklaptopproxy</id>
      <active>true</active>
      <protocol>http</protocol>
      <host>YOUR IP ADDRESS</host>
      <port>3128</port>
      <username>user</username><!-- enter username here -->
      <password>pass</password><!-- enter password here -->
      <!-- <nonProxyHosts>www.google.com|*.example.com</nonProxyHosts> -->
    </proxy>
  </proxies>
</settings>

browsers

  • use an addon Foxyproxy(My favorite, defining domain names and it uses proxy automatically),SwitchyOmega etc.
  • add your proxy like <IP>:3128 (with user pass info)

other

Somethings to read about this:

squid-server's People

Contributors

kambaa avatar

Stargazers

 avatar

Watchers

 avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.