Apple Xserve Up Mac OS X Server Specifications Page 236

  • Download
  • Add to my manuals
  • Print
  • Page
    / 329
  • Table of contents
  • BOOKMARKS
  • Rated. / 5. Based on customer reviews
Page view 235
236 Chapter 14 Configuring and Managing Network Services
An example of this is the following:
$ sudo serveradmin settings
ipfilter:rules:_array_id:1111 = create
ipfilter:rules:_array_id:1111:source = "10.10.41.60"
ipfilter:rules:_array_id:1111:protocol = "udp"
ipfilter:rules:_array_id:1111:destination = "any via en0"
ipfilter:rules:_array_id:1111:action = "allow"
ipfilter:rules:_array_id:1111:enableLocked = yes
ipfilter:rules:_array_id:1111:enabled = yes
ipfilter:rules:_array_id:1111:log = no
ipfilter:rules:_array_id:1111:readOnly = yes
ipfilter:rules:_array_id:1111:source-port = ""
Control-D
The ipfilter Rules Array
An array of the following settings is included in the ipfilter settings for each defined
firewall rule. In an actual list, <rule> is replaced with a rule number. You can add a rule
by using serveradmin to create an array in the firewall settings (see “Adding Rules
Using serveradmin” on page 235).
Firewall serveradmin Commands
To manage Firewall service, use the following commands with the serveradmin tool.
Parameter (ipfilter:) Description
rules:_array_id:<rule>:source The source of traffic governed by the rule.
rules:_array_id:<rule>:protocol The protocol for traffic governed by the rule.
rules:_array_id:<rule>:destination The destination of traffic governed by the rule.
rules:_array_id:<rule>:action The action to be taken.
rules:_array_id:<rule>:enabled Whether the rule is enabled.
rules:_array_id:<rule>:log Whether activation of the rule is logged.
rules:_array_id:<rule>:readOnly Whether read-only is set.
rules:_array_id:<rule>:source-port The source port of traffic governed by the rule.
Command
(
ipfilter:command=) Description
getLogPaths Find the current location of the log used by the service.
Default =
/var/log/system.log
getStandardServices
Retrieve a list of standard services as they appear on the General
pane of the Firewall service settings in Server Admin.
writeSettings Equivalent to the standard serveradmin settings command,
but also returns a setting indicating whether the service must be
restarted. See “Using the serveradmin Tool” on page 50.
Page view 235
1 2 ... 231 232 233 234 235 236 237 238 239 240 241 ... 328 329

Comments to this Manuals

No comments