I am trying to block outgoing traffic to port 9200 temporarily. My use case is I want to test what happens when an Elasticsearch cluster (at port 9200) becomes unreachable to my application.
I configured firewall rule sudo ufw deny out 9200
. The response was
rules updated
rules updated (v6)
What is the correct way to block outgoing traffic sent to port 9200?
Then I tried checking whether the port really is blocked using curl remotemachine:9200
. Curl received the normal Elasticsearch response:
...
"version" : {
"number" : "7.17.3",
"build_flavor" : "default",
"build_type" : "rpm",
...
ufw enable
? – ob2 Sep 13 '22 at 17:46sudo ufw status
? – Gonras Karols Sep 13 '22 at 18:20