networksetup Komutları

Macos X işletim sistemine sahip cihazlardaki tum ethernet kartlarına asagıdaki komutları kullanarak proxy adresi , proxy portu ,proxybypass adreslerini set edebilirsiniz

Makina uzerindeki tum cihazların listelemek icin networksetup -listallnetworkservices parametresini kullanabilir ve sonrasınd proxy ayarlarını gonderebilirsiniz.

#!/bin/sh

networksetup -setproxyautodiscovery Wi-Fi on
networksetup -setwebproxystate “Wi-Fi” on
networksetup -setwebproxy “Wi-Fi” “proxyserver” “8080”
networksetup -setsecurewebproxystate “Wi-Fi” on
networksetup -setsecurewebproxy “Wi-Fi” “proxyserver” “8080”
networksetup -setproxybypassdomains “Wi-Fi” 172.16/16

networksetup -setproxyautodiscovery Ethernet on
networksetup -setwebproxystate “Ethernet” on
networksetup -setwebproxy “Ethernet” “proxyserver” “8080”
networksetup -setsecurewebproxystate “Ethernet” on
networksetup -setsecurewebproxy “Ethernet” “proxyserver” “8080”
networksetup -setproxybypassdomains “Ethernet” 172.16/16

networksetup -setproxyautodiscovery “Thunderbolt Ethernet” on
networksetup -setwebproxystate “Thunderbolt Ethernet” on
networksetup -setwebproxy “Thunderbolt Ethernet” “proxyserver” “8080”
networksetup -setsecurewebproxystate “Thunderbolt Ethernet” on
networksetup -setsecurewebproxy “Thunderbolt Ethernet” “proxyserver” “8080”
networksetup -setproxybypassdomains “Thunderbolt Ethernet” 172.16/16
exit 0

networksetup Komutlarıbilgenk
03