Skip to content

Instantly share code, notes, and snippets.

Avatar

Jeremy my-given-name-is-jeremy

View GitHub Profile
@my-given-name-is-jeremy
my-given-name-is-jeremy / app-local.sh
Created Nov 26, 2020
Firewalla enable app-local api endpoints
View app-local.sh
#!/bin/bash
sed -i 's/!firewalla.isProductionOrBeta()/true/g' /home/pi/firewalla/api/app-local.js
sudo systemctl restart fireapi
View firewalla_api_test.py
import requests, json
from sshtunnel import open_tunnel
REMOTE_SERVER_IP = "<address>"
REMOTE_SERVER_USER = "pi"
REMOTE_SERVER_PUBKEY = "/path/to/pubkey"
REMOTE_BIND_PORT = 8834
LOCAL_BIND_PORT = 10022
with open_tunnel(