Skip to content

Instantly share code, notes, and snippets.

@gjesse
Last active April 5, 2016 18:35
Show Gist options
  • Save gjesse/dcc0661bb40c12d3b114544229df0488 to your computer and use it in GitHub Desktop.
Save gjesse/dcc0661bb40c12d3b114544229df0488 to your computer and use it in GitHub Desktop.
# drop traffic to zk from a specific user:
sudo iptables -A OUTPUT -p tcp --destination-port 2181 -m owner --uid-owner sargon-zero -j DROP
# restore
sudo iptables -D OUTPUT -p tcp --destination-port 2181 -m owner --uid-owner sargon-zero -j DROP
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment