Navigation

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

    NGNIX Config file CLI

    webGUI
    1
    1
    65
    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.
    • 0777
      0777 last edited by 0777

      Hi all,

      How modify nginx config in /user/local/etc/ngnix

      for this adding :

      add_header X-XSS-Protection "1; mode=block";
       add_header Expect-CT "enforce, max-age=300, report-uri='https://.fr/'"; server_tokens off;
      

      Same issues for this files :

      /var/etc/nginx-webConfigurator.conf

       server {
                  listen 443 ssl http2;
                  listen [::]:443 ssl http2;
      
                  ssl_certificate         /var/etc/cert.crt;
                  ssl_certificate_key     /var/etc/cert.key;
                  ssl_session_timeout     10m;
                  keepalive_timeout       70;
                  ssl_session_cache       shared:SSL:10m;
                  ssl_protocols   TLSv1.2 TLSv1.3;
                  ssl_ciphers "EECDH+AESGCM:EDH+AESGCM:AES256+EECDH:AES256+EDH";
                  ssl_prefer_server_ciphers       on;
                  add_header Strict-Transport-Security "max-age=31536000";
                  add_header X-Content-Type-Options nosniff;
                  ssl_session_tickets off;
                  ssl_dhparam /etc/dh-parameters.4096;
      

      Config is keep in the file config, but never updated after Webconfigurator restart.

      If i try to modify in another modules the modify is deleted during restart of WebConfigurator.

      Any idea ?

      PS : kali linux scan (nikto) :

      c4233347-7140-4113-a39d-e5870df23a68-image.png

      Thanks.

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

      Products

      • Platform Overview
      • TNSR
      • pfSense Plus
      • 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