Navigation

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

    Open VPN client Export Util…Yes again

    2.0-RC Snapshot Feedback and Problems - RETIRED
    2
    9
    2290
    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.
    • T
      townsenk last edited by

      First i want to say the client export utility is a great package

      However,

      It fails to download configurations in IE8. It attempts to download the php file instead and it fails.
      Firefox works fine..

      I know this is probably a javascript issue with IE8 but I was curious if anyone has found a workaround with one of the IE8 advanced settings or something.

      Also the download utility packages up the openvpn installer as one of it's options. can this be updated to version 1.2.3(latest) instead of 1.2.1?

      I know you'd like to put alot of these Openvpn client utility issues to rest but it's such a valuable part to anyone utilizing the OpenVPN features.

      Thank You

      1 Reply Last reply Reply Quote 0
      • jimp
        jimp Rebel Alliance Developer Netgate last edited by

        Out of curiosity, does the same thing happen when using HTTP and HTTPS?

        I thought I fixed this once before…

        Also make sure you are not using IE8 compatibility mode.

        Remember: Upvote with the 👍 button for any user/post you find to be helpful, informative, or deserving of recognition!

        Need help fast? Netgate Global Support!

        Do not Chat/PM for help!

        1 Reply Last reply Reply Quote 0
        • T
          townsenk last edited by

          You are on to something. Yes it works with HTTPS but not regular HTTP.

          1 Reply Last reply Reply Quote 0
          • jimp
            jimp Rebel Alliance Developer Netgate last edited by

            Can you try with this change? It's the only difference in the exporter between http and https:

            diff --git a/config/openvpn-client-export/vpn_openvpn_export.php b/config/openvpn-client-export/vpn_openvpn_export.php
            index d876b51..bc083e1 100755
            --- a/config/openvpn-client-export/vpn_openvpn_export.php
            +++ b/config/openvpn-client-export/vpn_openvpn_export.php
            @@ -168,10 +168,8 @@ if($act == "conf" || $act == "confall") {
                         $exp_size = strlen($exp_data);
                     }
            
            -        if (isset($_SERVER['HTTPS'])) {
            -            header('Pragma: ');
            -            header('Cache-Control: ');
            -        }
            +        header('Pragma: ');
            +        header('Cache-Control: ');
                     header("Content-Type: application/octet-stream");
                     header("Content-Disposition: attachment; filename={$exp_name}");
                     header("Content-Length: $exp_size");
            @@ -246,10 +244,8 @@ if($act == "visc") {
                 if (!$error) {
                     $exp_size = filesize($exp_path);
            
            -        if (isset($_SERVER['HTTPS'])) {
            -            header('Pragma: ');
            -            header('Cache-Control: ');
            -        }
            +        header('Pragma: ');
            +        header('Cache-Control: ');
                     header("Content-Type: application/octet-stream");
                     header("Content-Disposition: attachment; filename={$exp_name}");
                     header("Content-Length: $exp_size");
            @@ -320,10 +316,8 @@ if($act == "inst") {
                 if (!$error) {
                     $exp_size = filesize($exp_path);
            
            -        if (isset($_SERVER['HTTPS'])) {
            -            header('Pragma: ');
            -            header('Cache-Control: ');
            -        }
            +        header('Pragma: ');
            +        header('Cache-Control: ');
                     header("Content-Type: application/octet-stream");
                     header("Content-Disposition: attachment; filename={$exp_name}");
                     header("Content-Length: $exp_size");
            
            

            Remember: Upvote with the 👍 button for any user/post you find to be helpful, informative, or deserving of recognition!

            Need help fast? Netgate Global Support!

            Do not Chat/PM for help!

            1 Reply Last reply Reply Quote 0
            • T
              townsenk last edited by

              I have limited time at the moment but yes I can try the change later this afternoon.

              I'll let you know the results

              1 Reply Last reply Reply Quote 0
              • T
                townsenk last edited by

                The changes seem to have corrected the issue. Thank You
                I also found the template directory which allowed me to upgrade the opvpn installer to the latest version 2.1.3

                1 Reply Last reply Reply Quote 0
                • jimp
                  jimp Rebel Alliance Developer Netgate last edited by

                  I committed that fix, since it seemed to work for you.

                  I'll look into updating the client software version. Does it still install properly after you copied the new installer up?

                  Remember: Upvote with the 👍 button for any user/post you find to be helpful, informative, or deserving of recognition!

                  Need help fast? Netgate Global Support!

                  Do not Chat/PM for help!

                  1 Reply Last reply Reply Quote 0
                  • T
                    townsenk last edited by

                    Yes, it installs without any issues, provided it renamed correctly of course.

                    Thanks again

                    1 Reply Last reply Reply Quote 0
                    • jimp
                      jimp Rebel Alliance Developer Netgate last edited by

                      I updated the version in the package to 2.1.3. We'll see how it goes. :-)

                      Remember: Upvote with the 👍 button for any user/post you find to be helpful, informative, or deserving of recognition!

                      Need help fast? Netgate Global Support!

                      Do not Chat/PM for help!

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