|
|
-----Original Message----- From: openvpn-users-admin@xxxxxxxxxxxxxxxxxxxxx [mailto:openvpn-users-admin@xxxxxxxxxxxxxxxxxxxxx] On Behalf Of glynn taylor Sent: Friday, July 01, 2005 10:38 AM To: Angelo Laub; Jan van Rensburg Cc: Petr Cervenka; openvpn-users@xxxxxxxxxxxxxxxxxxxxx Subject: [Openvpn-users] MacOS X 10.4 No DNS issue Is there a solution to the 10.4 no DNS issue? I have searched the archives and revisited the web-site. I can't find a concise solution. We are using 2.0 on the server side and 10.4 clients, even with tunnelblick don't work. They can connect but it is as if there is no dns server. Thx gt ____________________________________________ Openvpn-users mailing list Openvpn-users@xxxxxxxxxxxxxxxxxxxxx https://lists.sourceforge.net/lists/listinfo/openvpn-users More info. Here is the up.pl script I am using (from this mailing list). It uses the foreign_option_X. I have a few questions. Does tunnelblick call the up.pl file or does it duplicate this functionality? I also don't know what "X" should be in the foreign_option_X. The script uses either 1 or 4. I know, I'll ask Mr. Angelo Laub too. Thanks GT #!/usr/bin/perl -T use strict; use warnings; # # Script to setup resolv.conf for openvpn if a nameserver is advertised # # Tim Bruijnzeels, 12-Jan-2005 # my $OS; my $resolv; my $lookupdpid; $OS = "OSX"; # $OS = "linux"; if ($OS eq 'OSX') { $resolv = "/var/run/resolv.conf"; # change to /etc/resolv.conf for # linux $lookupdpid = "/var/run/lookupd.pid"; } elsif ($OS eq 'linux') { $resolv = "/etc/resolv.conf"; } else { die "Don't know that OS!\n"; } # Get values for ns (nameserver) and dom (search domain) my ($ns, $dom); # Prevent warnings if the corresponding env variable aren't set if (defined ($ENV{foreign_option_4}) ) { ($ENV{foreign_option_4} =~ /(\S+)\s*$/) and $dom = $1; } if (defined ($ENV{foreign_option_1}) ) { ($ENV{foreign_option_1} =~ /(\S+)\s*$/) and $ns = $1; } %ENV=( 'PATH' => '/bin:/sbin:/usr/bin:/usr/sbin' ); sub backupResolvConf () { unless (system ("mv $resolv $resolv.org") == 0) { die "Can't rename $resolv to $resolv.org\n" } } sub makeNewResolvConf () { open RESOLV, ">", "$resolv.new" or die "Can't write to $resolv.new\n"; if ($dom) { print RESOLV "domain $dom\n"; } print RESOLV "nameserver $ns\n"; close RESOLV; unless (system("mv $resolv.new $resolv") == 0) { die "Can't rename $resolv.new to $resolv\n" } } sub restoreResolvConf () { if (-e "$resolv.org") { unless (system("mv $resolv.org $resolv") == 0) { die "Could not restore $resolv.org\n"; } } } # The lookupd is used by many applications and caches --among other # things -- ip addresses sub kickCacher () { if (! -e $lookupdpid) { return; } # Apparently lookupd isn't running system ("kill -HUP `cat $lookupdpid`"); } ############################## main ########################################## if ($0 =~ /up\.pl$/) { print "Bringing the VPN up\n"; if ($ns) { print "Changing DNS configuration\n"; backupResolvConf(); sleep 3; makeNewResolvConf(); if ($OS eq 'OSX') { sleep 1; kickCacher(); } } } if ($0 =~ /down\.pl$/) { print "Restoring DNS configuration\n"; restoreResolvConf(); # Won't fail if this not needed if ($OS eq 'OSX') { sleep 1; kickCacher(); } } ____________________________________________ Openvpn-users mailing list Openvpn-users@xxxxxxxxxxxxxxxxxxxxx https://lists.sourceforge.net/lists/listinfo/openvpn-users Warning: require_once(../../../archive_common.php) [function.require-once]: failed to open stream: No such file or directory in /home/openvpn/domains/openvpn.net/public_html/archive/openvpn-users/2005-07/msg00006.html on line 299 Fatal error: require_once() [function.require]: Failed opening required '../../../archive_common.php' (include_path='/usr/local/lib/php') in /home/openvpn/domains/openvpn.net/public_html/archive/openvpn-users/2005-07/msg00006.html on line 299 |