Coder Social home page Coder Social logo

pacproxy's Introduction

PacProxy

A socks proxy server that use PAC file to decide how to forward request

Features

  • Implement a socks server(support socks4 and socks5, no authentication module)
  • Using PAC file to decide how to forward request

Install

  1. Install node.js
  2. Download PacProxy, and uncompress it
  3. If you need modify the default configuration, copy config.sample.js to config.js, and modify config.js to set the configuration, such as server bind address or port
  4. Run PacProxy.bat(windows only), or command line:
node ProxyServer.js
  1. Set the browser's proxy to 127.0.0.1:9999(socks5)

Notes

  1. IE/Chrome(without proxy extension) will send socks4 request to socks proxy server, * it is not recommended *, so please install a proxy extension to chrome, such as Foxy Proxy Standard
  2. If using firefox, please goto about:config and set 'network.proxy.socks_remote_dns' to 'true'

Issues

  • No authentication feature in PacProxy
  • Because FindProxyForURL need a url parameter, so we need cheating the socks client to guess the real http url for FindProxyForURL.
  • Because the built-in DNS module of nodejs provide only asynchronous call, so any DNS resolve related function(dnsResolve, isInNet, isResolvable) in PAC is faked. The program is maintaining a DNS cache table, DNS resolve function can only get result in the table. If your PAC don't call any DNS resolve related function, you can disable these functions in configuration file.

TODO

  • Provide configuration function [done]
  • Support http/https proxy forwarding [done]
  • Support binding as http/https proxy

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.