Révision 94285e5f
Example how to redirect one port to another
Add example how to redirect traffic from one port to another.
manifests/rule.pp | ||
---|---|---|
13 | 13 |
# table => 'ip6-nat' |
14 | 14 |
# } |
15 | 15 |
# |
16 |
# @example Redirect port 443 to port 8443 |
|
17 |
# nftables::rule { 'PREROUTING-redirect': |
|
18 |
# content => 'tcp dport 443 redirect to :8443', |
|
19 |
# table => 'ip-nat', |
|
20 |
# } |
|
21 |
# nftables::rule{'PREROUTING6-redirect': |
|
22 |
# content => 'tcp dport 443 redirect to :8443', |
|
23 |
# table => 'ip6-nat', |
|
24 |
# } |
|
25 |
# |
|
16 | 26 |
# @param ensure |
17 | 27 |
# Should the rule be created. |
18 | 28 |
# |
Formats disponibles : Unified diff