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

"script-security 3" instead of 2?

Scheduled Pinned Locked Moved OpenVPN
3 Posts 2 Posters 4.3k Views
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.
  • B
    beremonavabi
    last edited by May 8, 2018, 4:28 AM May 7, 2018, 5:54 PM

    Looking at /var/etc/openvpn/client2.conf, I'm showing the following option apparently automatically added by pfSense (at least in 2.4.3):

    script-security 3

    According to:

    https://community.openvpn.net/openvpn/wiki/Openvpn24ManPage

    –script-security level

    This directive offers policy-level control over OpenVPN's usage of external programs and scripts. Lower level values are more restrictive, higher values are more permissive. Settings for level:

    0 -- Strictly no calling of external programs.
    1 -- (Default) Only call built-in executables such as ifconfig, ip, route, or netsh.
    2 -- Allow calling of built-in executables and user-defined scripts.
    3 -- Allow passwords to be passed to scripts via environmental variables (potentially unsafe).

    I assume pfSense uses a >1 level because it also has an –up command in there (i.e., a script).  But, why level = 3?  Why not level = 2?  Are there passwords somewhere in environmental variables?  Also, is there somewhere to change that level under something like VPN > OpenVPN > Clients?

    SG-4860, pfSense 2.4.5-RELEASE-p1 (amd64)

    1 Reply Last reply Reply Quote 0
    • B
      beremonavabi
      last edited by May 9, 2018, 9:01 PM

      I still can't find anyplace in pfSense where script-security is set.  So, it does look like it's defaulting to "script-security 3" instead of something like "script-security 2".  It's a bit worrying that no one knows why it's needed that way.

      SG-4860, pfSense 2.4.5-RELEASE-p1 (amd64)

      1 Reply Last reply Reply Quote 0
      • J
        johnpoz LAYER 8 Global Moderator
        last edited by May 10, 2018, 3:44 PM

        What do you mean nobody knows?  Your thread has been here what not even 3 days yet..

        If your connecting to a vpn service that is using username and passwords then yes.  If they defaulted to 2, that is just one thing that users would dick up and wonder why it doesn't work because they don't read and just click shit ;)

        Kind of how there are hidden firewall rules created when you enable dhcpd that are not shown.  Because the typical user would not know what to enable if not there, and if they were shown would end up deleting and then asking why dhcpd is not working.

        Do you always need to know what they use to make the hotdog?

        If you want to make it 2 - go right ahead and edit the source file so its a 2..

        https://github.com/pfsense/pfsense/search?utf8=%E2%9C%93&q=script-security&type=

        And update to pfsense will put it back to 3.

        While openvpn might put a warning in the connection about it… Is it really an issue on your firewall, where YOU created the connection to this vpn?

        An intelligent man is sometimes forced to be drunk to spend time with his fools
        If you get confused: Listen to the Music Play
        Please don't Chat/PM me for help, unless mod related
        SG-4860 24.11 | Lab VMs 2.7.2, 24.11

        1 Reply Last reply Reply Quote 0
        1 out of 3
        • First post
          1/3
          Last post
        Copyright 2025 Rubicon Communications LLC (Netgate). All rights reserved.
          This community forum collects and processes your personal information.
          consent.not_received