Squid HTTPS proxy. One issue with LXD, other with slow internet.
by jmgibson1981 from LinuxQuestions.org on (#59QV4)
Did a squid proxy recently for the internet. After much sourcing from various articles I finally pieced it together and have it running in Docker.
First problem - my download speed is slow. I'm putting an LXD container on my desktop to do my docker testing instead of my server. It timed out once with this.
Code:Error: Failed instance creation: Get "https://cloud-images.ubuntu.com/releases/server/releases/focal/release-20201014/ubuntu-20.04-server-cloudimg-amd64.squashfs": proxyconnect tcp: Unable to connect to: proxy.mylan.home:3128It topped at 150kbs before dropping to 50kbps then erroring out.
Right now it's running at 127KBps. Admittedly out int he desert here the best connection I can get is 11Mbit. But I usually average 600-700k per second. This could be my internet fluctuating. It happens. Just odd timing is all.
Second issue is I tried to just move my existing lxd container from my server to my desktop.
Code:Error: Get "https://192.168.1.2:8443/1.0": x509: cannot validate certificate for 192.168.1.2 because it doesn't contain any IP SANsI'm wondering if my effort to proxy https was worth it... Seems to have caused some issues. Not giving up of course, just a bit frustrated. My internet speed as above is the main reason I did this.
Any suggestions?


First problem - my download speed is slow. I'm putting an LXD container on my desktop to do my docker testing instead of my server. It timed out once with this.
Code:Error: Failed instance creation: Get "https://cloud-images.ubuntu.com/releases/server/releases/focal/release-20201014/ubuntu-20.04-server-cloudimg-amd64.squashfs": proxyconnect tcp: Unable to connect to: proxy.mylan.home:3128It topped at 150kbs before dropping to 50kbps then erroring out.
Right now it's running at 127KBps. Admittedly out int he desert here the best connection I can get is 11Mbit. But I usually average 600-700k per second. This could be my internet fluctuating. It happens. Just odd timing is all.
Second issue is I tried to just move my existing lxd container from my server to my desktop.
Code:Error: Get "https://192.168.1.2:8443/1.0": x509: cannot validate certificate for 192.168.1.2 because it doesn't contain any IP SANsI'm wondering if my effort to proxy https was worth it... Seems to have caused some issues. Not giving up of course, just a bit frustrated. My internet speed as above is the main reason I did this.
Any suggestions?