78

Viewing or Changing SOCKS Firewall Proxy Settings

To view the SOCKS firewall proxy information for a configuration:

$ sudo networksetup -getsocksfirewallproxy "configuration"

To set the SOCKS firewall proxy information for a configuration:

$ sudo networksetup -setsocksfirewallproxy "configuration" domain portnumber

To enable or disable the SOCKS firewall proxy for a configuration:

$ sudo networksetup -setsocksfirewallproxystate "configuration" (onoff)

Viewing or Changing Proxy Bypass Domains

To list the proxy bypass domains for a configuration:

$ sudo networksetup -getproxybypassdomains "configuration"

To set the proxy bypass domains for a configuration:

$ sudo networksetup -setproxybypassdomains "configuration" [domain1] domain2

[...]

Managing AirPort Settings

AirPort uses wireless local area network (WLAN) technology to provide wireless communication between computers. Use the networksetup tool to view or change the AirPort settings.

To see if AirPort power is on or off:

$ sudo networksetup -getairportpower

To turn AirPort power on or off:

$ sudo networksetup -setairportpower (onoff)

To display the name of the current AirPort network:

$ sudo networksetup -getairportnetwork

To join an AirPort network:

$ sudo networksetup -setairportnetwork network [password]

Chapter 6 Setting Network Preferences

Page 78
Image 78
Apple Mac OS X Server manual Managing AirPort Settings, Viewing or Changing Socks Firewall Proxy Settings