I am new to Linux firewalls, but would like to use these to disable the communication with the load balancer on one Jira node to perform re-indexing using a back-door port. When the indexing has finished I need to enable the traffic. Load balancer health-checks do not work for us. What should I use, and what are the exact commands?
Dear @Emanuel Jianu ,
to block a specific port you can use following command on the host that provides the interface to the users (browsers):
iptables -A INPUT -p tcp --dport <PORT> -j DROP
Instead of DROP you could use REJECT. This is more user friendly, because with the DROP the browser will wait until its internal timeout is hit. In both cases the packets cannot pass.
To remove this rule:
iptables -D INPUT -p tcp --dport <PORT> -J DROP
Note: the first rule adds a rule at the end of all existing rules (if there are any). If a TCP packet matches another rule before, this new one is never hit.
As I do not know the details of your infrastructure, hosts and load balances, the upper rule could be "sub-optimal". If you tell me more, I can be more precise.
So long
Thomas
Hi Thomas,
Thank you for your response!
I confirm I was able to use iptables to disable/enable a certain port on our Jira test instances using the two commands below.
iptables -A INPUT -p tcp --dport <PORT> -j DROP
iptables -D INPUT -p tcp --dport <PORT> -j DROP
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Online forums and learning are now in one easy-to-use experience.
By continuing, you accept the updated Community Terms of Use and acknowledge the Privacy Policy. Your public name, photo, and achievements may be publicly visible and available in search engines.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.