Get the App
SLTechnology News&Howtos  ›  Servers  › 

How to implement Linux to limit the number of user login failures through PAM

Shulou Source: shulou.com Published: 2022-06-01 08:00:01 11月11日 Update

This article focuses on "how to achieve Linux to limit the number of user login failures through PAM", interested friends may wish to take a look. The method introduced in this paper is simple, fast and practical. Let the editor take you to learn "how to implement Linux to limit the number of user login failures through PAM"!

Solution:

If an error occurs when dialing vpn, or other errors occurred before confirming your account or password, if you are sure that it is not your computer's problem, you can use Vi to edit / etc/sysconfig/iptables to see if the two rules appear correctly in the file:

The code is as follows:

-An INPUT-p tcp-m tcp-dport 1723-j ACCEPT

-An INPUT-p gre-j ACCEPT

And the position of these two rules cannot be in any "- An INPUT-j REJECT …" Under the rules. If this is the case, please move it to "- An INPUT-J REJECT …" Above.

After saving, restart iptables:

The code is as follows:

Service iptables restart

At this point, I believe you have a deeper understanding of "how to achieve Linux to limit the number of user login failures through PAM". You might as well do it in practice. Here is the website, more related content can enter the relevant channels to inquire, follow us, continue to learn!

Tags: Number of times user login restriction rules code content method error learning utility deeper location interest practicality actual password situation simple operation more Apple Docker Huawei Linux macOS MariaDB Microsoft MySQL NVidia OPPO Reno Docker NVidia Apple Linux macOS