Navigation

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

    "script-security 3" instead of 2?

    OpenVPN
    2
    3
    2204
    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.
    • beremonavabi
      beremonavabi last edited by

      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
      • beremonavabi
        beremonavabi last edited by

        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
        • johnpoz
          johnpoz LAYER 8 Global Moderator last edited by

          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
          2440 2.4.5p1 | 2x 3100 2.4.4p3 | 2x 3100 22.01 | 4860 22.05

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