Skip to content
View in the app

A better way to browse. Learn more.

Unraid

A full-screen app on your home screen with push notifications, badges and more.

To install this app on iOS and iPadOS
  1. Tap the Share icon in Safari
  2. Scroll the menu and tap Add to Home Screen.
  3. Tap Add in the top-right corner.
To install this app on Android
  1. Tap the 3-dot menu (⋮) in the top-right corner of the browser.
  2. Tap Add to Home screen or Install app.
  3. Confirm by tapping Install.

VPN Speedtest through Docker (6.12.3)

Featured Replies

seemed like a simple task but I can't figure out how to get a speedtest docker to work when I route through binhexvpn or similar.

I'd like to be able to test a bunch of different VPN's and figure out which gives me the best speed. I'm currently using PIA and getting very slow speeds when compared to no VPN

 

Unless there's another alternative to testing OpenVPN speeds on Unraid?

 

posted here since I can't open a new thread in Docker Container. 

 

Thanks

Solved by Mainfrezzer

  • Community Expert

Set the speedtest container to networktype = none and add this to the extra parameter

--net=container:binhex-delugevpn

(replace "binhex-delugevpn" with any container you want, i.e. "binhexvpn")

  • Author

That's what I tried but none of the speedtest dockers or chrome docker will connect when I do that. 

  • Community Expert

Well, did you "forward" the port(s) in Binhexvpn? Meaning adding the portmappings from the speedtest container to the binhex container?

  • Author

yes, added port in binhexvpn that matched port of speedtest docker or chrome docker. 

  • Community Expert

Which particular containers are you using? So i can have a look at it.

  • Author

Chromium ich777

Speedflux

Speedtest Tracker

  • Community Expert

Okay, ive spend too much time with that influxdb stuff xD

Quick work around is to enable and use privoxy in the binhex container and use that to access the container that are tunnled through the binhexvpn

172.17.0.X ip for the binhexcontainer :port for the service, that works. and doesnt require messing around with the docker image.


(If you wanna mess with the docker image, you have to use iptables to allow the connections, but that is not persistent unless you modify the whole docker image for that)
 

iptables -A OUTPUT -s 172.17.0.0/16 -d YOUR.LOCAL.NET.WORK/24 -o eth0 -p tcp -m tcp --sport 8080 -j ACCEPT
iptables -A INPUT -s YOUR.LOCAL.NET.WORK/24 -d 172.17.0.0/16 -i eth0 -p tcp -m tcp --dport 8080 -j ACCEPT



for chrome, for example
 

Edited by Mainfrezzer

  • Author

and this will work with Chromium? really don't wanna deal with the pain of influx either lol. 

just want to do a simple speedtest

  • Community Expert
12 minutes ago, mike_2246 said:

and this will work with Chromium? really don't wanna deal with the pain of influx either lol. 

just want to do a simple speedtest

the http proxy work with any browser. (dont ask me for anything about phones xD)

Unless you wanna connect to the browser within the vpn connection to use the vpn connection. that wouldnt work and you need to run following code in the binhexvpn container

iptables -A OUTPUT -s 172.17.0.0/16 -d YOUR.LOCAL.NET.WORK/24 -o eth0 -p tcp -m tcp --sport 8080 -j ACCEPT
iptables -A INPUT -s YOUR.LOCAL.NET.WORK/24 -d 172.17.0.0/16 -i eth0 -p tcp -m tcp --dport 8080 -j ACCEPT

so that you can connect from your browser, to the browser. But thats a bit unnecessary since you can just tell your browser to use the privoxy http proxy and type in the adress:port of the services you want to reach.

Edited by Mainfrezzer

  • Author

pretty sure i'm just doing it wrong, still can't connect to the 172.17**:8222 or 10.0**:8222

Qbit2.png.05df5fc5af5fd341c6033a7f66c5bfec.pngChromium.thumb.png.a3b68d3cd346664c9442486a6ee11882.pngQbit.thumb.png.f17ab81a1e9fb955f3dd1252309c4617.png

  • Community Expert

thats because if you funnel a container through another container, it ignores the mappings from the template. 8080 is the port that chrome would have on the qbittorrentvpn.

Depending on how you connect it changes following:

Scenario 1: You connect through privoxy

You would just enter 172.17.0.6:8080 or whatever your binhex ip is


Scenario 2: you still try to reach the chrome vnc without privoxy
If 8080 is already used on your server, you would map the container port in binhex from 8080 and "translate" it to port 8222 on the host side. You would need to enter and also change the iptable rules for that and then you could connect via the unraid ip + port

Edit:
I just saw the 8080 is being used by the binhexcontainer. Thats unfortunate^^ i would highly recommend you take the delugevpn in this case because that another can of tuna i dont wanna open now xD (although, it seems like you can just move it. So do that, put binhex WEBUI_PORT on something else than 8080 or any of the other ports the "passthrough" container will use. 8181 or something)

Edited by Mainfrezzer

  • Author

I'll try that for testing, Thanks!

whole point of this is I'm trying to get away from my monthly fee seedbox but getting horrible speeds on unraid docker w/VPN, I'm not expecting to get actual Up/Down speeds without VPN but I'd think that I should get more than 30/40 download speeds. Just a big hit going from Seedbox with great speed to 30/40 lol 

 

Speedtest.png

  • Community Expert
  • Solution

So, ive set it up on my end for visual guidance.

Binhex

 

binhex1.thumb.PNG.291405c4526fdfa0689ddb53bfea30b1.PNGbinhex2.thumb.PNG.6088b6988fa1e14fb49c4705b88a8ace.PNGbinhex3.thumb.PNG.7b711c6182a8dc3be50abb34931d4134.PNG


Chrome:
701697669_chrome1.thumb.PNG.e80d2d898ea4fc3e3fdf6bdf4847653d.PNG


What you need to enter into the binhex console
 

iptables -A OUTPUT -s 172.17.0.0/16 -d 10.0.0.0/24 -o eth0 -p tcp -m tcp --sport 8080 -j ACCEPT && iptables -A INPUT -s 10.0.0.0/24 -d 172.17.0.0/16 -i eth0 -p tcp -m tcp --dport 8080 -j ACCEPT


Change the 10.0.0.0/24 to whatever your network is. 192.168.0.0/24 for example.

Now you can access your Binhex Interface on UNRAID-IP:8181 and your chrome docker is UNRAID-IP:8080


From the chrome docker you can just access the rest from the 172.17.0.X:PORT
tada.thumb.PNG.1054149d5cd089b259ed1ebd708043e8.PNG


As mentioned before, if you go the privoxy route, which i highly recommend, it looks like this:

You change in binhex the Key 8: (ENABLE_PRIVOXY) to "yes"

you open your firefox, chrome, edge, whatever. Go to setting and search for "Proxy"

You set the http proxy to your unraidip:8118

now your browser gets routed through the vpn container and can access 172.17.0.X natively and you dont need to use the iptables command on every binhex-container start.

Edited by Mainfrezzer

  • Author

got everything cloned like yours. qbit runs in :8181 chrome opens with :8080 but give me this...

chrome docker.jpg

  • Author

got it, had to type in 10.0.*.*:8080/vnc.html. just doing 8080 didn't work

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Reply to this topic...

Account

Navigation

Search

Search

Configure browser push notifications

Chrome (Android)
  1. Tap the lock icon next to the address bar.
  2. Tap Permissions → Notifications.
  3. Adjust your preference.
Chrome (Desktop)
  1. Click the padlock icon in the address bar.
  2. Select Site settings.
  3. Find Notifications and adjust your preference.