Skip to main content

Security Settings

Learning Focus

By the end of this lesson you will know how to configure server-level security settings including request filtering, path protection, and admin access restrictions.

Server-Level Security Controls

SettingPurposeRecommendation
Max Request URL LengthLimits URL length to block buffer overflow attempts8192 bytes (default)
Max Request Header SizeLimits header size16380 bytes (default)
Max Request Body SizeLimits upload/POST bodySet based on largest expected upload
Follow Symbolic LinksAllow symlinks in document rootsOnly if needed; can expose files
Check Symbolic LinksVerify symlink targets stay within doc rootEnable for security

Configuring in WebAdmin

  1. Navigate to Server ConfigurationSecurity
  2. Review and adjust request size limits
  3. Configure symbolic link behavior
  4. Set access denied directories for sensitive paths
  5. Save and Graceful Restart

Access Denied Directories

Block access to paths that should never be served:

/proc/
/etc/
/usr/local/lsws/conf/

Admin Access Protection

# Restrict WebAdmin port 7080 to your IP only
sudo ufw allow from YOUR_IP to any port 7080
sudo ufw deny 7080
warning

Server security settings are your last line of defense on the server itself. Use them in combination with firewall rules and application-level protections.

Key Takeaways

  • Request size limits protect against buffer overflow and abuse attacks.
  • Symbolic link controls prevent directory traversal attacks.
  • Restrict WebAdmin access with firewall rules — never expose 7080 to the public internet.

What's Next

  • Continue to Log Settings for configuring access and error logs.