| Server IP : 77.50.203.18 / Your IP : 192.168.0.10 Web Server : Apache/2.4.62 (CentOS Stream) OpenSSL/3.5.7 mpm-itk/2.4.7-04 PHP/8.4.23 System : Linux web2 5.14.0-722.el9.x86_64 #1 SMP PREEMPT_DYNAMIC Mon Jul 6 09:07:51 UTC 2026 x86_64 User : warsnews.ru ( 1001) PHP Version : 8.4.23 Disable Function : NONE MySQL : ON | cURL : ON | WGET : ON | Perl : ON | Python : OFF | Sudo : ON | Pkexec : ON Directory : /lib/python3.9/site-packages/sos/report/plugins/__pycache__/ |
Upload File : |
a
ܓ�iC � @ s* d dl mZmZmZ G dd� dee�ZdS )� )�Plugin�IndependentPlugin�SoSPredicatec @ sD e Zd ZdZdZdZdZdZdZdd� Z d d
� Z
dd� Zd
d� ZdS )�FirewallTablesa Collects information about local firewall tables, such as iptables,
and nf_tables (via nft). Note that this plugin does _not_ collect firewalld
information, which is handled by a separate plugin.
Collections from this plugin are largely gated byt the presence of relevant
kernel modules - for example, the plugin will not collect the nf_tables
ruleset if both the `nf_tables` and `nfnetlink` kernel modules are not
currently loaded (unless using the --allow-system-changes option).
zfirewall tablesZfirewall_tables)�network�system)�
/etc/nftables)Z ip_tablesZ
ip6_tables� nf_tables� nfnetlinkZebtablesc C s2 d| }d| d }| j |t| |dgd�d� dS )z� Collecting iptables rules for a table loads either kernel module
of the table name (for kernel <= 3), or nf_tables (for kernel >= 4).
If neither module is present, the rules must be empty.Ziptable_ziptables -t � -nvLr ��kmods��predN��add_cmd_outputr ��selfZ tablename�modname�cmd� r �F/usr/lib/python3.9/site-packages/sos/report/plugins/firewall_tables.py�collect_iptable s �zFirewallTables.collect_iptablec C s2 d| }d| d }| j |t| |dgd�d� dS )z& Same as function above, but for ipv6 Z ip6table_z
ip6tables -t r r r r Nr r r r r �collect_ip6table* s �zFirewallTables.collect_ip6tablec C s&