Reproduce RabbitMQ network partition scenario

In order to simulate a network partition you can block the outgoing connections using iptables

Suppose you have 3 nodes:

node1 - ip : 10.10.0.1
node2 - ip : 10.10.0.2
node3 - ip : 10.10.0.3

After creating the cluster, go to node 2 for example and

iptables -A OUTPUT -d 10.10.0.1 -j DROP

In this way you blocked the connections and the node will go in network partition.

Then

iptables -F

to restore the network.