HP-UX CMGR A.02.01 Administrator's and Developer's Guide
29
</head>
<!--
========================================================
Template Prologue: user interaction [1]
=========================================================
-->
<prologue>
<!--
========================================================
Provide output for the help option
=========================================================
-->
<help>
Variable Usage
--------------- --------------------------------------------------------
ip_address Source IP Adresss for IPFilter Rule
Required for: -a, -r
tcp_port TCP port to block for ip_address
Required for: -a, -r
rule_id User defined string(no spaces) that identfies this rule
Required for: -a, -r, -d
</help>
<!--
========================================================
Touch the required variables to force a prompt if they
do not have a value yet
=========================================================
-->
<data if_op="add|replace">
$ip_address
$tcp_port
$rule_id
</data>
<data if_op="delete">
$rule_id
</data>
</prologue>
<!--
========================================================
Template Body: take action
========================================================
-->
<body>
<!--
========================================================
Update or list the contents of IPFilter configuration [3]
========================================================
-->
<ipfilter ipfilterfile="$ipf_file" ipfilteripv6file="" >
<data if_op="add|replace|list|delete">
#@tag-start Example Dynamic IPFilter Service Rule="$rule_id";
</data>
<data if_op="add|replace">
block in quick proto tcp from $ip_address to any port = $tcp_port