cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

terminate running connections from cli

I am looking to see if there is a way to terminate connections from the cli. I am running our MWG 7.8.2.14 as ICAP servers and have noticed that I have several connections that have been open for several days. I would like to be able to close the connections instead of restarting the mwg-core service and effecting other users and their processes. Any ideas if this can be done?

2 Replies
fw_mon
Reliable Contributor
Reliable Contributor
Report Inappropriate Content
Message 2 of 3

Re: terminate running connections from cli

Hello @mikeyland1981 

you can use the ss command:

 

ss -K dst 192.168.10.20 dport = 8080

 

but first double check that you are not destroying connections intended to be esablished permanently. MWG has a setting ( FirstLongRunCall I belive) to restring long running connection to 24h by default, not sure it being applied to ICAP too.

Was my response useful to you? If so, please consider marking it as an Accepted Solution and giving it a Kudo (click on the thumb up symbol) to help other community members. MWG+Splunk=❤
aloksard
Employee
Employee
Report Inappropriate Content
Message 3 of 3

Re: terminate running connections from cli

Hi,

Hope you are doing well.

 

Under Configuration->Proxies->Advanced Settings-> We have timeout for errors for long running connections with the value 24 hours.

 

The Rule to Block on All Errors in Error Handler  should be present/enabled.  If it is switched off which will lead to keeping connections alive for always.  So implementing a long running connection handler is advised  if it is disabled or not present currently.

 

It works for ICAP as well when MWG is acting as ICAP server.

 

Was my reply helpful? If you find this post useful, Please give it a Kudos! Also, Please don't forget to select "Accept as a solution" if this reply resolves your query!

 

Regards

Alok Sarda

You Deserve an Award
Don't forget, when your helpful posts earn a kudos or get accepted as a solution you can unlock perks and badges. Those aren't the only badges, either. How many can you collect? Click here to learn more.

Community Help Hub

    New to the forums or need help finding your way around the forums? There's a whole hub of community resources to help you.

  • Find Forum FAQs
  • Learn How to Earn Badges
  • Ask for Help
Go to Community Help

Join the Community

    Thousands of customers use our Community for peer-to-peer and expert product support. Enjoy these benefits with a free membership:

  • Get helpful solutions from product experts.
  • Stay connected to product conversations that matter to you.
  • Participate in product groups led by employees.
Join the Community
Join the Community