]> git.donarmstrong.com Git - dsa-puppet.git/blob - modules/ferm/files/ferm.conf
Revert "will ferm do the right thing?"
[dsa-puppet.git] / modules / ferm / files / ferm.conf
1 ##
2 ## THIS FILE IS UNDER PUPPET CONTROL. DON'T EDIT IT HERE.
3 ## USE: git clone git+ssh://$USER@puppet.debian.org/srv/puppet.debian.org/git/dsa-puppet.git
4 ##
5
6 # -*- shell-script -*-
7
8 @include 'conf.d/';
9
10 domain ip {
11         table filter {
12               chain log_and_reject {
13                       ULOG ulog-prefix "REJECT: ";
14                       proto tcp REJECT reject-with tcp-reset;
15                       REJECT;
16               }
17
18               chain log_or_drop {
19                       mod hashlimit hashlimit-name ulogreject  hashlimit-mode srcip hashlimit-burst 30 hashlimit 15/second jump log_and_reject;
20                       mod hashlimit hashlimit-name uloglogdrop hashlimit-mode srcip hashlimit-burst 30 hashlimit 15/second ULOG ulog-prefix "DROP: ";
21                       DROP;
22               }
23
24         }
25 }
26 domain ip6 {
27         table filter {
28               chain log_and_reject {
29                       LOG log-prefix "REJECT: ";
30                       proto tcp REJECT reject-with tcp-reset;
31                       REJECT;
32               }
33
34               chain log_or_drop {
35                       mod hashlimit hashlimit-name logreject  hashlimit-mode srcip hashlimit-burst 30 hashlimit 15/second jump log_and_reject;
36                       mod hashlimit hashlimit-name loglogdrop hashlimit-mode srcip hashlimit-burst 30 hashlimit 15/second LOG log-prefix "DROP: ";
37                       DROP;
38               }
39         }
40 }
41 domain (ip ip6) {
42         table filter {
43               chain INPUT {
44                       policy DROP;
45                       mod state state (ESTABLISHED RELATED) ACCEPT;
46                       interface lo ACCEPT;
47                       proto icmp ACCEPT;
48                       mod state state (INVALID) DROP;
49               }
50         }
51 }
52
53 @include 'dsa.d/';
54
55 domain (ip ip6) {
56         chain INPUT {
57                 jump log_or_drop;
58         }
59 }