Skip to content

Repository files navigation

Proxyline Bridge

A bridge application that accepts a SOCKS5 proxy configuration (with authentication) and starts a local unauthenticated HTTP proxy that can be used directly in browser extensions.

This uses the proxy-relay library to handle the protocol conversion and relaying.

Requirements

  • Python 3.7+

Installation

pip install -r requirements.txt

Running the bridge

uvicorn main:app --host 127.0.0.1 --port 8000

Usage

1. Set a proxy

The browser extension can send a POST request with the proxy configuration.

curl -X POST http://127.0.0.1:8000/set_proxy \
     -H "Content-Type: application/json" \
     -d '{"config": "192.168.1.1:1080:myuser:mypassword"}'

Response:

{
  "local_proxy": "http://127.0.0.1:51234"
}

The extension should then configure Chrome to use http://127.0.0.1:51234 as the proxy.

2. Get the current active proxy

curl http://127.0.0.1:8000/get_proxy

Response:

{
  "local_proxy": "http://127.0.0.1:51234"
}

About

No description, website, or topics provided.

Resources

Stars

0 stars

Watchers

0 watching

Forks

Releases

Packages

Contributors

Languages