Last active
August 11, 2022 02:19
-
-
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.
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 | |
| 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