Révision 94285e5f
Example how to redirect one port to another
Add example how to redirect traffic from one port to another.
REFERENCE.md | ||
---|---|---|
1708 | 1708 |
} |
1709 | 1709 |
``` |
1710 | 1710 |
|
1711 |
##### Redirect port 443 to port 8443 |
|
1712 |
|
|
1713 |
```puppet |
|
1714 |
nftables::rule { 'PREROUTING-redirect': |
|
1715 |
content => 'tcp dport 443 redirect to :8443', |
|
1716 |
table => 'ip-nat', |
|
1717 |
} |
|
1718 |
nftables::rule{'PREROUTING6-redirect': |
|
1719 |
content => 'tcp dport 443 redirect to :8443', |
|
1720 |
table => 'ip6-nat', |
|
1721 |
} |
|
1722 |
``` |
|
1723 |
|
|
1711 | 1724 |
#### Parameters |
1712 | 1725 |
|
1713 | 1726 |
The following parameters are available in the `nftables::rule` defined type: |
Formats disponibles : Unified diff