Created
February 28, 2023 10:19
-
-
Save wupher/a936393dd7572fd841028a1da692ea91 to your computer and use it in GitHub Desktop.
Apple sciprt to setup web proxy
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
networksetup -setwebproxy Wi-Fi 127.0.0.1 1234 | |
networksetup -setsecurewebproxy Wi-Fi 127.0.0.1 231 | |
networksetup -setsocksfirewallproxy Wi-Fi 127.0.0.1 1232 | |
networksetup -setproxybypassdomains Wi-Fi 192.168.0.0/16 10.0.0.0/8 172.16.0.0/12 127.0.0.1 localhost *.local timestamp.apple.com sequoia.apple.com seed-sequoia.siri.apple.com | |
// proxy off | |
networksetup -setwebproxystate Wi-Fi off | |
networksetup -setsecurewebproxystate Wi-Fi off | |
networksetup -setsocksfirewallproxystate Wi-Fi off |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment