How to simulate the loss of the Consul.
You can simulate the loss of the Consul for one instance closing a connection to the 8500 port via iptables.
For closing port 8500 need to add rule:
iptables -A OUTPUT -p tcp --dport 8500 -j DROP
How to remove the rule.
1. Found rule number:
iptables -L --line-number
2. In the OUTPUT section found our rule, likely this will number 1, and delete it:
iptables -D OUTPUT 1
For closing port 8500 need to add rule:
iptables -A OUTPUT -p tcp --dport 8500 -j DROP
How to remove the rule.
1. Found rule number:
iptables -L --line-number
2. In the OUTPUT section found our rule, likely this will number 1, and delete it:
iptables -D OUTPUT 1
Комментарии
Отправить комментарий