summaryrefslogtreecommitdiff
path: root/manifests/ppp.pp
blob: e9ce789ab5f49e2c81a6eb436d8fb12905850b8c (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
class firewall::ppp(
  $interface = 'ppp0',
  $zone      = 'ppp'
) {
  shorewall::interface { $interface:
    zone => $zone,
  }

  if $zone == 'ppp' {
    shorewall::zone { 'ppp':
      type  => 'ipv4',
      order => 4,
    }

    shorewall::policy { 'loc-ppp':
      sourcezone      => 'loc',
      destinationzone => $zone,
      policy          => 'ACCEPT',
      order           => 30,
    }

    shorewall::policy { 'ppp-loc':
      sourcezone      => 'ppp',
      destinationzone => $zone,
      policy          => 'ACCEPT',
      order           => 31,
    }

    shorewall::policy { 'fw-ppp':
      sourcezone      => '$FW',
      destinationzone => $zone,
      policy          => 'ACCEPT',
      order           => 32,
    }
  }
}