Skip to content

Instantly share code, notes, and snippets.

@RedcoatAsher
Forked from ubergesundheit/index.md
Last active April 4, 2020 22:08
Show Gist options
  • Save RedcoatAsher/2e31f8dd3de12213d7195e253caf6686 to your computer and use it in GitHub Desktop.
Save RedcoatAsher/2e31f8dd3de12213d7195e253caf6686 to your computer and use it in GitHub Desktop.
ngrok on raspberrypi on systemd
  • Download ngrok binary
  • Create /etc/systemd/system/ngrok.service
  • Create /opt/ngrok/ngrok.yml
[Unit]
Description=Share local port(s) with ngrok
After=syslog.target network.target
[Service]
PrivateTmp=true
Type=simple
Restart=always
RestartSec=1min
StandardOutput=null
StandardError=null
ExecStart=/opt/ngrok/ngrok start -config /opt/ngrok/ngrok.yml --all
ExecStop=/usr/bin/killall ngrok
[Install]
WantedBy=multi-user.target
authtoken: YOUR-AUTH-TOKEN
json_resolver_url: ""
dns_resolver_ips: []
console_ui: false
log_format: logfmt
log: /opt/ngrok/ngrok.log
region: eu
web_addr: false
tunnels:
ssh:
proto: tcp
addr: 22
inspect: false
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment