Questions tagged [vpn]

A VPN is a Virtual Private Network, an encrypted connection from one computer (e.g. a home one) to another network (e.g. a work one). It can also be between two networks.

Filter by
Sorted by
Tagged with
38 votes
2 answers
38k views

How to auto connect to VPN upon login/boot?

So far, I've been using the build-in VPN tool of Lion. I would like to auto connect my VPN whenever I'm connected to the internet. Is it possible to auto connect my VPN whenever I'm connected to the ...
  • 47.5k
4 votes
1 answer
3k views

Routing all traffic except a few IP-ranges though default gateway in Mountain Lion

I am using VPN (Cisco IPSec) through the default Mountain Lion network preferences. In Lion (and also in Snow Leopard), I did the following to change the routing back to using my default gateway for ...
2 votes
2 answers
2k views

Improve file transfer performance over VPN

I have two Apple machines: a server and a client. Both are running the newest builds of macOS Sierra 10.12.6. The “server” machine is running macOS Server running VPN and file sharing. Both machines ...
  • 3,469
8 votes
1 answer
38k views

How to configure VPN per app in iOS 7?

As one of the business feature the upcoming iOS 7, Apple has announced the ability to configure VPN on application basis. However, details about this feature are hard to find on the web. I am ...
  • 955
22 votes
5 answers
18k views

How does my iMac know my location in the maps app, given that I use a VPN that has my IP about 200 miles from where my address is?

I have an iMac (Mid 2011, if it matters) and I just installed Mavericks. When I launch the Maps app, it knows PRECISELY where I am, which I could certainly understand if it was using IP geolocation. ...
  • 221
26 votes
8 answers
57k views

Mac OS X Mountain Lion - DNS resolving uses wrong order on VPN via dial-up connection

I am using a MacBook with Mac OS X 10.8.2 and connect to my company's network via VPN. Everything works great when establishing the VPN connection via LAN or WLAN. However, when I use a dial-up ...
20 votes
1 answer
14k views

Is it possible to have per-app network/vpn/proxy settings

I have a few different applications on my Mac that ideally I would like to run with different network settings. One app for work I need to run over my work VPN, but at the same time, I have another ...
18 votes
2 answers
97k views

Where is the "Send all traffic over VPN connection" setting in OSX 10.9 Mavericks?

I'm attempting to change the settings of a Cisco IPSec VPN connection which was set up through OSX's built in VPN client in system preferences. The VPN functions as expected, allowing me to access ...
18 votes
2 answers
8k views

How to ensure that all traffic goes through VPN connection once it has been started?

I connect to the internet through a VPN provider along with other precautions in order to ensure privacy (against traffic analysis by agencies of a repressive government). I currently use Tunnelblick ...
  • 181
12 votes
1 answer
18k views

Surprisingly many network interfaces on macOS: are these legitimate?

ifconfig reveals a surprisingly long list of network interfaces on my MacBook, which is running macOS High Sierra (10.13.6): lo0, gif0, stf0, XHC20, en0, p2p0, awdl0, en1, en2, bridge0, utun0. There ...
  • 1,171
34 votes
7 answers
36k views

The process com.cisco.anyconnect.macos.acsockext hogs Mac CPU but cannot be killed or stopped from launching

MacBookPro16,1 running Big Sur 11.3.1 (20E241) This job consumes huge amounts of CPU off and on (see attached image from my Activity Monitor), often causing my laptop fans to engage to cool the ...
6 votes
8 answers
79k views

VPN client is not working after Yosemite update: Enforce Firewall Policy Fail

I use both the Apple VPN client (L2TP over IPSec in Network preferences) and Checkpoint Endpoint Security client to connect to work. I installed Yosemite last night and today I can not connect to ...
  • 226
10 votes
3 answers
42k views

How to create a VPN connection via terminal?

I have a macbook pro with mavericks running. I am looking for a way to connect to a VPN network in terminal. The reason why I want to do this is that I want to write a small program in Python which ...
11 votes
2 answers
3k views

How should I use VPN on a Mac to prevent compromise before the VPN starts?

As most experienced users will have heard, using a Mac in a public untrusted Wi-Fi can be potentially harmful. A tool like Firesheep1 has made it very easy to intercept unencrypted communication. ...
  • 47.5k
9 votes
5 answers
55k views

How to connect OS X Yosemite to a Windows based SSTP VPN?

I am trying to connect to a Windows based SSTP VPN network. I am using OS X Yosemite, I was wondering if there is any solution that can allow me to connect to a SSTP based VPN. For the record, I ...
  • 91
2 votes
1 answer
10k views

How can I make my iPhone automatically connect to a VPN when connecting to a WiFi?

When connecting to public WiFi networks, I prefer to have more privacy and also want to be sure that really every network packet is encrypted1. You can achieve that by connecting to a VPN, for example....
4 votes
1 answer
7k views

How to automatically connect VPN when connecting to a network?

In my university, the only way to access Internet is to connect to a VPN server. I've configured the VPN on my Mac and it's working fine, but I need to manually connect to the VPN every time I connect ...
  • 1,610
1 vote
2 answers
4k views

networksetup -connectpppoeservice "VPN" does not work anymore on Yosemite

I have some bash scripts to connect my VPN but since Yosemite was installed they doesn't work anymore. I tested directly on Terminal with and without sudo: networksetup -connectpppoeservice "VPN" ...
22 votes
5 answers
19k views

How do you get a Cisco VPN connection to remember its password?

The Problem I've got a Cisco IPSEC VPN connection in my network settings on a Yosemite machine. It works fine, aside from prompting for a password on every single connection. The saved password is ...
  • 2,625
57 votes
8 answers
103k views

Stop Cisco AnyConnect Secure Mobility Client from starting up automatically

So I am currently running: OS X 10.10.5 Cisco AnyConnect Secure Mobility Client 4.1.04011 I boot up my laptop and AnyConnect is running. I go into Preferences...Users & Groups and remove /...
  • 1,709
16 votes
3 answers
42k views

Juniper Network Connect hangs at "Establishing Secure Session" after upgrading to OS X Yosemite

I know it's a bad idea to upgrade an OS so soon when you are running any enterprise software, especially related to security/vpns etc. But I did! And I would like to avoid downgrading if possible. ...
15 votes
8 answers
18k views

Getting VPN to auto-reconnect on connection drop

I use the built-in VPN on Mac OS X 10.7.3. It's IPSec, FWIW. From time to time, it disconnects (probably an issue with my corporate server). Is there a way to get it to automatically reconnect? ...
55 votes
2 answers
85k views

How can I read the log when I fail with VPN

I have a Macbook Pro and I'm trying to get VPN from home to work. It refuse to work. I have turned on verbose logging, but how can I read the log ?
14 votes
3 answers
35k views

How can I make the Cisco VPN Client work with Lion?

Worked in Snow Leopard and now gives error 51 and the sudo restart system command in Terminal i used to use doesn't work. Any idea?
20 votes
1 answer
2k views

Macbook freezes upon waking when connected to VPN

I have a 2019 15" MacBook Pro running OS X Mojave (10.14.6) (company laptop, so can't update yet) and I have a weird problem. When I am connected to the company VPN (via the built-in client, no third ...
10 votes
1 answer
60k views

What is VPN on demand, and how do I get it to work with iOS?

I know what a VPN is, and I've done a little reading about how to set up VPN on demand. However, I'm confused. Is VPN on demand essentially a certificate instead of a password prompt on each connect?...
  • 8,611
6 votes
10 answers
46k views

Deleting VPN Configuration Files From Network System Preferences

Unfortunately I used a bad VPN service called VPN OneClick Pro. When you uninstall the app it does not remove the VPN configuration files it creates in Network in System Preferences. So in other ...
  • 61
9 votes
5 answers
25k views

A Mac OS X VPN client that can import a .VPN file

I have a .vpn file that I use on Windows with the Shrew Soft VPN Client that has the connection details (excluding the username and password). Is there an equivalent client for Mac OS X that will ...
  • 1,001
7 votes
1 answer
12k views

How to start Tunnelblick VPN connection via Terminal

I can connect/disconnect using the Tunnelblick app. How do I connect via the command line? /Applications/Tunnelblick.app/Contents/Resources/openvpnstart start ??? How do I determine the parameters ...
  • 175
4 votes
5 answers
38k views

Sharing a VPN connection using Internet Sharing (via Airport)

Internet Sharing from my MacBook Pro (10.6.6) to other WiFi devices works fine. But the moment I turn on the VPN connection (PPTP) on the Mac (which I would also like to share), the other devices ...
  • 5,038
8 votes
2 answers
8k views

How do I automatically connect to a VPN when using Wi-Fi in OS X? [duplicate]

The FBI issued a warning regarding hotel Wi-Fi access points, and any other public access point. I'd like to make sure my apple device always uses a VPN when using Wi-Fi. That way even if an attacker ...
5 votes
1 answer
3k views

Loss of Internet while on VPN on Mac

I have to connect to Cisco AnyConnect VPN from my Mac for work. Whenever I do, I lose the Internet. My routing table before connecting; Routing tables Internet: Destination Gateway ...
  • 153
4 votes
1 answer
18k views

Remote controlling a Macbook Pro with the lid down?

I have a MacBook Pro that I would like to use while I'm at work, but am reluctant to actually take to work because the environment is quite dusty. I have been provided with a IBM Thinkpad running ...
  • 273
1 vote
1 answer
1k views

pfctl config to only allow OpenVPN connection

I found what appears to be a suitable guide here, but pfctl complains of a syntax error and "no IP address found for en3" which is my main interface. I have had other pf rules working successfully to ...
9 votes
2 answers
35k views

Can't connect to L2TP over IPSec VPN from Mac 10.12.4

Have troubles with connecting to my VPN from Mac. Using default Mac client, pre-shared secret. Also this works well on iOS 10.3.2 from the same Wi-Fi network. Firewall is disable, no Little Snitch. ...
  • 91
6 votes
1 answer
3k views

How to override DNS resolver ordering while connected to L2TP VPN

OS: macOS Mojave 10.14 (18A389) Current network setup: Local domain: home.rossipedia.com Subnet: 172.16.10.0/24 Gateway / DHCP server / DNS server: 172.16.10.1 Output of scutil --dns: DNS ...
4 votes
1 answer
2k views

DNS on VPN does not work

I have an Azure Point-to-Site VPN over IKEv2 configured and it works well. The problem is with DNS. DNS adresses are filled in Advanced tab of the VPN connection but it does not resolve anything. ...
3 votes
1 answer
3k views

macOS Sierra 10.12.6 can't connect to VPN using IKEv2. How to troubleshoot?

I am trying to setup a VPN connection using IKEv2. I fill in the server address, the remote ID and the user/password. When I click connect it tries to do it but immediately disconnects. How can I ...
2 votes
1 answer
1k views

Easy solution to use a SmartCard with a 15" MacBook Pro?

I am looking for a simple solution that would enable my MacBook Pro to read smartcards and use them with Cisco AnyConnect VPN solution. Do you know what cards are supported on OS X Lion?
  • 27.6k
1 vote
0 answers
137 views

How to enforce that all traffic from iOS app goes through VPN? [duplicate]

I need to make sure that one of the apps I use can only use internet traffic that goes through VPN. How, as a non-corporate user, can I achieve that? Can per-app VPN settings enabled with a custom ...
1 vote
2 answers
11k views

VPN Passthrough problems with Airport Extreme

Today I started trying to work from a network that uses the Airport Extreme version 7.7.1. Typically I use a VPN client (Viscosity) which gives me access to the various servers that my company runs ...
7 votes
1 answer
9k views

Troubleshooting IKEv2 on 10.11 El Capitan

How do I troubleshoot IKEv2 VPN issues on El Capitan? I've followed these instructions to create an IKEv2 VPN (and certificate) on a Ubuntu server that I want to connect to, which all seems pretty ...
5 votes
0 answers
767 views

How to restore network preferences in OS X?

I took my SSD, plugged it into another Mac, and booted the system (OS X 10.10.4) there. When I opened the Network Preferences, I was surprised to find, that all VPN services had disappeared. I am ...
  • 7,254
4 votes
1 answer
2k views

Website unreachable / PR_END_OF_FILE_ERROR / tries connects to localhost instead

Since some weeks I have a very strange issue, where I'm stuck how to further debug, specially as I'm more of a Linux Guy in front of a MacOS (10.15.4) From time to time I get in Firefox/Chrome a ...
  • 71
3 votes
3 answers
377 views

Running OS X Server on main machine

I'm considering installing the OS X Server app on my main, day-to-day machine, in order to run Xcode Server and get a GUI for the VPN configuration (I'm already using the VPN with a manually ...
  • 433
3 votes
1 answer
2k views

How can I set up an Apple TV (4th gen) connection to a PPTP/L2TP VPN?

I have in the offices an Apple TV with a custom app that allows each office to see a dashboard with data. The problem is that this data is in the main server, in the office headquarters. Is there ...
2 votes
2 answers
1k views

Cannot connect to Mac (Big Sur) running SSH server while connected to VPN

I cannot connect to my Mac via SSH when I run a VPN client on it. When I connect to the public IP address of my Mac, the return packets are being routed over the VPN. I need to force these packets to ...
  • 41
1 vote
0 answers
213 views

VPN client software for macOS which allows for split tunnelling incoming SSH connections

As @bmike explained in Cannot connect to Mac (Big Sur) running SSH server while connected to VPN a VPN client allowing for split tunnelling is required in order to connect to a host via SSH which has ...
  • 41
1 vote
1 answer
265 views

Only HTTPS websites working otherwise I receive ERR_CONNECTION_REFUSED [duplicate]

I am facing annoying problem of only HTTPS websites working on my Mac (in all browsers). I can only visit Google, YouTube, Facebook, Yahoo etc. So far, I tried following: Websites shows error of: ...
  • 113
1 vote
0 answers
1k views

yosemite DNS resolution woes over IPSec tunnels / VPN

I am connecting to a Cisco IPSec tunnel from MacOS to a hosted pfsense box that is running a number of other IPSec site-to-sites happily, and the DNS resolution is not working. I also am in full ...
  • 111