I see two problems here. The first problem is this part of your server
configuration:
push "dhcp-option DOMAIN mydomain1 mydomain2"
Per the OpenVPN documentation, this option is invalid. You cannot
specify more than one search domain. While the server will technically
push this option for you, the behavior is undefined in this case. The
primary reason for this is because there are no DHCP clients (Windows,
Mac OS X, Linux, Debian, etc.) that support multiple search domains.
Imagine the conflicts it would cause. What if your search domains were
"
corporate1.com" and "
corporate2.com" and someone entered the DNS
search "mail." That's a fairly common domain name, and there's a good
chance both
mail.corporate1.com and
mail.corporate2.com exist. Which
one is the DNS client supposed to return a result for? That question
and the lack of a good answer for it is why the developers of DHCP and
DNS clients declined to support multiple search domains.
The second problem is that there is a bug in the "Set nameserver" up
script.
Jonathan, look at line 501 of
client.up.tunnelblick.sh. I made it:
domain="$(trim "${vOptions[nOptionIndex-1]//dhcp-option DOMAIN /}")"
But I should have made it:
sDomainName="$(trim "${vOptions[nOptionIndex-1]//dhcp-option
DOMAIN /}")"
Because that's how it's referenced in the rest of the
configureOpenVpnDns function.
We will get that bug fixed in the next beta release I'm sure. If you
are even a little script savy and don't mind getting your hands dirty,
you can make that change yourself and it should start setting the
search domain for you again (that would also help us confirm that
that's the only problem with the script). To do so:
- Open your Applications folder
- Right-click on Tunnelblick and click "Show Package Contents"
- In the window that opens, Double-click on Content and then Resources
- Edit the file
client.up.tunnelblick.sh and make that change to line
501. If you have TextWrangler installed, it will take care of
unlocking the file and will ask you for your password to save it. If
you don't, you will need to move the file to your desktop, edit it,
save it, move it back into Resources and reset the permissions.
Jonathan might have better instructions for you.
Please note that even with this fix, multiple search domains are still
not supported. Its behavior is undefined if you set multiple search
domains. More than likely, your computer will only pay attention to
one of them. So you should contact your system administrator and have
them remove the extra domain from the push option (or, if you are the
admin, you should remove the extra domain).
Hope this helps everyone. Let me know if there are any questions.
Nick
> 2011-06-29 00:13:06 *Tunnelblick: openvpnstart: /Applications/Tunnelblick.app/Contents/Resources/openvpn --cd /Users/hmolina/Library/Application Support/Tunnelblick/Configurations/SoloTSC.tblk/Contents/Resources --daemon --management 127.0.0.1 1339 --config /Users/hmolina/Library/Application Support/Tunnelblick/Configurations/CONFIG.tblk/Contents/Resources/config.ov pn --log /Library/Application Support/Tunnelblick/Logs/-SUsers-Shmolina-SLibrary-SApplication Support-STunnelblick-SConfigurations-SCONFIG.tblk-SContents-SResources-Scon fig.ovpn.1_0_0_0_49.1339.openvpn.log --management-query-passwords --management-hold --script-security 2 --up /Applications/Tunnelblick.app/Contents/Resources/
client.up.tunnelblick.sh -m -w -d --down /Applications/Tunnelblick.app/Contents/Resources/
client.down.tunnelblick.sh -m -w -d --up-restart
>
h.mol...@gmail.org
>
> smime.p7s
> 4KViewDownload