Created
June 26, 2017 03:13
-
-
Save canhnht/24026bd6aa2cf812cb5cef8da862cd91 to your computer and use it in GitHub Desktop.
Turn on/off proxy setting for DH-FPT networks
This file contains hidden or 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
#!/bin/sh | |
sudo networksetup -setproxyautodiscovery 'Wi-Fi' off | |
sudo networksetup -setwebproxystate 'Wi-Fi' off | |
sudo networksetup -setsecurewebproxystate 'Wi-Fi' off | |
sudo networksetup -setftpproxystate 'Wi-Fi' off | |
sudo networksetup -setsocksfirewallproxystate 'Wi-Fi' off |
This file contains hidden or 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
#!/bin/sh | |
sudo networksetup -setproxyautodiscovery 'Wi-Fi' on | |
sudo networksetup -setwebproxy 'Wi-Fi' proxy 8080 | |
sudo networksetup -setsecurewebproxy 'Wi-Fi' proxy 8080 | |
sudo networksetup -setftpproxy 'Wi-Fi' proxy 8080 | |
sudo networksetup -setsocksfirewallproxy 'Wi-Fi' proxy 8080 | |
#export http_proxy=http://proxy:8080 | |
#export https_proxy=http://proxy:8080 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment