Skip to content

Instantly share code, notes, and snippets.

@mbierman
Last active August 11, 2022 02:19
Show Gist options
  • Select an option

  • Save mbierman/370e6f6a37066f573c516101c2cd517a to your computer and use it in GitHub Desktop.

Select an option

Save mbierman/370e6f6a37066f573c516101c2cd517a to your computer and use it in GitHub Desktop.
Firewalla start script This is a script to use with Firewalla Gold to start a docker image and disable ping upon reboot.
#!/bin/bash
dockerid=""
# disable ping
sudo iptables -A FW_INPUT_DROP -i $(frcc | jq -r '.routing.global.default.viaIntf') -p icmp -j FW_DROP
# start docker
cd /homebridge
sudo systemctl enable docker
sudo docker start $dockerid
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment