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:

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