Projet

Général

Profil

Révision 2a3b45ec

ID2a3b45ecf545b339e93687e1b3dc3dbf072f7833
Parent a5205d2f
Enfant a0d5c724

Ajouté par tr il y a plus de 4 ans

Add a define for masquerading

Voir les différences:

spec/classes/router_spec.rb
18 18
            'default_fwd-drop':
19 19
              order   => '90',
20 20
              content => 'iifname eth0 drop';
21
          }
21 22

  
22
            'POSTROUTING-masquerade':
23
              table   => 'ip-nat',
24
              order   => '20',
25
              content => 'oifname eth0 masquerade';
23
          nftables::rules::masquerade{
24
            'masquerade':
25
              order => '20',
26
              oif   => 'eth0';
26 27
          }
27 28
          """
28 29
        end

Formats disponibles : Unified diff