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

    How to fix "no tun option in conf file" issue with Tunnelblick client on OS X

    Scheduled Pinned Locked Moved OpenVPN
    11 Posts 4 Posters 11.8k 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.
    • johnpozJ
      johnpoz LAYER 8 Global Moderator
      last edited by

      so what version of pfsense are you running?  what version of export package? What is your vpn server settings?  Which config are you grabbing?  I just grabbed the inline ovpn file that would be used by viscosity or tunnelblick client and sure looks like dev tun is right there

      2.3.2-RELEASE (amd64)
      built on Tue Jul 19 12:44:43 CDT 2016
      FreeBSD 10.3-RELEASE-p5

      openvpn-client-export 1.3.10

      edit: did you grab the ios/android export - it does not contain a dev statement because it only support dev tun and not tap, etc.  So client doesn't need to be told so its missing..

      exportconfig.jpg
      exportconfig.jpg_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
        divsys
        last edited by

        did you grab the ios/android export

        This is the main cause of the OP error message, simply choose the "Others" option on the OpenVPN Client Export page when exporting for TunnelBlick and all will be good.

        -jfp

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

          or grab the viscosity one that says for os x mac clients, etc..

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

            @johnpoz:

            so what version of pfsense are you running?  what version of export package? What is your vpn server settings?  Which config are you grabbing?  I just grabbed the inline ovpn file that would be used by viscosity or tunnelblick client and sure looks like dev tun is right there

            2.3.2-RELEASE (amd64)
            built on Tue Jul 19 12:44:43 CDT 2016
            FreeBSD 10.3-RELEASE-p5

            openvpn-client-export 1.3.10

            edit: did you grab the ios/android export - it does not contain a dev statement because it only support dev tun and not tap, etc.  So client doesn't need to be told so its missing..

            I'm running:
            pfSense 2.3.2-RELEASE (amd64) and openvpn-client-export v1.3.10.

            I did grab the ios/android export version, as I first tested on my iPhone.  Looking at the list of export options, it isn't obvious which option to select if you want to use the Tunnelblick client on OS X, so I attempted to use the iOS inline export, which had worked great on the iPhone.  It may be useful to append some text to "Tunnelblick - Free client for OS X".  Perhaps it should be "Tunnelblick - Free client for OS X (use Inline Configurations Other)".

            Thanks for the explanation on why I was missing the "dev tun" line.  Obviously it was "user error", rather than a bug in the SW.  But, it may be useful to append some text to "Tunnelblick - Free client for OS X" on the VPN -> OpenVPN -> Client Export page.  Perhaps it should be "Tunnelblick - Free client for OS X (select Inline Configurations 'Other')".

            @johnpoz:

            or grab the viscosity one that says for os x mac clients, etc..

            The way the text on the page is worded, it reads as if the Viscosity one is only for the Viscosity client.  If the Viscosity one is intended to be used with other clients, the text should be changed to state that.

            All this is simple enough once you know what the author of the page really meant, but the user initially only knows what the page actually states, and he assumes that the words were chosen carefully.

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

              While I agree with the statement they could prob add tunnelblick to the wording for which ones are best used for that one.. I don't see how ios/android would be best choice for clearly something that is not ios/android ;)

              But I admit I have had many years experience compared to your typical user.

              So are you using the one listed for viscosity and all is working good?  If so you may want to put request on redmine to get the wording changed.  While many of the developers do read the forums and pick up on stuff here and add it/fix stuff because of threads its always best to put it in redmine so its sure to get attention at some point, etc.

              Glad you got it all sorted.

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

                @johnpoz:

                While I agree with the statement they could prob add tunnelblick to the wording for which ones are best used for that one.. I don't see how ios/android would be best choice for clearly something that is not ios/android ;)

                But I admit I have had many years experience compared to your typical user.

                So are you using the one listed for viscosity and all is working good?  If so you may want to put request on redmine to get the wording changed.  While many of the developers do read the forums and pick up on stuff here and add it/fix stuff because of threads its always best to put it in redmine so its sure to get attention at some point, etc.

                Glad you got it all sorted.

                Yes, I tried the Viscosity conf, and it works with Tunnelblick, at least during my very limited initial testing, using a connection to the iPhone to get to the WAN (I was sitting at home).  I'll get a proper test done when away from the house later this week.  I'll put a change request on redmine once I've satisfied myself that the Viscosity conf truly is satisfactory with Tunnelblick.

                Thanks for the help.

                1 Reply Last reply Reply Quote 0
                • D
                  divsys
                  last edited by

                  I just did a line by line compare between the "Viscosity Inline" and the "iOS/android Inline" "Inline Others" export files.

                  The only difference is a set of "commented out" directives at the start of the config, specific to Viscosity.
                  They are commented out so they shouldn't affect a typical install, but I would suggest the cleaner "iOS/android Inline" "Inline Others" version, just to keep crud out of your configs.

                  I agree the wording on the export screen could be handled more clearly, I bump into getting the wrong config on a semi-irregular basis.
                  Luckily no harm done, just get the correct config and delete the wrong one.
                  OpenVPN is nice that way.

                  -jfp

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

                    but the ios/android does not list dev tun.. Should it?  I have no issues using this config on my ios devices.  Guess it couldn't hurt but when I export ios/android config while it lists persist tun I do not see any dev statement.

                    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
                      divsys
                      last edited by

                      but the ios/android does not list dev tun.. Should it?

                      Sorry, my bad I meant "Inline -Others" where I originally typed iOS/android
                      The iOS/android version is indeed missing the "dev tun" entry as it's not required as you mentioned (and have worked well every time I've needed them)

                      Didn't mean to confuse, I edited the previous post.

                      -jfp

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

                        The "dev tun" line is left out of the IOS/Android one because the OpenVPN connect app would choke on it. Not sure if it still does, though.

                        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
                        Copyright 2025 Rubicon Communications LLC (Netgate). All rights reserved.