Projet

Général

Profil

Révision 94285e5f

ID94285e5fbbb57d8d5b8c9806733e328b5cdd5f46
Parent 3413220c
Enfant 1085e990

Ajouté par Steve Traylen il y a plus d'un an

Example how to redirect one port to another

Add example how to redirect traffic from one port to another.

Voir les différences:

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