Replies: 2 comments
-
It sounds like you're experiencing some issues with your VPN connection and are exploring different ways to test and improve your network transfer speeds. Here are some thoughts and suggestions: It's a good idea to use net speed test online to test your network speeds both inside and outside of the container. This will help you identify any performance issues related to the VPN. If you're interested in automatically switching to a different VPN server based on latency, you could write a script that periodically tests the latency of different servers using the PIA server latency script and then updates the docker-compose.yaml file to connect to the fastest server. However, you'll need to be careful to avoid disrupting any existing network connections when switching servers. To change servers within the container, you could use a VPN client that supports automatic server switching based on latency. Alternatively, you could write a script that updates the VPN configuration file within the container and then restarts the VPN service. Including speedtest-cli in future containers could be useful for testing network speeds, but you'll need to ensure that it's properly installed and configured before use. Overall, improving network speeds and performance with a VPN can be a complex task, and it's important to take into account factors such as latency, server location, and network congestion. It may be helpful to consult with a networking expert or the support team of your VPN provider for further guidance. |
Beta Was this translation helpful? Give feedback.
-
I think this was mentioned in the wiki..anyway, |
Beta Was this translation helpful? Give feedback.
-
I was getting pretty slow transfer speeds yesterday and started tinkering around.
I wound up entering a bash shell in the docker container and did
# apt install speedtest-cli
I also installedspeedtest-cli
on the host machine. It's basically a CLI version of the speedtest.net website.So now I can compare network transfer speeds inside and outside of the container to see how much the VPN is slowing me down. Then I shut down the container to change the docker-compose.yaml file and change the VPN server the container connects to, which did improve my transfer speeds....for now.
Private internet access provides a script for testing their server latencies: https://github.com/pia-foss/manual-connections/blob/master/get_region.sh
I thought about trying to write a script that occasionally ran the PIA server latency script, and then switched to a different PIA server if the currently connected one was too slow, but when I restarted the docker container, I had to reinstall speedtest-cli
Also, I'm not sure the best way to change servers...if it's to shut down the docker container, update the compose.yaml, then restart, or if there's a more elegent way to do it from within the container.
In any case, such a script wouldn't be much use without a command line speed test inside the container. Maybe it's worth shipping future containers with something like speedtest-cli?
Open to hear any thoughts. I know just enough about VPNs to be dangerous, so maybe this isn't a very good idea.
Beta Was this translation helpful? Give feedback.
All reactions