W3Ask











Linux command line
#ad
Linux programming
#ad
Linux Basics for Hackers
#ad
Linux Bible
#ad
How Linux works
#ad
Linux pocket guide
#ad
Linux administration
#ad


HOME  >  SOFTWARE  >  LINUX

Kern.log peer unexpectedly shrunk window



If you get the kind of error, it means that some hackers have been able to login into your server through an exploit or a backdoor. You have to add a jail to Fail2Ban. Install Fail2Ban if it is not yet already done.

Dec  8 13:35:18  kernel: [6114223.972059] Peer  unexpectedly shrunk window 3517493258:3517493263 (repaired)
Dec 8 13:35:20 kernel: [6114225.860020] Peer unexpectedly shrunk window 4250428389:4250428394 (repaired)

Create shrunk-window.conf :

# nano /etc/fail2ban/filter.d/shrunk-window.conf

Add :

[Definition]
failregex = ^.*Peer \:.* unexpectedly shrunk window.*repaired+
ignoreregex =

# nano /etc/fail2ban/jail.conf

Add :

[shrunk-window]
enabled = true
filter = shrunk-window
logpath = /var/log/kern.log
port = all
maxretry = 1

The same with jail.local :

nano /etc/fail2ban/jail.local

Add :

[shrunk-window]
enabled = true
filter = shrunk-window
logpath = /var/log/kern.log
port = all
maxretry = 1

Restart Fail2Ban :

/etc/init.d/fail2ban restart

Note: Commissions may be earned from the links above.


This page contains references to products from one or more of our advertisers. We may receive compensation when you click on links to those products. For an explanation of our advertising policy, please visit this page.









Related posts:


Shrunk-window.conf doesn’t work
https://w3ask.com/shrunk-window-conf-doesn/
You have added the shrunk window jail to Fail2Ban, but it doesn’t seem to work ? I suggest you to try my modified guide : – Setup ...
Fail2ban : ERROR No ‘host’ group in ‘kernel
https://w3ask.com/fail2ban-error-host-group-kernel/
Fail2ban allow us to ban specific IP addresses which are trying to get the access to our server. It is a simple way to get rid of these annoying ...
Procedure to format and setup Windows 8 in factory configuration
https://w3ask.com/procedure-format-setup-windows-8-factory-configuration/
You have already put your computer in factory configuration state but your issue still persists. You may want to format your hard drive disk ...
[Resolved] Setpoint : Runtime error on Windows 10
https://w3ask.com/resolved-setpoint-runtime-error-windows-10/
Among other things, the Setpoint software allows you to set different mouse clicks, change the pointer speed, accelerate the pointer, activate ...
Mouse click disabled on another window of Windows 10 in HDMI
https://w3ask.com/mouse-click-disabled-windows-10-hdmi/
Sometimes a bug may appear when connecting in HDMI with another screen and with a wireless mouse. This bug is the deactivation of the left click ...








Linux command line
#ad


How Linux works
#ad


Linux Bible
#ad


Linux programming
#ad


Linux administration
#ad


Linux Basics for Hackers
#ad


Linux pocket guide
#ad





Languages

  • English
  • French
  • German
  • Italian
  • Dutch
  • Portuguese
  • Spanish

Know us

  • About
  • Contact
  • Categories list

Privacy

  • Privacy & Cookie Policy
  • Advertising policy
W3Ask © 2023. All rights reserved.
Disclaimer:

When you click on links to various merchants on this site and make a purchase, this can result in this site earning a commission. Affiliate programs and affiliations include, but are not limited to, the eBay Partner Network.

As an Amazon Associate I earn from qualifying purchases.

This page includes affiliate links for which the administrator of W3Ask may earn a commission at no extra cost to you should you make a purchase. These links are indicated using the hashtag #ad.


Information:

We do not assume any responsibility for the data displayed on our website. Please use at your own risk. Some or all of this data may be out of date or incomplete, please refer to the technical page on the respective manufacturer's website to find the latest up-to-date information regarding the specifics of a product.


GadgetVersus GadgetVersus France