Apple oxs Server User Manual


 
144 Chapter 13 Working With Network Services
NAT serveradmin Commands
You can use the following commands with the serveradmin application to manage
NAT service.
Viewing the NAT Service Log
You can use tail or any other file listing tool to view the contents of the NAT service
log.
To view the latest entries in the log:
$ tail log-file
You can use the serveradmin getLogPaths command to see where the current NAT
service log is located.
To display the log path:
$ sudo serveradmin command nat:command = getLogPaths
Output
nat:natLog = <nat-log>
unregistered_only yes|no
Default = no
same_ports yes|no
Default = yes
Parameter (nat:) Description
Command
(nat:command=)
Description
getLogPaths Find the current location of the log used by the NAT service. See
“Viewing the NAT Service Log” on this page.
updateNATRuleInIpfw Update the firewall rules defined in the ipfilter service to reflect
changes in the NAT settings.
writeSettings Equivalent to the standard serveradmin settings command,
but also returns a setting indicating whether the service needs to
be restarted. See “Determining Whether a Service Needs to be
Restarted” on page 19.
Value Description
<nat-log> The location of the NAT service log.
Default = /var/log/alias.log
LL2354.book Page 144 Monday, October 20, 2003 9:47 AM