Skip to content

Instantly share code, notes, and snippets.

@youribonnaffe
Created April 2, 2013 19:35
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 1 You must be signed in to fork a gist
  • Save youribonnaffe/5295471 to your computer and use it in GitHub Desktop.
Save youribonnaffe/5295471 to your computer and use it in GitHub Desktop.
Openvswitch rules to drop packets from a given IP address
ovs-ofctl add-flow xenbr0 "in_port=1,ip,nw_src=172.20.0.1,actions=drop"
ovs-ofctl add-flow xenbr0 "in_port=1,ip,nw_dst=172.20.0.1,actions=drop"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment