File: feature-firewall.xml

package info (click to toggle)
cockpit 239-1
  • links: PTS, VCS
  • area: main
  • in suites: bullseye
  • size: 67,268 kB
  • sloc: javascript: 245,474; ansic: 72,273; python: 23,634; xml: 6,155; sh: 2,919; makefile: 923; sed: 5
file content (34 lines) | stat: -rw-r--r-- 1,267 bytes parent folder | download | duplicates (2)
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
26
27
28
29
30
31
32
33
34
<?xml version="1.0"?>
<!DOCTYPE chapter PUBLIC "-//OASIS//DTD DocBook XML V4.3//EN"
	"http://www.oasis-open.org/docbook/xml/4.3/docbookx.dtd">
<chapter id="feature-firewall">
  <title>Firewall</title>

  <para>Cockpit uses <ulink url="https://www.firewalld.org">firewalld</ulink> to
    interact with the system's firewall. No firewall configuration UI will be
    shown if firewalld is not installed.</para>

  <para>Firewalld controls access to its APIs via PolicyKit. The user logged
    into Cockpit needs to have the appropriate permissions to view or modify
    the settings.</para>

  <para>Cockpit can currently only show, add, and remove predefined firewalld
    services in the default zone.</para>

  <para>To perform similar tasks from the command line, use
    <ulink url="https://www.firewalld.org/documentation/man-pages/firewall-cmd.html">firewalld-cmd</ulink>.
    For example, to get the same list of allowed services that Cockpit
    displays:</para>

<programlisting>
$ <command>sudo firewall-cmd --list-services</command>
dhcpv6-client samba-client mdns ssh cockpit
</programlisting>

  <para>To enable an additional service, use:</para>
<programlisting>
$ <command>firewall-cmd --add-service pop3</command>
success
</programlisting>

</chapter>