mirror of
https://github.com/wgtunnel/wireproxy-awg.git
synced 2026-10-09 14:35:59 -07:00
+2







![dependabot[bot]](/avatar/bd5a8d6c673b738d52b0ac42a110045f3f964b3ebfc1d60ea805af743b1dc0e6?size=40)
f06d58250f
* Update README (#137) * Fix broken sandboxing resulting in SIGABRT (#136) * Fix HTTP proxy authentication to support both preemptive and challenge-response auth (#134) * Bump golang.org/x/crypto from 0.21.0 to 0.31.0 (#146) Bumps [golang.org/x/crypto](https://github.com/golang/crypto) from 0.21.0 to 0.31.0. - [Commits](https://github.com/golang/crypto/compare/v0.21.0...v0.31.0) --- updated-dependencies: - dependency-name: golang.org/x/crypto dependency-type: indirect ... Signed-off-by: dependabot[bot] <support@github.com> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> * Update README.md (#150) Fixed curl example command to work well with sudo * Fix PingRecord race condition (#149) * docs: add syntax highlighting and Go install command (#158) * docs: add syntax language for codeblocks * docs: add install instructions for Go * Make sure that closing one direction closes the other, too. (#159) * Make sure that closing one direction closes the other, too. * Pacify linter. * Bump golang.org/x/net from 0.23.0 to 0.33.0 (#160) Bumps [golang.org/x/net](https://github.com/golang/net) from 0.23.0 to 0.33.0. - [Commits](https://github.com/golang/net/compare/v0.23.0...v0.33.0) --- updated-dependencies: - dependency-name: golang.org/x/net dependency-type: direct:production ... Signed-off-by: dependabot[bot] <support@github.com> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> * add IPRoyal referral link * Add hint to run Wireproxy as system daemon in rc.d-based system (#164) * Add hint for rc.d service * Update README.md --------- Co-authored-by: root <root@prox1.example.com> * fix: issue with omiting endpoint (#157) fixes #156 --------- Signed-off-by: dependabot[bot] <support@github.com> Co-authored-by: Niko <niko@niko.lgbt> Co-authored-by: Luiz Henrique Gomes Palácio <lhpalacio@outlook.com> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> Co-authored-by: Yaroslav <yaroslaff@gmail.com> Co-authored-by: Takanori Hirano <me@hrntknr.net> Co-authored-by: Lars Gerber <75072836+larsgerber@users.noreply.github.com> Co-authored-by: Christian Speckner <christian.speckner@mayflower.de> Co-authored-by: pufferffish <me@windtfw.com> Co-authored-by: lexandr0s <lexandr0s@users.noreply.github.com> Co-authored-by: root <root@prox1.example.com> Co-authored-by: Emilien Devos <121870973+edevosc2c@users.noreply.github.com>
97 lines
3.1 KiB
Markdown
97 lines
3.1 KiB
Markdown
# Getting a Wireguard Server
|
|
|
|
You can create your own wireguard server using a host service like DigitalOcean,
|
|
or you can get a VPN service that provides WireGuard configs.
|
|
|
|
I recommend ProtonVPN, because it is highly secure and has a great WireGuard
|
|
config generator.
|
|
|
|
Simply go to <https://account.protonvpn.com/downloads> and scroll down to the
|
|
wireguard section to generate your configs, then paste into the appropriate
|
|
section below.
|
|
|
|
# Simple Setup for multiple SOCKS configs for firefox
|
|
|
|
Create a folder for your configs and startup scripts. Can be the same place as
|
|
this code. That path you will use below. For reference this text uses
|
|
`/Users/jonny/vpntabs`
|
|
|
|
For each VPN you want to run, you will download your wireguard config and name
|
|
it appropriately (e.g. `ProtonUS.adblock.server.conf`) and then create two new
|
|
files from those below with similar names (e.g. `ProtonUS.adblock.conf` and
|
|
`ProtonUS.adblock.sh`)
|
|
|
|
You will also create a launch script, the reference below is only for macOS. The
|
|
naming should also be similar (e.g.
|
|
`/Users/jonny/Library/LaunchAgents/com.ProtonUS.adblock.plist`)
|
|
|
|
## Config File
|
|
|
|
Make sure you use a unique port for every separate server
|
|
I recommend you set proxy authentication, you can use the same user/pass for all
|
|
|
|
```ini
|
|
# Link to the Downloaded config
|
|
WGConfig = /Users/jonny/vpntabs/ProtonUS.adblock.server.conf
|
|
|
|
# Used for firefox containers
|
|
[Socks5]
|
|
BindAddress = 127.0.0.1:25344 # Update the port here for each new server
|
|
|
|
# Socks5 authentication parameters, specifying username and password enables
|
|
# proxy authentication.
|
|
#Username = ...
|
|
# Avoid using spaces in the password field
|
|
#Password = ...
|
|
```
|
|
|
|
## Startup Script File
|
|
|
|
This is a bash script to facilitate startup, not strictly essential, but adds
|
|
ease.
|
|
Note, you MUST update the first path to wherever you installed this code to.
|
|
Make sure you use the path for the config file above, not the one you downloaded
|
|
from e.g. protonvpn.
|
|
|
|
```bash
|
|
#!/bin/bash
|
|
/Users/jonny/wireproxy/wireproxy -c /Users/jonny/vpntabs/ProtonUS.adblock.conf
|
|
```
|
|
|
|
## MacOS LaunchAgent
|
|
|
|
To make it run every time you start your computer, you can create a launch agent
|
|
in `$HOME/Library/LaunchAgents`. Name reference above.
|
|
|
|
That file should contain the following, the label should be the same as the file
|
|
name and the paths should be set correctly:
|
|
|
|
```xml
|
|
<?xml version="1.0" encoding="UTF-8"?>
|
|
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
|
|
<plist version="1.0">
|
|
<dict>
|
|
<key>Label</key>
|
|
<string>com.ProtonUS.adblock</string>
|
|
<key>Program</key>
|
|
<string>/Users/jonny/vpntabs/ProtonUS.adblock.sh</string>
|
|
<key>RunAtLoad</key>
|
|
<true/>
|
|
<key>KeepAlive</key>
|
|
<true/>
|
|
</dict>
|
|
</plist>
|
|
```
|
|
|
|
To enable it, run
|
|
`launchctl load ~/Library/LaunchAgents/com.ProtonUS.adblock.plist` and
|
|
`launchtl start ~/Library/LaunchAgents/com.PortonUS.adblock.plist`
|
|
|
|
# Firefox Setup
|
|
|
|
You will need to enable the Multi Account Container Tabs extension and a proxy extension, I
|
|
recommend Sideberry, but Container Proxy also works.
|
|
|
|
Create a container to be dedicated to this VPN, and then add the IP, port,
|
|
username, and password from above.
|