Start a conversation

Explaining Content Filter Deny Action mechanism

Overview

While setting Deny action in Content Filter rules, the Kerio Control is not sending TCP RST (reset) packet.

archive_org_rule.png

pdump.jpg

It is causing the browser to be stuck in "Establishing secure connection" or "Connecting" for 30 seconds, then just timing out with TCP.

Screen_Shot_2020-12-22_at_5.26.40_PM.png

Note: https://archive.org is just an example here. This happens on all HTTPS websites with the HTTPS Filtering turned off.

This article provides detailed explanations on how Kerio Control handles Deny actions depending on the version installed.

Information

In version 9.3.2 and later, Kerio Control sends TCP reset packet to end the connection to the remote site. In the meantime, the client still re-transmits and eventually times out. This is because Kerio Control only sends TCP RST to the receiving socket, but not to the sending socket. In other words, Kerio Control does not end the connection on the client-side.

IP addresses in this example:

  • web client connected to Kerio Control: 10.10.10.250
  • archive.org: 207.241.224.2
  • Kerio Control WAN interface: 192.168.1.105

Kerio Control has already sent the RST packet to archive.org

packet1.png

Simultaneously the web client is still waiting for a response from Kerio Control to RST (reset) the connection. It waits for ~30 seconds before timing out.

packet2.png


In version 9.3.1 and prior, Kerio Control does not send TCP reset to the remote site (receiving socket), but re-transmits packets. However, the connection is already ended by the client itself (sending socket). This is not the correct behavior, since KC (Snort library in this case) should be responsible for dropping packets and ending connections.

Just after loading the page, the connection is instantly reset

connection_reset.png

The same is captured via packet analyzer

packet3.png

Workaround

Enabling HTTPS filtering decryption allows the DENY rule to reset the connection to the client instantaneously.

 

Choose files or drag and drop files
Was this article helpful?
Yes
No
  1. Priyanka Bhotika

  2. Posted
  3. Updated

Comments