Add support for the ipvs module.
[ferm.git] / examples / workstation.ferm
blob27eea585d8fdac97a63b4a8c8e3a6c8397a7b915
1 # -*- shell-script -*-
3 # Ferm example script
5 # Firewall configuration for a workstation which accepts remote ssh login.
7 # Author: Max Kellermann <max@duempel.org>
10 table filter {
11     chain INPUT {
12         policy DROP;
14         # connection tracking
15         mod state state INVALID DROP;
16         mod state state (ESTABLISHED RELATED) ACCEPT;
18         # allow local connections
19         interface lo ACCEPT;
21         # respond to ping
22         proto icmp icmp-type echo-request ACCEPT;
24         # allow SSH connections
25         proto tcp dport ssh ACCEPT;
27         # ident connections are also allowed
28         proto tcp dport auth ACCEPT;
30         # the rest is dropped by the above policy
31     }
33     # outgoing connections are not limited
34     chain OUTPUT policy ACCEPT;
36     # this is not a router
37     chain FORWARD policy DROP;