From 6e2a713fb4ffb060e614c3de9c7c33f403214d7f Mon Sep 17 00:00:00 2001 From: Marcel Haerry Date: Wed, 16 Sep 2009 19:13:15 +0200 Subject: add a lot of default rules --- manifests/rules/ntp/client.pp | 11 +++++++++++ manifests/rules/ntp/server.pp | 10 ++++++++++ 2 files changed, 21 insertions(+) create mode 100644 manifests/rules/ntp/client.pp create mode 100644 manifests/rules/ntp/server.pp (limited to 'manifests/rules/ntp') diff --git a/manifests/rules/ntp/client.pp b/manifests/rules/ntp/client.pp new file mode 100644 index 0000000..e0db8d4 --- /dev/null +++ b/manifests/rules/ntp/client.pp @@ -0,0 +1,11 @@ +class shorewall::rules::ntp::client { + # open ntp udp port to fetch time + shorewall::rule {'me-net-udp_ntp': + source => '$FW', + destination => 'net', + proto => 'udp', + destinationport => '123', + order => 251, + action => 'ACCEPT'; + } +} diff --git a/manifests/rules/ntp/server.pp b/manifests/rules/ntp/server.pp new file mode 100644 index 0000000..ed0968d --- /dev/null +++ b/manifests/rules/ntp/server.pp @@ -0,0 +1,10 @@ +class shorewall::rules::ntp::server { + shorewall::rule {'net-me-udp_ntp': + source => 'net', + destination => '$FW', + proto => 'udp', + destinationport => '123', + order => 241, + action => 'ACCEPT'; + } +} -- cgit v1.2.3