I just setup BoringProxy on my Ubuntu 18.04 server to enable access to a local website. When I try to start it I get the following message:
./boringproxy-linux-x86_64 server -admin-domain ares.edu
2023/02/14 16:58:48 Starting up
WARNING: Failed to access 172.56.104.215:80 from the internet
WARNING: Failed to access 172.56.104.215:443 from the internet
2023/02/14 16:58:53 ares.edu: obtaining certificate: [ares.edu] Obtain: [ares.edu] solving challenges: ares.edu: no solvers available for remaining challenges (configured=[http-01 tls-alpn-01] offered=[http-01 dns-01 tls-alpn-01] remaining=[dns-01]) (order=https://acme-v02.api.letsencrypt.org/acme/order/965037426/164839065686) (ca=https://acme-v02.api.letsencrypt.org/directory)
I could use some help on what I need to do to get this cleared up. Is it a problem with Let’sEncrypt?
Getting around things like CGNAT is actually one of the main purposes of boringproxy. However, you need at least one device with a public IP address, which is where you run the boringproxy server. Typically people will use a VPS for this. Then you can run the boringproxy client behind CGNAT and it will use SSH to tunnel to the server, which proxies requests over the tunnel.
I get the same error, but it only happens, when I run boringproxy without sudo. If i start it as root, or with sudo, it works perfectly, so it’s not the firewall. What might be the cause of this?
You need root privileges in order to bind ports 80 and 443. Rather than running as sudo I recommend following the installation instructions and using setcap, which is more secure.