This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
sed -i 's/!firewalla.isProductionOrBeta()/true/g' /home/pi/firewalla/api/app-local.js | |
sudo systemctl restart fireapi |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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( |