mirror of
https://github.com/fwbuilder/fwbuilder
synced 2026-03-20 18:27:16 +01:00
"Interface nameif error when installing generated config for FWSM". Use correct "nameif" command sytax in FWSM 2.x and 4.x.
38 lines
1.1 KiB
Bash
38 lines
1.1 KiB
Bash
## -*- mode: shell-script; -*-
|
|
##
|
|
## To be able to make changes to the part of configuration created
|
|
## from this configlet you need to copy this file to the directory
|
|
## fwbuilder/configlets/pix_os/ in your home directory and modify it.
|
|
## Double "##" comments are removed during processing but single "#"
|
|
## comments are be retained and appear in the generated script. Empty
|
|
## lines are removed as well.
|
|
##
|
|
## Configlets support simple macro language with these constructs:
|
|
## {{$var}} is variable expansion
|
|
## {{if var}} is conditional operator.
|
|
##
|
|
## interface ethernet0 vlan3 logical
|
|
|
|
{{if static_address}}
|
|
|
|
interface {{$parent_interface}} {{$interface_name}} logical
|
|
|
|
nameif {{$interface_name}} {{$interface_label}} security{{$security_level}}
|
|
{{if configure_interface_address}}
|
|
ip address {{$interface_label}} {{$address}} {{$netmask}}
|
|
{{endif}}
|
|
|
|
{{endif}}
|
|
|
|
|
|
|
|
{{if dhcp_address}}
|
|
|
|
nameif {{$interface_name}} {{$interface_label}} security{{$security_level}}
|
|
{{if configure_interface_address}}
|
|
ip address {{$interface_label}} dhcp setroute retry 10
|
|
{{endif}}
|
|
|
|
{{endif}}
|
|
|