<?xml version="1.0" encoding="UTF-8" standalone="yes" ?>
<!DOCTYPE bugzilla SYSTEM "https://bugs.kde.org/page.cgi?id=bugzilla.dtd">

<bugzilla version="5.0.6"
          urlbase="https://bugs.kde.org/"
          
          maintainer="sysadmin@kde.org"
>

    <bug>
          <bug_id>448407</bug_id>
          
          <creation_ts>2022-01-13 22:51:16 +0000</creation_ts>
          <short_desc>Contradictory firewall status information with nftables / firewalld and Plasma System Settings Firewall</short_desc>
          <delta_ts>2022-02-21 19:07:33 +0000</delta_ts>
          <reporter_accessible>1</reporter_accessible>
          <cclist_accessible>1</cclist_accessible>
          <classification_id>2</classification_id>
          <classification>Applications</classification>
          <product>systemsettings</product>
          <component>kcm_firewall</component>
          <version>5.23.5</version>
          <rep_platform>Arch Linux</rep_platform>
          <op_sys>Linux</op_sys>
          <bug_status>RESOLVED</bug_status>
          <resolution>FIXED</resolution>
          
          
          <bug_file_loc></bug_file_loc>
          <status_whiteboard></status_whiteboard>
          <keywords></keywords>
          <priority>NOR</priority>
          <bug_severity>normal</bug_severity>
          <target_milestone>---</target_milestone>
          
          
          <everconfirmed>1</everconfirmed>
          <reporter name="Lyubomir">liubomirwm</reporter>
          <assigned_to name="Lucas Biaggi">lucas.biaggi</assigned_to>
          <cc>lucas.biaggi</cc>
    
    <cc>nate</cc>
    
    <cc>tcanabrava</cc>
          
          <cf_commitlink>https://invent.kde.org/plasma/plasma-firewall/-/commit/5f24d46d815fc982dcc0d67425447d6dad34120b</cf_commitlink>
          <cf_versionfixedin>5.25</cf_versionfixedin>
          <cf_sentryurl></cf_sentryurl>
          <votes>0</votes>

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>2093344</commentid>
    <comment_count>0</comment_count>
    <who name="Lyubomir">liubomirwm</who>
    <bug_when>2022-01-13 22:51:16 +0000</bug_when>
    <thetext>SUMMARY
I&apos;ve got both iptables, nftables and firewalld installed. Cannot remove iptables because it is a dependency of systemd.

The issue is that the Plasma Firewall inside the System Settings shows that the &quot;Default Incoming Policy&quot; and &quot;Default Outgoing Policy&quot; are &quot;Allow&quot;, when this is not true in practice. The currently used connection is using the wlp3s0 interface.

------------------------------------------------------------------------------------------------------------------------------------------------------------
Output of iptables --list
Chain INPUT (policy ACCEPT)
target     prot opt source               destination         

Chain FORWARD (policy ACCEPT)
target     prot opt source               destination         

Chain OUTPUT (policy ACCEPT)
target     prot opt source               destination

------------------------------------------------------------------------------------------------------------------------------------------------------------
Output of firewall-cmd --get-active-zones
public
  interfaces: wlp3s0
trusted
  interfaces: lo

------------------------------------------------------------------------------------------------------------------------------------------------------------
Output of firewall-cmd --info-zone=public
public (active)
  target: DROP
  icmp-block-inversion: no
  interfaces: wlp3s0
  sources: 
  services: dhcpv6-client
  ports: 
  protocols: 
  forward: yes
  masquerade: no
  forward-ports: 
  source-ports: 
  icmp-blocks: 
  rich rules:

OBSERVED RESULT
Plasma Firewall shows that the &quot;Default Incoming Policy&quot; and &quot;Default Outgoing Policy&quot; are &quot;Allow&quot;.

EXPECTED RESULT
Plasma Firewall should show that the &quot;Default Incoming Policy&quot; is &quot;Drop&quot; and &quot;Default Outgoing Policy&quot; is &quot;Allow&quot;.

SOFTWARE/OS VERSIONS
firewalld 1.0.2-2
iptables 1:1.8.7-1
nftables 1:1.0.1-3
Operating System: Arch Linux
KDE Plasma Version: 5.23.5
KDE Frameworks Version: 5.90.0
Qt Version: 5.15.2
Kernel Version: 5.15.13-zen1-1-zen (64-bit)
Graphics Platform: Wayland
Processors: 8 × Intel® Core™ i5-8250U CPU @ 1.60GHz
Memory: 7,6 GiB of RAM
Graphics Processor: Mesa Intel® UHD Graphics 620</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>2093350</commentid>
    <comment_count>1</comment_count>
    <who name="Lyubomir">liubomirwm</who>
    <bug_when>2022-01-13 23:00:58 +0000</bug_when>
    <thetext>nft list tables gives only:
table inet firewalld</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>2095420</commentid>
    <comment_count>2</comment_count>
    <who name="Lucas Biaggi">lucas.biaggi</who>
    <bug_when>2022-01-19 15:46:59 +0000</bug_when>
    <thetext>Today the default policies are hardcoded, I will fix it on weekend.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>2106945</commentid>
    <comment_count>3</comment_count>
    <who name="Nate Graham">nate</who>
    <bug_when>2022-02-21 19:07:33 +0000</bug_when>
    <thetext>Fixed by Lucas Biaggi with https://invent.kde.org/plasma/plasma-firewall/-/commit/5f24d46d815fc982dcc0d67425447d6dad34120b in Plasma 5.25!</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>