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

    Reasonably secure config for OpenVPN?

    Scheduled Pinned Locked Moved OpenVPN
    6 Posts 4 Posters 1.6k 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.
    • C
      coreybrett
      last edited by

      Just looking for some general feedback on my configuration.
      I am authenticating against AD/LDAP and using certs created within pfSense.
      Is this a reasonably secure configuration for remote RDP access?

      dev ovpns1
      verb 1
      dev-type tun
      dev-node /dev/tun1
      writepid /var/run/openvpn_server1.pid
      #user nobody
      #group nobody
      script-security 3
      daemon
      keepalive 10 60
      ping-timer-rem
      persist-tun
      persist-key
      proto udp
      cipher AES-128-CBC
      auth SHA256
      up /usr/local/sbin/ovpn-linkup
      down /usr/local/sbin/ovpn-linkdown
      client-connect /usr/local/sbin/openvpn.attributes.sh
      client-disconnect /usr/local/sbin/openvpn.attributes.sh
      local 50.x.x.x
      tls-server
      server 10.19.81.0 255.255.255.0
      client-config-dir /var/etc/openvpn-csc
      username-as-common-name
      auth-user-pass-verify "/usr/local/sbin/ovpn_auth_verify user 'Nova' true server1" via-env
      tls-verify "/usr/local/sbin/ovpn_auth_verify tls 'edge.x.edu' 1 "
      lport 1194
      management /var/etc/openvpn/server1.sock unix
      max-clients 20
      push "route 192.168.76.0 255.255.255.0"
      push "dhcp-option DOMAIN x.pri"
      push "dhcp-option DNS 192.168.76.6"
      push "dhcp-option DNS 192.168.76.7"
      push "register-dns"
      ca /var/etc/openvpn/server1.ca 
      cert /var/etc/openvpn/server1.cert 
      key /var/etc/openvpn/server1.key 
      dh /etc/dh-parameters.4096
      crl-verify /var/etc/openvpn/server1.crl-verify 
      tls-auth /var/etc/openvpn/server1.tls-auth 0
      comp-lzo no
      passtos
      persist-remote-ip
      float
      topology subnet
      tls-version-min 1.2
      tls-cipher TLS-DHE-RSA-WITH-AES-256-GCM-SHA384
      

      1 Reply Last reply Reply Quote 0
      • johnpozJ
        johnpoz LAYER 8 Global Moderator
        last edited by

        sure…  Not sure what flavor of remote desktop your using, but for quite some time UDP is also viable and faster, so you might want to allow udp as well.

        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.8, 24.11

        1 Reply Last reply Reply Quote 0
        • C
          coreybrett
          last edited by

          Clients are connecting to Win7 Pro machines in their offices.
          I've never heard of RDP over UDP, I will have to check into that.

          1 Reply Last reply Reply Quote 0
          • DerelictD
            Derelict LAYER 8 Netgate
            last edited by

            You can probably more strictly limit the destination DNS hosts too.

            Chattanooga, Tennessee, USA
            A comprehensive network diagram is worth 10,000 words and 15 conference calls.
            DO NOT set a source address/port in a port forward or firewall rule unless you KNOW you need it!
            Do Not Chat For Help! NO_WAN_EGRESS(TM)

            1 Reply Last reply Reply Quote 0
            • johnpozJ
              johnpoz LAYER 8 Global Moderator
              last edited by

              RDP 8 came out in what 2012?? when windows 8 came out.. It was released for windows 7 around the same time I do believe.  Current is 8.1 which also runs on windows 7..

              rdpconnectioninfo.png
              rdpconnectioninfo.png_thumb
              rdptraffic.png
              rdptraffic.png_thumb

              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.8, 24.11

              1 Reply Last reply Reply Quote 0
              • D
                doktornotor Banned
                last edited by

                RDP over UDP works even on W7, the RDP 8.0/8.1 updates have been available for quite some time.

                https://support.microsoft.com/en-us/kb/2592687
                https://support.microsoft.com/en-us/kb/2830477

                1 Reply Last reply Reply Quote 0
                • First post
                  Last post
                Copyright 2025 Rubicon Communications LLC (Netgate). All rights reserved.