Code Monkey home page Code Monkey logo

alpaca's Introduction

Alpaca

Alpaca is an HTTP/HTTPS proxy. It is designed for users of Unix tools, who operate inside networks that use proxy auto-configuration (PAC) files and require NTLM authentication.

It currently does not yet implement many important features, such as SOCKS, HTTP/2, and many of the predefined JS functions that PAC files use. Contributions are welcome, please reach out to me if you'd like to help!

Installation and Usage

To download and install Alpaca, use:

$ go get -v -u github.com/samuong/alpaca

Then start Alpaca by running the alpaca binary.

If your proxy requires NTLM authentication, you'll need to supply your domain and username (via command-line flags) and a password (via a prompt):

$ alpaca -d MYDOMAIN -u me
Password (for MYDOMAIN\me):

If you're using macOS or GNOME 3+, Alpaca will be able to find the PAC URL from your system proxy settings. You can also set the URL manually using the -C flag. If no PAC URL is found, Alpaca will act as a direct proxy (i.e. a non-caching proxy, without a parent proxy).

You can then configure your tools to send requests via Alpaca. Usually this will require setting the http_proxy and https_proxy environment variables:

$ http_proxy=localhost:3128
$ https_proxy=localhost:3128
$ export http_proxy https_proxy
$ curl -s https://raw.githubusercontent.com/samuong/alpaca/master/README.md
# Alpaca
...

When moving from, say, a corporate network to a public WiFi network (or vice-versa), the proxies listed in the PAC script might become unreachable. When this happens, Alpaca will temporarily bypass the parent proxy and send requests directly, so there's no need to manually unset/re-set http_proxy and https_proxy as you move between networks.

alpaca's People

Contributors

samuong avatar camh- avatar keithanz avatar juliaogris avatar jamesmoriarty avatar

Watchers

James Cloos 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.