144

Parameter (nat:)Description

unregistered_only yesno

Default = no

same_portsyesno

Default = yes

NAT serveradmin Commands

You can use the following commands with the serveradmin application to manage NAT service.

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.

 

 

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>

Value

Description

<nat-log>

The location of the NAT service log.

 

Default = /var/log/alias.log

Chapter 13 Working With Network Services

Page 144
Image 144
Apple oxs manual NAT serveradmin Commands, Viewing the NAT Service Log, Parameter natDescription