/usr/share/doc/pyroman/examples/example1/32_mail.py is in pyroman 0.4.6-5build1.
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 19 20 21 22 23 24 25 | """
This is an example configuration for a mail server.
"""
# a really simple host definition
add_host(
name="mail",
ip="10.100.1.1",
iface="dmz"
)
# and offering a whole set of services with just one statement.
allow(
client="ANY DMZ INT",
server="mail",
service="mail www ssh ping"
)
# But we need to setup a NAT for this host
# This is a bidirection nat, i.e. this host will use the .79
# IP for outgoing connections, too.
add_nat(
client="ANY INT",
server="mail",
ip="12.34.56.79",
dir="both"
)
|