Skip to content

Instantly share code, notes, and snippets.

@ignasio
Last active April 27, 2023 18:01
Show Gist options
  • Save ignasio/4ac4ba97f7d4f6e60d89dcc2a1a4120c to your computer and use it in GitHub Desktop.
Save ignasio/4ac4ba97f7d4f6e60d89dcc2a1a4120c to your computer and use it in GitHub Desktop.
https proxy one-liner
## old fashined option number one
#turkey vm
apt-get install socat
socat TCP-LISTEN:8080,fork,reuseaddr TCP:twitter.com:443
#russian vm
echo "turkey_vm_ip twitter.com" >> /etc/hosts
curl -D - https://twitter.com:8080
## option number two
mitmproxy bla bla
## modern option 3: production ready https reverse proxy caddy
caddy reverse-proxy --from :8080 --to twitter.com:443
## imho best tool for everything like that — tailscale
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment