-
-
Notifications
You must be signed in to change notification settings - Fork 131
Replace obfs4proxy with Lyrebird #63
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: master
Are you sure you want to change the base?
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
|
|
@@ -65,6 +65,20 @@ curl --socks5-hostname 127.0.0.1:9150 https://ipinfo.tw/ip | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| docker stop tor-socks-proxy | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| ``` | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
|
|
||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| ### Using bridges | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
|
|
||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| Edit `/etc/tor/torrc` and add the following: | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
|
|
||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
|
Comment on lines
+70
to
+71
|
||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| Edit `/etc/tor/torrc` and add the following: | |
| To use bridges, you need to modify the Tor configuration file (`/etc/tor/torrc`) inside the Docker container. There are several ways to do this: | |
| **Option 1: Mount a custom `torrc` file from your host** | |
| 1. Create a custom `torrc` file on your host (e.g., `./my-torrc`) and add the following lines: | |
| ``` | |
| Bridge obfs4 ... | |
| Bridge obfs4 ... | |
| Bridge obfs4 ... | |
| Bridge obfs4 ... | |
| ClientTransportPlugin obfs4 exec /usr/bin/lyrebird | |
| UseBridges 1 | |
| ``` | |
| 2. Start the container with your custom config mounted: | |
| ```sh | |
| docker run -d --restart=always --name tor-socks-proxy -p 127.0.0.1:9150:9150/tcp -v $(pwd)/my-torrc:/etc/tor/torrc peterdavehello/tor-socks-proxy:latest | |
| ``` | |
| **Option 2: Edit the file inside a running container** | |
| 1. Start the container as usual. | |
| 2. Use `docker exec` to open a shell and edit the file: | |
| ```sh | |
| docker exec -it tor-socks-proxy vi /etc/tor/torrc | |
| ``` | |
| (You can use `nano` or `vi` depending on what's available in the container.) | |
| **Option 3: Build a custom image with your own `torrc`** | |
| 1. Create a `Dockerfile`: | |
| ```Dockerfile | |
| FROM peterdavehello/tor-socks-proxy:latest | |
| COPY my-torrc /etc/tor/torrc | |
| ``` | |
| 2. Build and run your custom image. | |
| --- | |
| Add the following lines to your `torrc` (as shown above): |
Uh oh!
There was an error while loading. Please reload this page.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Just asking, is this obfs4proxy replacement related?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Not directly. But bridges work via obfs4proxy/lyrebird. Hence the
ClientTransportPluginconfig belowI suppose if someone's using bridges, they already know about this. Just thought it would be nice to have