| 1 |
## -*- mode: shell-script; -*- |
| 2 |
## |
| 3 |
## To be able to make changes to the part of configuration created |
| 4 |
## from this configlet you need to copy this file to the directory |
| 5 |
## fwbuilder/configlets/pix_os/ in your home directory and modify it. |
| 6 |
## Double "##" comments are removed during processing but single "#" |
| 7 |
## comments are be retained and appear in the generated script. Empty |
| 8 |
## lines are removed as well. |
| 9 |
## |
| 10 |
## Configlets support simple macro language with these constructs: |
| 11 |
## {{$var}} is variable expansion |
| 12 |
## {{if var}} is conditional operator. |
| 13 |
## |
| 14 |
|
| 15 |
{{if static_address}} |
| 16 |
nameif {{$interface_name}} {{$interface_label}} security{{$security_level}} |
| 17 |
{{if configure_interface_address}}ip address {{$interface_label}} {{$address}} {{$netmask}} {{endif}} |
| 18 |
{{if configure_standby_address}}failover ip address {{$interface_label}} {{$standby_address}} {{endif}} |
| 19 |
{{endif}} |
| 20 |
|
| 21 |
{{if dhcp_address}} |
| 22 |
nameif {{$interface_name}} {{$interface_label}} security{{$security_level}} |
| 23 |
{{if configure_interface_address}}ip address {{$interface_label}} dhcp setroute retry 10 {{endif}} |
| 24 |
{{endif}} |
| 25 |
|