Blame SOURCES/logging-0003-README.diff

69e14a
From 76b4418f937fd1dbaa1061fa5f83f11ea046dc40 Mon Sep 17 00:00:00 2001
69e14a
From: Noriko Hosoi <nhosoi@redhat.com>
69e14a
Date: Thu, 10 Sep 2020 16:35:43 -0700
69e14a
Subject: [PATCH 3/7] Adding "Port and SELinux" section to README.
69e14a
69e14a
(cherry picked from commit 5f144bc74edbcd80a53a2fe84aa464f7ea9f44ef)
69e14a
---
69e14a
 README.md | 16 +++++++++++++---
69e14a
 1 file changed, 13 insertions(+), 3 deletions(-)
69e14a
69e14a
diff --git a/README.md b/README.md
69e14a
index 0eafde8..db29dc5 100644
69e14a
--- a/README.md
69e14a
+++ b/README.md
69e14a
@@ -19,6 +19,7 @@
69e14a
     * [Standalone configuration](#standalone-configuration)
69e14a
     * [Client configuration](#client-configuration)
69e14a
     * [Server configuration](#server-configuration)
69e14a
+  * [Port and SELinux](#port-and-selinux)
69e14a
   * [Providers](#providers)
69e14a
   * [Tests](#tests)
69e14a
   * [Implementation Details](#implementation-details)
69e14a
@@ -111,10 +112,10 @@ This is a schematic logging configuration to show log messages from input_nameA
69e14a
 - `ovirt` type - `ovirt` input supports oVirt specific inputs.
69e14a
    For the details, visit [oVirt Support](../../design_docs/rsyslog_ovirt_support.md).
69e14a
 
69e14a
-- `remote` type - `remote` input supports receiving logs from the remote logging system over the network. This input type makes rsyslog a server.
69e14a
+- `remote` type - `remote` input supports receiving logs from the remote logging system over the network.
69e14a
   **available options**
69e14a
-  - `udp_ports`: List of UDP port numbers to listen. If set, the `remote` input listens on the UDP ports. No defaults. If both `udp_ports` and `tcp_ports` are set in a `remote` input item, `udp_ports` is used and `tcp_ports` is dropped.
69e14a
-  - `tcp_ports`: List of TCP port numbers to listen. If set, the `remote` input listens on the TCP ports. Default to `[514]`. If both `udp_ports` and `tcp_ports` are set in a `remote` input item, `udp_ports` is used and `tcp_ports` is dropped. If both `udp_ports` and `tcp_ports` are not set in a `remote` input item, `tcp_ports: [514]` is added to the item.
69e14a
+  - `udp_ports`: List of UDP port numbers to listen. If set, the `remote` input listens on the UDP ports. No defaults. If both `udp_ports` and `tcp_ports` are set in a `remote` input item, `udp_ports` is used and `tcp_ports` is dropped. See also [Port and SELinux](#port-and-selinux).
69e14a
+  - `tcp_ports`: List of TCP port numbers to listen. If set, the `remote` input listens on the TCP ports. Default to `[514]`. If both `udp_ports` and `tcp_ports` are set in a `remote` input item, `udp_ports` is used and `tcp_ports` is dropped. If both `udp_ports` and `tcp_ports` are not set in a `remote` input item, `tcp_ports: [514]` is added to the item. See also [Port and SELinux](#port-and-selinux).
69e14a
   - `tls`: Set to `true` to encrypt the connection using the default TLS implementation used by the provider. Default to `false`.
69e14a
   - `pki_authmode`: Specifying the default network driver authentication mode. `x509/name`, `x509/fingerprint`, `anon` is accepted. Default to `x509/name`.
69e14a
   - `permitted_clients`: List of hostnames, IP addresses, fingerprints(sha1), and wildcard DNS domains which will be allowed by the `logging` server to connect and send logs over TLS. Default to `['*.{{ logging_domain }}']`
69e14a
@@ -591,6 +592,15 @@ The following playbook generates the same logging configuration files.
69e14a
         outputs: [remote_files_output0, remote_files_output1]
69e14a
 ```
69e14a
 
69e14a
+### Port and SELinux
69e14a
+
69e14a
+SELinux is only configured to allow sending and receiving on the following ports by default:
69e14a
+```
69e14a
+syslogd_port_t        tcp   514, 20514
69e14a
+syslogd_port_t        udp   514, 20514
69e14a
+```
69e14a
+If other ports need to be configured, you can use [linux-system-roles/selinux](https://github.com/linux-system-roles/selinux) to manage SELinux contexts.
69e14a
+
69e14a
 ## Providers
69e14a
 
69e14a
 [Rsyslog](roles/rsyslog) - This documentation contains rsyslog specific information.
69e14a
-- 
69e14a
2.26.2
69e14a