OpenVPN and Mac clients fix

Post new topic   Reply to topic    DD-WRT Forum Index -> Broadcom SoC based Hardware
Goto page Previous  1, 2, 3
Author Message
josh256
DD-WRT Novice


Joined: 14 Apr 2008
Posts: 29

PostPosted: Mon Apr 21, 2008 1:51    Post subject: Reply with quote
try changing your up script to do a manual ip address vs. dhcp...

eg. change: ipconfig set tap0 DHCP
to
ipconfig set tap0 MANUAL 192.168.1.xxx 255.255.255.0

(assuming your destination network is on the 192.168.1.x subnet)
Sponsor
sant0sk1
DD-WRT Novice


Joined: 19 Apr 2008
Posts: 2

PostPosted: Wed Apr 23, 2008 15:57    Post subject: Reply with quote
hey hey hey! That seemed to do it. Thanks a lot Josh.
Nielsen
DD-WRT Novice


Joined: 26 Jan 2008
Posts: 1

PostPosted: Mon May 05, 2008 5:52    Post subject: Re: Updating TunnelBlick openvpn2 binary and tun/tap drivers Reply with quote
josh256 wrote:
***EDIT: Turns out the newer openvpn2 binary and updated tun/tap drivers can be quickly patched into Tunnelblick - I now have Tunnelblick working/stable.

To update Tunnelblick w/ the latest openvpn2 binary and tun/tap drivers (as per my previous post):

bash-3.2# sudo -s
bash-3.2# cd /Applications/Tunnelblick.app/Contents/Resources/
bash-3.2# mv tap.kext tap.kext.orig
bash-3.2# mv tun.kext tun.kext.orig
bash-3.2# mv openvpn openvpn.orig
bash-3.2# cp -R /Library/Extensions/tap.kext ./
bash-3.2# cp -R /Library/Extensions/tun.kext ./
bash-3.2# cp -R /opt/local/sbin/openvpn2 ./openvpn


Dear Josh,

could you upload your stable and updated tunnelblick version somewhere and spread a link or send it per pm/mail? This would be very helpful for me and all the other folks which are'nt such kind of terminal guy.
Thank you very much!

Bests,
Niels.
josh256
DD-WRT Novice


Joined: 14 Apr 2008
Posts: 29

PostPosted: Mon May 26, 2008 15:41    Post subject: Since this is all open source I think this is okay... Reply with quote
... please correct me if I'm mistaken:

tunnleblick update binaries/drivers:
http://forum.insanelymac.com/index.php?showtopic=99307

alternate:
http://www.sendspace.com/file/u884nf

alternate:
http://rapidshare.com/files/117772790/Tunnleblick_binaries.zip.html
josh256
DD-WRT Novice


Joined: 14 Apr 2008
Posts: 29

PostPosted: Tue Nov 18, 2008 23:31    Post subject: Slick solution Reply with quote
Folks,
Just an FYI: I've switched to viscosity.. I was able to get by with Tunnleblick but I was having to do a lot of manual cleanup ("sudo killall openvpn" and the like).. I was just about to recompile openvpn 2.1 into the tunnleblick directory and stumbled accross Viscosity which costs $9 but is very slick (Viscosity also solved the DHCP issues). I will continue to use Tunnleblick personally but have transitioned my wife and sister onto Viscosity.

PS: if you have problems porting your tunnleblick profiles/keys

cd ~/Library/openvpn
sudo chown -R root:YOUR_USER_NAME *
rollinc
DD-WRT Novice


Joined: 10 Jul 2009
Posts: 5

PostPosted: Sat Jul 11, 2009 9:54    Post subject: Reply with quote
I had the same problem over and over again. None of the automatic fixes you described worked for me, only the terminal one.

I found a solution and it workes like a charm!

You have to edit
Code:
/Applications/Tunnelblick.app/Contents/Resources/client.up.osx.sh
and insert after Line 11 and bevore exit0 the code from the first post
Code:
sleep 2 sudo ipconfig set tap0 DHCP


It should look like this
Code:
# only do something when the server really is pushing something
if [ "$foreign_option_1" == "" ]; then
   
   sleep 2
   sudo ipconfig set tap0 DHCP
   exit 0
fi


My System is Leopard (10.5.7) and i´ve running Tunnelblick 3.0b10.
ChuckThePlant
DD-WRT Novice


Joined: 12 Aug 2009
Posts: 1

PostPosted: Wed Aug 12, 2009 13:42    Post subject: Reply with quote
Hi -- @rollinc
I tried several solutions (some worked) but your fix is the best working for me so far :)

I only tried bridge connections but I guess that for tunnels the line would have to be changed to
Quote:
sleep 2 sudo ipconfig set tun0 DHCP

or?
I going to try to replace tap0 by $1 - which should contain the device (following one of the first posts) - probably the variable is already set when 'client.up.osx.sh' is processed
smudgeface
DD-WRT Novice


Joined: 24 Jan 2008
Posts: 20

PostPosted: Tue Sep 01, 2009 10:04    Post subject: Reply with quote
I was able to make this work by scrapping bash and moving to python:

Code:
#!/usr/bin/python

import os, sys

try:
    tun_dev, tun_mtu, link_mtu = sys.argv[1:4]
except:
   sys.exit(0)

if tun_dev[0:3] == 'tap':
   os.system('/usr/sbin/ipconfig set "%s" DHCP' % os.environ['dev'])


works like a charm for me...
Goto page Previous  1, 2, 3 Display posts from previous:    Page 3 of 3
Post new topic   Reply to topic    DD-WRT Forum Index -> Broadcom SoC based Hardware All times are GMT

Navigation

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
You can attach files in this forum
You can download files in this forum