LoginSignup
3
0

More than 5 years have passed since last update.

macOS 10.14 Mojave 以降で pac ファイルを使って proxy の設定を行いたいけど出来なかった話

Posted at

超要約

以下簡単に調べた内容

macOS 10.14 以前までは Macでproxy.pacを設定したいとき を参考にローカルに pac ファイルを使ってproxyが行えました。
実際私も業務で使っていました。
ただ、最近突然使えなくなりました。

調べたところ、

Deprecations
The ftp:// and file:// URL schemes for Proxy Automatic Configuration (PAC) are deprecated. HTTP and HTTPS are the only supported URL schemes for PAC. This affects all PAC configurations including, but not limited to, configurations set via Settings, System Preferences, profiles, and NSURLSession APIs such as connectionProxyDictionary, and CFNetworkExecuteProxyAutoConfigurationURL. (37811761)

との記載がありました。
どうやらローカルのpacファイルを指定して使うことが出来ないみたいです……
これはpacに限らずmacのシステム用の設定ファイル等でも同様のようです。

今はchromeの拡張機能を使ってproxyを使っています。

Chrome ウェブストア Proxy SwitchyOmega

設定方法とかはここを参考にしました。

Chromeで特定サイトのみプロキシ経由でアクセスする拡張機能Proxy SwitchyOmega

この拡張機能はpacファイルも使えるので、以前使っていたpacファイルの中身をコピペして設定しています。
そう頻繁に切り替える内容ではないのでこれで自分は問題なく使えてます。

3
0
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
3
0