Giter Site home page Giter Site logo

wg-http-proxy's Introduction

wg-proxer

Портабельный WireGuard клиент предоставляюший HTTP прокси сервер

Цель

WireGuard (как и иные vpn клиенты) хорош когда требуется завернуть большую часть трафика на всем устройстве, но не так удобен для оборачивания трафика в отдельных программах и/или к отдельным ресурсам.

Наиболее гибким в этом отношении является HTTP прокси (через PAC скрипты), однако браузеры не умеют даже в Basic авторизацию для HTTP прокси.

Данный проект - попытка заткнуть слабые места обоих решений. По сети гоняется защищенный WireGuard трафик, а на клиентском устройстве запускается прокси сервер доступный приложениям.

Установка

Установка не требуется. Просто скачайте версию под свою систему и запускайте хоть с флешки.

Как использовать

wg-proxer.exe -p 8087 wg.conf

  • -p 8087 локальный прокси порт
  • -s выключает логгирование
  • -v включает логгирование запросов
  • wg.conf ПОСЛЕДНИМ параметром указываем путь к конфигу Wireguard (имя файла может быть любое)

Пример wg конфига

[Interface]
PrivateKey = xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx=
Address = 10.8.0.5/24
DNS = 8.8.8.8, 8.8.4.4

[Peer]
PublicKey = xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx=
PresharedKey = xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx=
AllowedIPs = 192.168.0.0/16, 0.0.0.0/5, 213.5.120.3/32
Endpoint = x.x.x.x:2022
PersistentKeepalive = 25

ВНИМАНИЕ для полей разрешающих множественные значения допускается только синтаксис с перечислением значений через зяпятую, но не дубликаты ключей.

;;так нельзя
DNS = 8.8.8.8
DNS = 8.8.4.4
;;так можно
DNS = 8.8.8.8, 8.8.4.4

Что не так с настройкой Address

Маски на данный момент просто игнорируются.

Я не понял как прикрутить диапазон по маске. В https://github.com/octeep/wireproxy (что работает на основе той же библиотеки) автор например велел указывать маски /32 /128 и сделал вид что все работает - мы поступим также.

Демонизация

Похожие проекты и недостатки

Полезное

wg-http-proxy's People

Contributors

shimberger avatar taraflex 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.