44

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

[...]

AirPort Settings

Viewing or Changing 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]

Computer, Host, and Rendezvous Name

Viewing or Changing the Computer Name

To display the server’s computer name:

$ sudo systemsetup -getcomputername

or

$ sudo networksetup -getcomputername

or

$ serversetup -getComputername

Chapter 5 Network Preferences

Page 44
Image 44
Apple oxs manual AirPort Settings, Computer, Host, and Rendezvous Name, Viewing or Changing Socks Firewall Proxy Settings