File: feature-firewall.xml

package info (click to toggle)
cockpit 337-1
  • links: PTS, VCS
  • area: main
  • in suites: trixie
  • size: 36,232 kB
  • sloc: javascript: 47,090; python: 38,766; ansic: 35,470; xml: 6,048; sh: 3,413; makefile: 614
file content (34 lines) | stat: -rw-r--r-- 1,266 bytes parent folder | download | duplicates (3)
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">firewall-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>