Navigation

    Netgate Discussion Forum
    • Register
    • Login
    • Search
    • Categories
    • Recent
    • Tags
    • Popular
    • Users
    • Search

    Does sshlockout_pf actually work?

    General pfSense Questions
    1
    1
    1435
    Loading More Posts
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes
    Reply
    • Reply as topic
    Log in to reply
    This topic has been deleted. Only users with topic management privileges can see it.
    • G
      GoldServe last edited by

      I never see any messages below even though I get tonnes of failed login attempts.

      if (sscanf(str, "%d.%d.%d.%d", &n1, &n2, &n3, &n4) == 4) {
      **       syslog(LOG_ERR, "Illegal ssh login attempt, locking out %d.%d.%d.%d\n",
               n1, n2, n3, n4);**
             snprintf(buf, sizeof(buf), "/sbin/pfctl -t sshlockout -T add %d.%d.%d.%d",
               n1, n2, n3, n4);
             system(buf);
         }

      1 Reply Last reply Reply Quote 0
      • First post
        Last post