Choose Apple menu System Preferences, then click Network. Click the Add button in the list at the left, click the Interface pop-up menu, then choose VPN. Click the VPN Type pop-up menu, then choose what kind of VPN connection you want to set up, depending on the network you are connecting to. Recently after a while of working with Mountain Lion, VPN stops sending and receiving data and I have to disconnect/connect again to make it work again. I'm not having the same problem with iPad, iPhone and PC. And without the VPN, when I try pinging 4.2.2.4, 8.8.8.8 and other DNSs and all I get is timeouts!
OS X Server has long had a VPN service that can be run. The server is capable of running the two most commonly used VPN protocols: PPTP and L2TP. The L2TP protocol is always in use, but the server can run both concurrently. You should use L2TP when at all possible.Sure, “All the great themes have been used up and turned into theme parks.” But security is a theme that it never hurts to keep in the forefront of your mind. If you were thinking of exposing the other services in Mountain Lion Server to the Internet without having users connect to a VPN service then you should think again, because the VPN service is simple to setup and even simpler to manage.Setting Up The VPN Service In Mountain LionTo setup the VPN service, open the Server app and click on VPN in the Server app sidebar. The VPN Settings screen has two options available in the “Configure VPN for” field, which has two options:- L2TP: Enables only the L2TP protocol
- L2TP and PPTP: Enables both the L2TP protocol and the PPTP protocol
- Client Addresses: The dynamic pool of addresses provided when clients connect to the VPN
- DNS Settings: The name servers used once a VPN client has connected to the server. As well as the Search Domains configuration.
- Routes: Select which interface (VPN or default interface of the client system) that a client connects to each IP address and subnet mask over.
- Save Configuration Profile: Use this button to export configuration profiles to a file, which can then be distributed to client systems (OS X using the profiles command, iOS using Apple Configurator or both using Profile Manager).
sudo serveradmin start vpn
And to stop the service:sudo serveradmin stop vpn
And to list the available options:sudo serveradmin settings vpn
To disable L2TP, set vpn:Servers:com.apple.ppp.l2tp:enabled to no:Lion Vpn Pc
sudo serveradmin settings vpn:Servers:com.apple.ppp.l2tp:enabled = no
To configure how long a client can be idle prior to being disconnected:Www.ipvanish.com › Vpn-setup › MacMac VPN Software Setup - IPVanish
sudo serveradmin settings vpn:Servers:com.apple.ppp.l2tp:PPP:DisconnectOnIdle = 10
By default, each protocol has a maximum of 128 sessions, configureable using vpn:Servers:com.apple.ppp.pptp:Server:MaximumSessions:sudo serveradmin settings vpn:Servers:com.apple.ppp.pptp:Server:MaximumSessions = 200
To see the state of the service, the pid, the time the service was configured, the path to the log files, the number of clients and other information, use the fullstatus option:sudo serveradmin fullstatus vpn
See Full List On Giganews.com
Which returns output similar to the following:vpn:servicePortsAreRestricted = 'NO'vpn:readWriteSettingsVersion = 1vpn:servers:com.apple.ppp.pptp:AuthenticationProtocol = 'MSCHAP2'vpn:servers:com.apple.ppp.pptp:CurrentConnections = 0vpn:servers:com.apple.ppp.pptp:enabled = yesvpn:servers:com.apple.ppp.pptp:MPPEKeySize = 'MPPEKeySize128'vpn:servers:com.apple.ppp.pptp:startedTime = '2012-07-31 02:05:38 +0000'vpn:servers:com.apple.ppp.pptp:Type = 'PPP'vpn:servers:com.apple.ppp.pptp:SubType = 'PPTP'vpn:servers:com.apple.ppp.pptp:AuthenticatorPlugins = 'DSAuth'vpn:servers:com.apple.ppp.pptp:pid = 97849vpn:servers:com.apple.ppp.l2tp:AuthenticationProtocol = 'MSCHAP2'vpn:servers:com.apple.ppp.l2tp:CurrentConnections = 0vpn:servers:com.apple.ppp.l2tp:enabled = yesvpn:servers:com.apple.ppp.l2tp:startedTime = '2012-07-31 02:05:39 +0000'vpn:servers:com.apple.ppp.l2tp:Type = 'PPP'vpn:servers:com.apple.ppp.l2tp:SubType = 'L2TP'vpn:servers:com.apple.ppp.l2tp:AuthenticatorPlugins = 'DSAuth'vpn:servers:com.apple.ppp.l2tp:pid = 97852vpn:servicePortsRestrictionInfo = _empty_arrayvpn:health = _empty_dictionaryvpn:logPaths:vpnLog = '/var/log/ppp/vpnd.log'vpn:configured = yesvpn:state = 'RUNNING'vpn:setStateVersion = 1
Security folk will be stoked to see that the shared secret is shown in the clear using:vpn:Servers:com.apple.ppp.l2tp:L2TP:IPSecSharedSecretValue = 'a dirty thought in a nice clean mind'
Configuring Users For VPN Access