MACOS 网卡信息配置(代理) - Mr.Ding

MACOS 网卡信息配置(代理)

天天记事 367 / 2022-04-29 20:04:51

#查看全部网络设备
networksetup -listallnetworkservices

#获取网卡信息
networksetup -getinfo "Wi-Fi"

#自动发现代理
networksetup -getproxyautodiscovery "Wi-Fi"
networksetup -setproxyautodiscovery "Wi-Fi" on

#自动代理配置
networksetup -getautoproxyurl "Wi-Fi"
networksetup -setautoproxyurl "Wi-Fi" "http://127.0.0.1:8999/proxy.pac.js"
networksetup -setautoproxystate "Wi-Fi" off

#HTTP代理
networksetup -getwebproxy "Wi-Fi"
networksetup -setwebproxy "Wi-Fi" "127.0.0.1" 10871
networksetup -setwebproxystate "Wi-Fi" off

#HTTPS代理
networksetup -getsecurewebproxy "Wi-Fi"
networksetup -setsecurewebproxy "Wi-Fi" "127.0.0.1" 10871
networksetup -setsecurewebproxystate "Wi-Fi" off

#SOCKT代理
networksetup -getsocksfirewallproxy "Wi-Fi"
networksetup -setsocksfirewallproxy "Wi-Fi" "127.0.0.1" 1080
networksetup -setsocksfirewallproxystate "Wi-Fi" off

#FTP代理
networksetup -getftpproxy "Wi-Fi"
networksetup -setftpproxy "Wi-Fi" "127.0.0.1" 1081
networksetup -setftpproxystate "Wi-Fi" off

#RTSP代理
networksetup -getstreamingproxy "Wi-Fi"
networksetup -setstreamingproxy "Wi-Fi" "127.0.0.1" 1082
networksetup -setstreamingproxystate "Wi-Fi" off

#Gopher代理
networksetup -getgopherproxy "Wi-Fi"
networksetup -setgopherproxy "Wi-Fi" "127.0.0.1" 1082
networksetup -setgopherproxystate "Wi-Fi" off


代理

上一篇:制作icns文件

下一篇:SVN仓库迁移