Navigation

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

    Captive portal lighttpd, evasive.silent=enabled doesn't work

    Captive Portal
    2
    3
    2987
    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.
    • A
      abdurrahman last edited by

      I have read an article, it says

      "when mod_evasive turns a connection away, it creates an entry in the log file.
      to reduce disk write load and file size it would be neat to have a silent option where mod_evasive will not output anything.

      In my captive portal, maximum concurrent connections are 4. some clients automatically (maybe because of worm-virus-torrent) open many connections (above 4) per second , and i guess for that reason
      in the System Logs, I see "lighttpd[6729]: (mod_evasive.c.183) 10.210.0.97 turned away. Too many connections."..and these kind of lines are so much that can increase the size of logs so much.
      To prevent this, i added evasive.silent="enabled" in /etc/inc/system.inc..but lighttpd didn't start and gived the error below

      php[59417]: /services_captiveportal.php: The command '/usr/local/sbin/lighttpd -f /var/etc/lighty-CaptivePortal.conf' returned exit code '255', the output was 'Undefined config variable: var.true 2013-04-28 19:09:56: (configfile.c.943) source: /var/etc/lighty-CaptivePortal.conf line: 151 pos: 11 parser failed somehow near here: (EOL)'

      1 Reply Last reply Reply Quote 0
      • C
        clart last edited by

        try putting it at end of file in;
        /var/etc/lighty-ZONENAME-CaptivePortal.conf

        where ZONENAME is the name of CP zone to apply to.

        1 Reply Last reply Reply Quote 0
        • A
          abdurrahman last edited by

          I have been using pfSense 2.0.3 and in this version there are no zones.
          in /var/etc, lighty-Captiveportal.conf file exists.
          but as far as I know, captiveportal automatically creates lighty-CaptivePortal.conf file
          according to the settings on captiveportal.inc and system.inc… The settings about auto-creation of lighty-Captiveportal.conf file, exist in system.inc file
          for that reason I added the evasive.silent="enabled" line to the system.inc file....bu it didn't work and didn't recognize the evasive.silent
          @clart:

          try putting it at end of file in;
          /var/etc/lighty-ZONENAME-CaptivePortal.conf

          where ZONENAME is the name of CP zone to apply to.

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

          Products

          • Platform Overview
          • TNSR
          • pfSense
          • Appliances

          Services

          • Training
          • Professional Services

          Support

          • Subscription Plans
          • Contact Support
          • Product Lifecycle
          • Documentation

          News

          • Media Coverage
          • Press
          • Events

          Resources

          • Blog
          • FAQ
          • Find a Partner
          • Resource Library
          • Security Information

          Company

          • About Us
          • Careers
          • Partners
          • Contact Us
          • Legal
          Our Mission

          We provide leading-edge network security at a fair price - regardless of organizational size or network sophistication. We believe that an open-source security model offers disruptive pricing along with the agility required to quickly address emerging threats.

          Subscribe to our Newsletter

          Product information, software announcements, and special offers. See our newsletter archive to sign up for future newsletters and to read past announcements.

          © 2021 Rubicon Communications, LLC | Privacy Policy