Note
A newer, full guide based on this write-up has been published on https://hyper.lol/blog/7. This gist is refrenced in their tutorial.
Warning
Disclaimer: This is very experimental. Use at your own risk. (for cloudflare and google to not get mad)
Note
A newer, full guide based on this write-up has been published on https://hyper.lol/blog/7. This gist is refrenced in their tutorial.
Warning
Disclaimer: This is very experimental. Use at your own risk. (for cloudflare and google to not get mad)
I hereby claim:
To claim this, I am signing this object:
| import os | |
| import shutil | |
| # Path to the desktop folder | |
| desktop_path = os.path.expanduser('~/Desktop') | |
| # Path to the screenshots folder on the desktop | |
| screenshots_path = os.path.join(desktop_path, 'screenshots') | |
| # Create the screenshots folder if it doesn't exist |
| version: "3.9" | |
| services: | |
| tunnel: | |
| container_name: cloudflared-tunnel | |
| image: cloudflare/cloudflared | |
| restart: unless-stopped | |
| command: tunnel run | |
| environment: | |
| - TUNNEL_TOKEN=mytokengoeshere |
| iptables -P INPUT ACCEPT | |
| iptables -P OUTPUT ACCEPT | |
| iptables -P FORWARD ACCEPT | |
| iptables -F |
| # Ask for the user password | |
| # Script only works if sudo caches the password for a few minutes | |
| sudo true | |
| # Install kernel extra's to enable docker aufs support | |
| # sudo apt-get -y install linux-image-extra-$(uname -r) | |
| # Add Docker PPA and install latest version | |
| # sudo apt-key adv --keyserver hkp://keyserver.ubuntu.com:80 --recv-keys 36A1D7869245C8950F966E92D8576A8BA88D21E9 | |
| # sudo sh -c "echo deb https://get.docker.io/ubuntu docker main > /etc/apt/sources.list.d/docker.list" |
I hereby claim:
To claim this, I am signing this object: