Révision d7d6d5d3
simplerule: Add support for outgoing interface filtering
templates/simplerule.epp | ||
---|---|---|
8 | 8 |
String $set_type, |
9 | 9 |
Optional[Nftables::Port] $sport, |
10 | 10 |
Optional[String[1]] $iifname, |
11 |
Optional[String[1]] $oifname, |
|
11 | 12 |
| -%> |
12 | 13 |
<%- if $proto { |
13 | 14 |
$_proto = $proto ? { |
... | ... | |
75 | 76 |
} else { |
76 | 77 |
$_iifname = undef |
77 | 78 |
} -%> |
78 |
<%= regsubst(strip([$_ip_version_filter, $_iifname, $_src_port, $_dst_port, $_src_hosts, $_dst_hosts, $_counter, $action, $_comment].join(' ')), '\s+', ' ', 'G') -%> |
|
79 |
<%- if $oifname { |
|
80 |
$_oifname = "oifname \"${oifname}\"" |
|
81 |
} else { |
|
82 |
$_oifname = undef |
|
83 |
} -%> |
|
84 |
<%= regsubst(strip([$_ip_version_filter, $_iifname, $_oifname, $_src_port, $_dst_port, $_src_hosts, $_dst_hosts, $_counter, $action, $_comment].join(' ')), '\s+', ' ', 'G') -%> |
Formats disponibles : Unified diff