Skip to content

Commit

Permalink
standardizing ports
Browse files Browse the repository at this point in the history
  • Loading branch information
diva-exchange committed May 6, 2020
1 parent 6b9bb87 commit a9e70bb
Show file tree
Hide file tree
Showing 5 changed files with 7 additions and 7 deletions.
4 changes: 2 additions & 2 deletions Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -35,8 +35,8 @@ RUN mkdir -p "/home/i2pd/log" "/home/i2pd/data" \
&& chmod 0700 /home/i2pd/bin/i2pd-x86_64-alpine \
&& chmod +x /entrypoint.sh

# 7070 i2p webconsole, 4444 http proxy, 4447 socks proxy, 4446 tor proxy, 4445 darkhttpd
EXPOSE 7070 4444 4445 4446 4447
# 7070 I2P webconsole, 4444 I2P http proxy, 4445 I2P socks proxy, 9050 TOR proxy, 8080 darkhttpd
EXPOSE 7070 4444 4445 9050 8080

VOLUME [ "/home/i2pd/" ]
WORKDIR "/home/i2pd/"
Expand Down
4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -18,10 +18,10 @@ To get your new private browsing experience up and running:
#### On Linux, OSX and Windows
Run the following command in a shell (powershell on Windows):

`docker run --mount src=i2pd,dst=/home/i2pd -p 7070:7070 -p 4444:4444 -p 4445:4445 -p 4446:4446 -p 4447:4447 -d --name i2pd divax/i2p`
`docker run --mount src=i2pd,dst=/home/i2pd -p 7070:7070 -p 4444:4444 -p 4445:4445 -p 9050:9050 -p 8080:8080 -d --name i2pd divax/i2p`

### How to Adapt the Proxy Settings of Your Browser
Open your favourite browser, like Firefox. Open the settings. Search for "proxy". Then enable "Automatic proxy configuration URL" and set it to "http://localhost:4445/proxy.pac".
Open your favourite browser, like Firefox. Open the settings. Search for "proxy". Then enable "Automatic proxy configuration URL" and set it to "http://localhost:8080/proxy.pac".

This proxy configuration (see source code below for details) uses your new docker container to route all your browser traffic through either I2P or TOR. If you now browse the clearnet (like https://diva.exchange) you'll be using automatically TOR.

Expand Down
2 changes: 1 addition & 1 deletion conf/tunnels.conf
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ gzip = true
[local-http]
type = http
host = 127.0.0.1
port = 4445
port = 8080
keys = local-http.dat
hostoverride = localhost
gzip = true
2 changes: 1 addition & 1 deletion entrypoint.sh
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ dnsmasq -a 127.0.1.1 \

# httpd server
/usr/bin/darkhttpd /var/www/localhost/htdocs \
--port 4445 \
--port 8080 \
--daemon \
--chroot \
--uid darkhttpd \
Expand Down
2 changes: 1 addition & 1 deletion network/torrc
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
User tor
RunAsDaemon 1
LearnCircuitBuildTimeout 0
SocksPort 0.0.0.0:4446
SocksPort 0.0.0.0:9050
DataDirectory /var/lib/tor

0 comments on commit a9e70bb

Please sign in to comment.