Skip to content

Instantly share code, notes, and snippets.

@4383
Last active September 12, 2019 15:36
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save 4383/4cf5ace3e9451e4825b7974ed76c0379 to your computer and use it in GitHub Desktop.
Save 4383/4cf5ace3e9451e4825b7974ed76c0379 to your computer and use it in GitHub Desktop.
Drop rabbitmq trafic
sudo iptables -I 1 INPUT -p tcp --sport 5672 --j DROP # source
sudo iptables -I 1 INPUT -p tcp --dport 5672 --j DROP # destination
<wait for heartbeat failures>
sudo iptables -D INPUT 1
sudo rabbitmqctl -p test list_queues name messages messages_unacknowledged | grep reply
reply_f4b9a59c84b04857ae8ed992c618eaba 0 0
reply_bef3bbc2619247b0b287d19bfd685de3 0 0
reply_e6151828c288457e9cc01e5e6167e4e3 0 0
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment