Ask Different (Apple)
Q&A for power users of Apple hardware and software
Latest Questions
0
votes
1
answers
71
views
How can I sandbox a macOS app to run specifically through a SOCKS proxy?
I'm in a situation in which I don't want to control the system proxy for this, but want to control it on a per-app basis. Say I launch Spotify, all processes Spotify spawns as well as the main Spotify process goes through my proxy, while the rest of the system maintains direct access. This isn't an...
I'm in a situation in which I don't want to control the system proxy for this, but want to control it on a per-app basis.
Say I launch Spotify, all processes Spotify spawns as well as the main Spotify process goes through my proxy, while the rest of the system maintains direct access.
This isn't an issue for certain apps, that let you control proxy settings within them, but for most apps that isn't the case.
Miles Muehlbach
(63 rep)
May 15, 2025, 01:41 AM
• Last activity: May 18, 2025, 12:34 AM
2
votes
0
answers
102
views
Why is macOS sending plain HTTP requests to my secure web proxy?
I have developed a web proxy server. It's running on a Raspberry Pi in my house, and it seems to be working as intended using Linux devices I have around and using cURL on my Mac. However, in practice, when I configure my Mac in System Settings to use the proxy server, things don't go as expected. I...
I have developed a web proxy server. It's running on a Raspberry Pi in my house, and it seems to be working as intended using Linux devices I have around and using cURL on my Mac. However, in practice, when I configure my Mac in System Settings to use the proxy server, things don't go as expected. I found that my Mac will always send plain HTTP requests to the server despite having configured a "secure web proxy (HTTPS)" as opposed to a "web proxy (HTTP)" (and the
Proxy-Authorization
header is missing despite having configured a username and password).
I tried handling this in the proxy server, by detecting if it received HTTP data instead of TLS data and responding with a “426 Upgrade Required” and the relevant headers, but this seems to be ignored. The TLS certificate was generated using [mkcert](https://github.com/FiloSottile/mkcert) , and the CA is correctly installed on my Mac. The proxy server is served on port 443.
My Mac is on macOS 15.5 (24F74). I also tested on my iPhone, iOS 18.5 (22F76), which seems to completely ignore the proxy altogether. As far as I can tell, no requests from my iPhone go through the proxy at all.
valentinegb
(61 rep)
May 13, 2025, 10:11 PM
• Last activity: May 14, 2025, 05:47 PM
2
votes
2
answers
618
views
How to access the Internet from my Mac through my iPhone's cellular connection without using the plan's hotspot data?
I have an occasional need, when traveling, to access the Internet from my Mac using my iPhone's cellular data plan. But I wish to do so without making use of my cellular plan's hotspot data. While my phone's data plan lets me access "unlimited" data from my phone, my plan only allows 2GB per month o...
I have an occasional need, when traveling, to access the Internet from my Mac using my iPhone's cellular data plan. But I wish to do so without making use of my cellular plan's hotspot data. While my phone's data plan lets me access "unlimited" data from my phone, my plan only allows 2GB per month of hotspot data. In other words, when I connect my Mac to the "Personal Hotspot" provided by my iPhone, I'm severely limited in the amount of data my Mac can access. I don't need an excessive amount of data but I do need a lot more than 2GB in a month. So I'm looking for ways around using the iPhone's "Personal Hotspot" feature which depends on my plan's hotspot data limit. No external Wi-Fi will be available during this time.
Is there any way to allow my Mac to use my iPhone's cellular data without using my plan's hotspot data? I've done a lot of searching and the few results I've found about avoiding a person hotspot is to enable USB tethering. But this is done on the Personal Hotspot settings screen. And when my Mac is setup to use this network connection, my cellular provider is showing that hotspot data is being used (and the iPhone has the green capsule in the top-left corner of the screen).
Checking email, general web browsing, and some file downloads can be done on my iPhone directly. But some things must be done on the Mac. Some examples of things I might need to do on my Mac while making use of the iPhone's cellular Internet access:
- Update macOS on my Mac
- Run an app on my Mac that needs Internet access to obtain data
Is there a 3rd party app that can be run on the iPhone that can act as some sort of proxy that the Mac can be setup to use? Or is there some other way?
I'm currently running iOS 18.3.2 and macOS 15.3.2.
HangarRash
(169 rep)
Mar 15, 2025, 04:30 PM
• Last activity: Mar 25, 2025, 05:38 AM
31
votes
4
answers
43838
views
How to quick switch OSX proxy on/off?
I use [SwitchySharp](https://chrome.google.com/webstore/detail/proxy-switchysharp/dpplabbmogkhghncfbfdeeokoefdjegm) to quick switch between multi-proxies under Chrome broswer. Now I want to move to Safari(I love its ["Tap to Zoom"](http://www.apple.com/osx/what-is/gestures.html#gallery-gestures-tap-...
I use [SwitchySharp](https://chrome.google.com/webstore/detail/proxy-switchysharp/dpplabbmogkhghncfbfdeeokoefdjegm) to quick switch between multi-proxies under Chrome broswer.
Now I want to move to Safari(I love its ["Tap to Zoom"](http://www.apple.com/osx/what-is/gestures.html#gallery-gestures-tap-zoom) feature), but SwitchySharp only works in Chrome, there is no a counterpart in Safari extension.
So I wonder if there is a system level quick proxy switcher script or free app?
Leon
(411 rep)
Apr 19, 2013, 07:39 AM
• Last activity: Feb 5, 2025, 08:53 AM
0
votes
1
answers
1719
views
How do I connect to a VPN through a HTTP/HTTPS proxy?
MacBook Pro (Retina, 15-inch, Mid 2015), OS X El Capitan (10.11.1) I'm currently on a Macbook Pro mid 2015 with OS X 10.11.1 and I need help bypassing my university's proxy server. I believe they use squid/3.3.8. Applications such as Battle.Net, Steam, Git, uTorrent and Slack are blocked and I need...
MacBook Pro (Retina, 15-inch, Mid 2015), OS X El Capitan (10.11.1)
I'm currently on a Macbook Pro mid 2015 with OS X 10.11.1 and I need help bypassing my university's proxy server. I believe they use squid/3.3.8.
Applications such as Battle.Net, Steam, Git, uTorrent and Slack are blocked and I need them. Skype & Appstore seem to work.
I have heard that in order to bypass the proxy I'll have to connect to a VPN, my colleagues managed to connect to a VPN but they're all on Windows.
I've tried several free VPN services and apps such as: OpenVPN, TunnelBlick, TunnelBear, CyberGhost and I couldn't connect to them, it always said that the server is unreachable or that the connection failed. I also tried to connect to a paid VPN using iSstp & L2TP over IPSec but again it didn't work.
I could connect to my paid VPN when I was at home and not on proxy. Also I tried to use software like ProxyCap and Proxifier but they didn't work.
I've managed to connect to the VPN using bootcamp and Windows but I don't want to waste space with Windows. There I used a software made by Hideman VPN which is also available on Mac but it doesn't work on Mac.
I want to know if there's any software that can help me to bypass the proxy. Thank you.
Denis Nutiu
(153 rep)
Dec 8, 2015, 11:39 AM
• Last activity: Dec 30, 2024, 03:15 AM
4
votes
3
answers
5127
views
Proxy is configured (correctly, I guess). Appstore and Safari work fine. But network traffic on Terminal does not work
Set HTTP, HTTPS, FTP, SOCKS, Streaming, Gopher to 10.11.0.1 and port 8080, with no username and password. And it works for Safari and App Store. And set the same entries to Firefox and it also works with no issue. How do I set the proxy for particular networks so that it works fine on every app?
Set HTTP, HTTPS, FTP, SOCKS, Streaming, Gopher to 10.11.0.1 and port 8080,
with no username and password. And it works for Safari and App Store. And set the same entries to Firefox and it also works with no issue.
How do I set the proxy for particular networks so that it works fine on every app?
gaidink
(43 rep)
Aug 14, 2018, 07:50 AM
• Last activity: Oct 19, 2024, 03:35 AM
0
votes
0
answers
16
views
Why are proxy settings not always respected by programs launched from Term?
Why do some programs evade the proxy settings at `Settings > Wifi > Details > Proxies`? I would expect that a system-wide setting would apply to all traffic. However, I can set the HTTP and HTTPS proxy to a local IP and port, use an off-the-shelf proxy (like Charles), and kick off certain commands t...
Why do some programs evade the proxy settings at
Settings > Wifi > Details > Proxies
? I would expect that a system-wide setting would apply to all traffic. However, I can set the HTTP and HTTPS proxy to a local IP and port, use an off-the-shelf proxy (like Charles), and kick off certain commands that do not appear in Charles.
A really easy one is curl. If you setup an HTTP proxy and then pop into term and do something like
curl https://www.google.com
You will find that traffic does not go through Charles! Instead, you have to explicitly tell curl where the proxy is, e.g.:
ALL_PROXY=http://localhost:8888 curl https://www.google.com
I'm curious what's happening here. Specific questions:
1. Is there any information about the type of traffic that actually routes through the wifi proxy settings versus traffic that does not?
2. Is there a way to route all traffic through a local proxy?
Thanks for reading.
Lou Zell
(101 rep)
Oct 19, 2024, 12:02 AM
0
votes
0
answers
204
views
tcpdump/wireshark aren't seeing DNS requests from browser or ping on Mac OS
I use Mac OS Sequoia 15.0.1 and I'm trying to capture DNS traffic using wireshark or tcpdump, but I can't see any packets whatsoever and I don't understand what Mac does differently here and why I can't observe this traffic. Initially I thought that the browsers used DoH or some kind of proxy even a...
I use Mac OS Sequoia 15.0.1 and I'm trying to capture DNS traffic using wireshark or tcpdump, but I can't see any packets whatsoever and I don't understand what Mac does differently here and why I can't observe this traffic.
Initially I thought that the browsers used DoH or some kind of proxy even after making sure they're disabled (Firefox/Chrome), but then I realised that pinging a domain also doesn't result in any traffic being captured.
I've also tested this on an older Mac OS (13.6.9) and it seems to be behaving identically.
sudo tcpdump -i any -n port 53 -nnp
ping aol.com
If I try using dig
or nslookup
, it works as expected. So it's clear to me that the browsers and ping
use a different DNS path.
Any ideas why this happens and how the DNS requests are being sent?
What I also did was to make sure that "Private Wi-Fi Address" in the Wi-Fi section was turned off. At some point while doing this I also came across a request to "aol.com" in the packet capture, but I can't tell for sure what happened and it's quite hard to reproduce.
When I turn the Wi-Fi adapter off and on completely, all of a sudden I see all these DNS requests which correspond to my open browser tabs. So in that intermediary phase it seems to work as expected (i.e. I see the DNS traffic).
It might be the case that Apple actually simply ignores the user and does what it wants and still sends DNS requests over HTTPS to their server, but only when it makes sure that the DNS server is reachable (or something like that), but I can't be 100% sure of that.
**[Later edit]**
I've realised that when I set IPv6 to Link-Local Only, all of a sudden I can see all the DNS traffic.
This also applies when Mac OS sometimes decides to turn off IPv6 completely and arbitrarily when reconnecting/waking the laptop from sleeping, and I can see that it's set to "off" in the Wi-Fi Network settings (an option I normally don't have access to on the interface, i.e. I cannot manually set it back to "off").
**[Update]**
Another funny thing that I've noticed is that it isn't strictly about setting IPv6 to "Automatically". It seems to also be related to whether I get an IPv6 configuration (IP, Prefix, GW, etc.) or not.
On another Wi-Fi Network where IPv6 is not configured at all, I can see all the DNS traffic using tcpdump, even if it's set to "Automatically".
Lethargos
(223 rep)
Oct 11, 2024, 02:18 PM
• Last activity: Oct 14, 2024, 11:27 AM
20
votes
3
answers
146850
views
How to set proxy on OS X Terminal permanently?
For every new session in OS X terminal, I have to make my proxy settings again. I do this by entering the command export http_proxy="username:password@ip address:port number" Is there a way to make these proxy settings once for all?
For every new session in OS X terminal, I have to make my proxy settings again. I do this by entering the command
export http_proxy="username:password@ip address:port number"
Is there a way to make these proxy settings once for all?
curio17
(303 rep)
Feb 7, 2016, 05:08 AM
• Last activity: Aug 30, 2024, 12:18 PM
0
votes
0
answers
48
views
System proxy appears not apply for terminal and chorme
I'm getting start with mitmproxy and I'm having some issues setting a system proxy. 1. I start mitmproxy in a terminal 2. I can `curl --proxy http://localhost:8080 https://example.com` and see the request appear 3. I set the http and https proxy in the system proxies settings: [![List item][1]][1] 4...
I'm getting start with mitmproxy and I'm having some issues setting a system proxy.
1. I start mitmproxy in a terminal
2. I can
4. I've used Firefox retrieve the root CA certificate and have trusted it, and I can requests made by Firefox appearing in the mitmproxy log.
5. Requests made in chrome do not appear
6. Curl requests made without the
curl --proxy http://localhost:8080 https://example.com
and see the request appear
3. I set the http and https proxy in the system proxies settings:

--proxy
option do not appear
7. In terminal, if I first run
export http_proxy="http:/127.0.0.1:8080"
export https_proxy="http:/127.0.0.1:8080"
Then the curl requests will appear.
Does the system proxy simply not apply to terminal and chrome?
dwjohnston
(121 rep)
Aug 9, 2024, 12:26 AM
• Last activity: Aug 9, 2024, 12:55 AM
1
votes
1
answers
494
views
How to determine if there is a stealth proxy server recording my computer?
Sorry for rough question, I'm not an engineeer. My company just bought me an Apple computer. I've heard of privacy leaks and computer data stealers such as proxy server, etc. I know firewall proxy server can record all your internet data coming out of computers. I was wondering if there are any stat...
Sorry for rough question, I'm not an engineeer.
My company just bought me an Apple computer. I've heard of privacy leaks and computer data stealers such as proxy server, etc.
I know firewall proxy server can record all your internet data coming out of computers.
I was wondering if there are any stats to find out proxies in terminal even if they have been hidden by design or implementation.
I tried
ifconfig
in my computer.
here are some proxies among them.
lo0 gif0 anpi1 en2 bridge0 ap1 vmenet0
Are these an indicator of potential security or privacy compromises?
Chunhao
(11 rep)
May 27, 2024, 01:41 AM
• Last activity: Jul 27, 2024, 07:28 AM
2
votes
3
answers
380
views
How can we restore Apple silicon Mac hardware on networks secured in an enterprise environment?
Is there some way to do a full IPSW restore in an enterprise environment? In our case this means no DHCP and behind a proxy. Other machines all have a fixed IP and proxy certificate installed. But last time I tried this won't work with a Silicon Mac because it wants to fetch some stuff from Apple be...
Is there some way to do a full IPSW restore in an enterprise environment?
In our case this means no DHCP and behind a proxy. Other machines all have a fixed IP and proxy certificate installed. But last time I tried this won't work with a Silicon Mac because it wants to fetch some stuff from Apple before you even get to the point where you can install certificates.
Or is there maybe some way to auto-deploy them during a restore?
maxxter
(21 rep)
Jan 26, 2022, 02:48 PM
• Last activity: Jul 16, 2024, 11:36 AM
18
votes
7
answers
25681
views
Are there less expensive (or free) alternatives to Charles proxy?
Does anybody know a free alternative to [Charles (an HTTP debugging proxy][1]), preferably with a GUI and similar features? Features that I'm interested in: * Inspect HTTP requests/responses (header, body, etc) * JSON syntax highlighting and formatting * Request filter (by host, URL, etc) * Search *...
Does anybody know a free alternative to Charles (an HTTP debugging proxy ), preferably with a GUI and similar features?
Features that I'm interested in:
* Inspect HTTP requests/responses (header, body, etc)
* JSON syntax highlighting and formatting
* Request filter (by host, URL, etc)
* Search
* Would be awesome if it could render HTML (Charles can't do it)
I’m willing to sacrifice features in exchange for not paying the $50 license fee currently required to license the first seat of Charles proxy suite of tools.
iosdude
(351 rep)
Sep 12, 2016, 05:41 AM
• Last activity: Jun 17, 2024, 01:45 PM
1
votes
1
answers
270
views
How do I enable Proxy Configuration File for VPN on Mac Terminal?
I'm using a Mac, I have the corporate VPN turned on (Cisco AnyConnect Secure Mobility Client) In the Proxies tab of System Preferences I have "Proxy Configuration File" enabled with the URL (http://proxyaddress:portnumber) I can connect to the internet via chrome browser fine, but my terminal has no...
I'm using a Mac, I have the corporate VPN turned on (Cisco AnyConnect Secure Mobility Client)
In the Proxies tab of System Preferences I have "Proxy Configuration File" enabled with the URL (http://proxyaddress:portnumber)
I can connect to the internet via chrome browser fine, but my terminal has no internet access.
Is there a way for me to declare the Proxy Configuration File URL in Terminal, so I can connect terminal to the internet while the VPN is turned on?
Seán
(11 rep)
Feb 24, 2023, 12:33 PM
• Last activity: Mar 20, 2024, 07:02 PM
2
votes
2
answers
1494
views
Is there an app for Mac thats lets me route all system traffic through a SOCKS5 server?
I'm already using the socks proxy option in the network settings. The problem is, not all applications appear to be passing their traffic through the proxy. Is there a simple SOCKS client for Mac which would create a system VPN configuration for routing the traffic?
I'm already using the socks proxy option in the network settings.
The problem is, not all applications appear to be passing their traffic through the proxy.
Is there a simple SOCKS client for Mac which would create a system VPN configuration for routing the traffic?
Aurora
(31 rep)
Jun 15, 2023, 10:27 PM
• Last activity: Feb 7, 2024, 12:07 AM
10
votes
2
answers
14360
views
How to configure proxy settings for a specific network?
A network I connect to requires configuring proxy settings to reach the Internet. When I configure those settings within the `Automatic` location, it applies to every network I connect to. Is there a way to apply those settings only to this specific network so when I connect to it those proxy settin...
A network I connect to requires configuring proxy settings to reach the Internet.
When I configure those settings within the
Automatic
location, it applies to every network I connect to.
Is there a way to apply those settings only to this specific network so when I connect to it those proxy settings work and when I connect to another network they do not?
onlyforthis
(533 rep)
Jan 19, 2016, 08:03 AM
• Last activity: Jan 31, 2024, 12:15 AM
0
votes
2
answers
1015
views
iOS switch network configuration
On our iPhones (a lot of test devices) we switch often between a plain network connection and a connection with a proxy. The normal flow require 1. Go to `setting` 2. Select `wifi preference` 3. `enable proxy` 4. type the proxy address Is there any way to "save" the proxy setting and enable/disable...
On our iPhones (a lot of test devices) we switch often between a plain network connection and a connection with a proxy.
The normal flow require
1. Go to
setting
2. Select wifi preference
3. enable proxy
4. type the proxy address
Is there any way to "save" the proxy setting and enable/disable with a single button?
Ignazio
(235 rep)
Jan 18, 2016, 08:56 AM
• Last activity: Jan 30, 2024, 08:44 PM
0
votes
0
answers
337
views
How to connect MacBook to Socks5 proxy, but over a VPN?
I have a MacBook Pro with both Mullvad VPN and Proxifier installed. I'm trying to run both simultaneously, so that my traffic follows this pattern: HOST >> VPN >> SOCKS5 >> Internet Running the VPN and Proxifier simultaneously makes it impossible to access the internet. Either application works fine...
I have a MacBook Pro with both Mullvad VPN and Proxifier installed.
I'm trying to run both simultaneously, so that my traffic follows this pattern:
HOST >> VPN >> SOCKS5 >> Internet
Running the VPN and Proxifier simultaneously makes it impossible to access the internet. Either application works fine, but only if enabled separately.
If I try to setup the proxy in System Preferences, I learn the option is only available if Mullvad VPN is disabled.
I've achieved this on Linux using VM's, but I'd prefer to avoid VM's on the Mac.
Is installing the VPN on a travel router, connecting the Mac to the VPN router, and connecting to the Socks5 from the Mac, going to be the the least complicated solution, or would I spending money unnecessarily?
Zoidberg_777
(21 rep)
Dec 17, 2023, 07:57 AM
6
votes
1
answers
3563
views
Force all applications to use system proxy in macOS Sierra
I am forced to use the company's proxy, but some applications (apps) like Cisco VPN Client, Adobe, and others don't use system proxy, and I can't configure proxy settings in apps. Is any way to force that alls apps use system proxy?
I am forced to use the company's proxy, but some applications (apps) like Cisco VPN Client, Adobe, and others don't use system proxy, and I can't configure proxy settings in apps.
Is any way to force that alls apps use system proxy?
user7398873
(61 rep)
Jan 10, 2017, 10:35 AM
• Last activity: Dec 1, 2023, 12:08 PM
0
votes
1
answers
792
views
Access VPN Connected in VMWare Windows 10 in Macbook Bigsur
I have Macbook Pro which has windows installed in VMWare Fusion. I have VPN installed inside windows 10 and i can connect and access websites. Is there a way i can connect VPN in windows and proxy it to Mac via some port or something ? I'm just thinking out loud. Thanks,
I have Macbook Pro which has windows installed in VMWare Fusion. I have VPN installed inside windows 10 and i can connect and access websites.
Is there a way i can connect VPN in windows and proxy it to Mac via some port or something ?
I'm just thinking out loud.
Thanks,
Sathish
(131 rep)
Jun 8, 2021, 04:46 AM
• Last activity: Sep 9, 2023, 11:02 PM
Showing page 1 of 20 total questions