Skip to content

Instantly share code, notes, and snippets.

@jsvennevid
Created February 9, 2014 11:28
Show Gist options
  • Save jsvennevid/8897834 to your computer and use it in GitHub Desktop.
Save jsvennevid/8897834 to your computer and use it in GitHub Desktop.
Simple script to turn on/off firewall on Chromebooks
#!/bin/sh
case "$1" in
on) /sbin/iptables -P INPUT DROP
echo "Firewall has been turned on, incoming connections are no longer accepted."
shift;;
off) /sbin/iptables -P INPUT ACCEPT
echo "Firewall has been turned off, incoming connections are now accepted."
shift;;
esac
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment