OPNsense
  • Home
  • Help
  • Search
  • Login
  • Register

  • OPNsense Forum »
  • Archive »
  • 17.7 Legacy Series »
  • Deny file uploading
« previous next »
  • Print
Pages: [1]

Author Topic: Deny file uploading  (Read 2552 times)

itn

  • Newbie
  • *
  • Posts: 2
  • Karma: 0
    • View Profile
Deny file uploading
« on: August 25, 2017, 03:08:45 pm »
Hi everyone. 
How can i deny access to file uploading over web-browser?
In looking for answer i  found this:
acl fileupload req_mime_type -i multipart/form-data
http_access deny fileupload

I pasted to squid.conf  but nothing changed.
Logged

fabian

  • Hero Member
  • *****
  • Posts: 2768
  • Karma: 199
  • OPNsense Contributor (Language, VPN, Proxy, etc.)
    • View Profile
    • Personal Homepage
Re: Deny file uploading
« Reply #1 on: August 25, 2017, 06:51:27 pm »
pasting is not enough, you have to reload the configuration and if you have not added this change correctly, your configuration will get overwritten.
Logged

itn

  • Newbie
  • *
  • Posts: 2
  • Karma: 0
    • View Profile
Re: Deny file uploading
« Reply #2 on: August 30, 2017, 01:47:14 pm »
Thnx. I reloaded the configuration and my pasting stayed in squid.conf but nothing changed again.
You have other idea what could be wrong? And what squid.conf i have to edit?
/usr/local/opnsense/service/templates/OPNsense/Proxy/squid.conf
/usr/local/etc/squid/squid.conf
Logged

franco

  • Administrator
  • Hero Member
  • *****
  • Posts: 13679
  • Karma: 1176
    • View Profile
Re: Deny file uploading
« Reply #3 on: August 30, 2017, 02:06:26 pm »
The template is more permanent and you can reload via GUI and check the actual squid.conf contents... But still overwritten by any firmware upgrade unless we add a GUI input for this to store it permanently.

There are also plugin directories for persistent files. A forum search should reveal them.


Cheers,
Franco
Logged

  • Print
Pages: [1]
« previous next »
  • OPNsense Forum »
  • Archive »
  • 17.7 Legacy Series »
  • Deny file uploading
 

OPNsense is an OSS project © Deciso B.V. 2015 - 2023 All rights reserved
  • SMF 2.0.19 | SMF © 2021, Simple Machines
    Privacy Policy
    | XHTML | RSS | WAP2