Go Back   The macosxhints Forums > OS X Help Requests > Networking



Reply
 
Thread Tools Rate Thread Display Modes
Old 09-08-2009, 04:36 AM   #1
bgrieder
Prospect
 
Join Date: Sep 2008
Posts: 5
Snow Leopard - VPN nodefaultroute broken in pppd

Hi,

After upgrading to Snow Leopard, the nodefaultroute pppd option seems to be ignored.

Did anyone else face the same issue?

I circumvented the issue by adding a line in my /etc/ppp/ip-up script:

/sbin/route delete -ifscope ppp0 default $IPREMOTE

... but I would rather have pppd working correctly and the Network Settings panel fixed and improved once and for all.

Bruno
bgrieder is offline   Reply With Quote
Old 09-13-2009, 07:02 PM   #2
nsolent
Prospect
 
Join Date: Sep 2009
Posts: 2
I found that in Snow Leopard, the ppp connection order (#1) caused it to be the default route while connected (regardless of the "send all traffic" option). Moving it below the ethernet/firewall options fixed this.

Also, after a Snow Leopard upgrade from Leopard, my PPTP VPN broke ... it connected, but route was broken w/ no response when pinging hosts on remote network.
Turned out that some NAT service was semi-on - the resolution was to start & stop internet sharing in the Sharing pane of System Preferences. (the /Library/Preferences/SystemConfiguration/com.apple.nat.plist was configured NAT/enabled = 1 even though the preference pane showed internet sharing as turned off)(deleting this plist also resolved the issue)

-Z
nsolent is offline   Reply With Quote
Old 09-15-2009, 03:24 AM   #3
bgrieder
Prospect
 
Join Date: Sep 2008
Posts: 5
Snow Leopard - VPN nodefaulroute (and more...) broken

Hi nsolent,

Thanks. I reorganized the order of the connections and this seems to make the default routes order more reliable.
However, the nodefaultroute option keeps being ignored.

Something else is very wrong anyway (btw, I performed the Snow Leopard upgrade and it did not improved things on both accounts).

After firing up the VPN connection, trying to ping, or traceroute a server address within or outside the VPN LAN, most of the time - not always- fails.

Code:
MacBook-de-BG:/ bgrieder$ traceroute forums.macosxhints.com
traceroute: unknown host forums.macosxhints.com
However, running an nslookup works !
Code:
MacBook-de-BG:/ bgrieder$ nslookup forums.macosxhints.com
Server:		192.168.0.22
Address:	192.168.0.22#53

Non-authoritative answer:
Name:	forums.macosxhints.com
Address: 70.42.185.231
while this server name "works",

Code:
MacBook-de-BG:/ bgrieder$ traceroute www.google.com
traceroute: Warning: www.google.com has multiple addresses; using 209.85.229.147
traceroute to www.l.google.com (209.85.229.147), 64 hops max, 52 byte packets
 1  192.168.0.1 (192.168.0.1)  1.488 ms  0.942 ms  0.830 ms
...
This very strange behaviour does not seem to be linked to the fact that the remote server answers ICMP requests (or not).

Looks like some network cache of the routes that is invalidated by the start-up of the VPN connection but not cleared...sigh....

The same behaviour has been confirmed on 2 other Macs running Snow Leopard. Apple really needs to fix this.

Cheers

Bruno
bgrieder is offline   Reply With Quote
Old 09-18-2009, 01:52 AM   #4
bgrieder
Prospect
 
Join Date: Sep 2008
Posts: 5
Snow Leopard: nodefaultroute broken in pppd - DNS issues

Replying to my own post, there are two issues with Snow Leopard:

-the nodefaultroute option being ignored (to which I would add a systematic unwanted usepeerdns - run 'scutil --dns' after firing up your VPN)

-DNS resolution problems - which explains the traceroute issues reported above
Please see this discussion for details.

In short, any somewhat elaborated set-up of network with 10.6 is currently a mess...

Bruno
bgrieder is offline   Reply With Quote
Old 10-04-2009, 01:27 PM   #5
MrJuicy
Registered User
 
Join Date: Oct 2009
Location: Chicago
Posts: 1
Workaround

After connecting to the Cisco VPN, I replace the DNS Servers and Search Domains for my primary network service (AirPort, in my case) with those of the VPN. When I disconnect, I delete those entries in the DNS tab of the "Advanced..." pane of Network Preferences for the AirPort service. They are automatically replaced with the proper settings by DHCP.

So Apple is failing to ensure that the DNS settings for the VPN are preferred over those of the primary interface. Looking forward to their fix. This is tedious.
MrJuicy is offline   Reply With Quote
Old 11-10-2009, 04:36 PM   #6
nsolent
Prospect
 
Join Date: Sep 2009
Posts: 2
dns after vpn

Yes, I haven't researched this but do experience it. The DNS lookups are sporadic after establishing a VPN connection - sometimes they're done on the primary connection's DNS servers, sometimes they're done on the VPN connection's DNS servers... and this is done in a rotation, not fall-back. It doesn't stick with the same DNS server throughout the VPN connection either. I heard mention this is not only problematic on OS X but VPN in general... again no research to clarify.

I may follow bgrieder's advice... but of course I'd rather a fix that didn't involve my regular intervention.
nsolent is offline   Reply With Quote
Old 11-23-2009, 03:41 PM   #7
willbryant
Guest
 
Posts: n/a
Thumbs up VPN Fixed.......Thanks

Quote:
Originally Posted by nsolent
I found that in Snow Leopard, the ppp connection order (#1) caused it to be the default route while connected (regardless of the "send all traffic" option). Moving it below the ethernet/firewall options fixed this.

Also, after a Snow Leopard upgrade from Leopard, my PPTP VPN broke ... it connected, but route was broken w/ no response when pinging hosts on remote network.
Turned out that some NAT service was semi-on - the resolution was to start & stop internet sharing in the Sharing pane of System Preferences. (the /Library/Preferences/SystemConfiguration/com.apple.nat.plist was configured NAT/enabled = 1 even though the preference pane showed internet sharing as turned off)(deleting this plist also resolved the issue)

-Z


Very Good!!! That fix worked for me. Thanks for the post
  Reply With Quote
Old 12-08-2009, 01:36 AM   #8
sanjeevani
Guest
 
Posts: n/a
How do I establish VPN when I TURN COMPUTER ON and BEFORE I log in as one of 3 users? I wrote a batch file and placed it in Startup Folder to establish a VPN connection. It works but only when I log in as a user. I want the connection established when the computer turns on , without having to log in as a user.
  Reply With Quote
Reply

Thread Tools
Display Modes Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump



All times are GMT -5. The time now is 09:34 PM.


Powered by vBulletin® Version 3.8.7
Copyright ©2000 - 2013, vBulletin Solutions, Inc.
Site design © IDG Consumer & SMB; individuals retain copyright of their postings
but consent to the possible use of their material in other areas of IDG Consumer & SMB.