/usr/share/doc/ferm/examples/resolve.ferm is in ferm 2.4-1.
This file is owned by root:root, with mode 0o644.
The actual contents of the file can be viewed below.
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 | # -*- shell-script -*-
#
# Ferm example script
#
# Demo of the @resolve() function.
#
# Author: Max Kellermann <max@duempel.org>
#
table filter chain OUTPUT {
daddr @resolve(www.google.com) proto tcp dport http ACCEPT;
daddr @resolve(yahoo.com, MX) proto tcp dport smtp ACCEPT;
daddr @resolve(denic.de, NS) proto udp dport domain ACCEPT;
}
domain ip6 table filter chain OUTPUT {
daddr @resolve(www.sixxs.net, AAAA) proto tcp dport http ACCEPT;
}
|