Server IP : 209.38.156.173 / Your IP : 216.73.216.122 [ Web Server : Apache/2.4.52 (Ubuntu) System : Linux lakekumayuhotel 5.15.0-136-generic #147-Ubuntu SMP Sat Mar 15 15:53:30 UTC 2025 x86_64 User : root ( 0) PHP Version : 8.1.2-1ubuntu2.22 Disable Function : NONE Domains : 2 Domains MySQL : OFF | cURL : ON | WGET : ON | Perl : ON | Python : OFF | Sudo : ON | Pkexec : ON Directory : /usr/lib/python3/dist-packages/sos/report/plugins/__pycache__/ |
Upload File : |
o ���b� � @ s. d dl mZmZmZmZ G dd� dee�ZdS )� )�Plugin�IndependentPlugin�SoSPredicate� PluginOptc @ s@ e Zd ZdZdZdZedddd�gZdZd Z d d� Z dd � ZdS )� LibreswanzLibreswan IPsec� libreswan)�network�security� openshift� ipsec-barfFzcollect ipsec barf output)�default�desc)�/etc/ipsec.conf)r �openswanc C sj | � g d�� | �g d�� t| ddgddid�}| jdd g|d � | �d�r,| �d� | �g d �� d S )N)r z/etc/ipsec.dz/proc/net/xfrm_stat)zipsec verifyzipsec whack --statuszipsec whack --listallzcertutil -L -d sql:/etc/ipsec.d� xfrm_user� xfrm_algo�kmods�all)r �requiredzip xfrm policyz ip xfrm state)�predr z ipsec barf)z/etc/ipsec.secretsz/etc/ipsec.secrets.dz/etc/ipsec.d/*.dbz/etc/ipsec.d/*.secrets)� add_copy_spec�add_cmd_outputr � get_option�add_forbidden_path)�self� xfrm_pred� r �>/usr/lib/python3/dist-packages/sos/report/plugins/libreswan.py�setup s ��� zLibreswan.setupc C s2 d}| � d|d� | �d�r| � d|d� d S d S )Nz/(aead|auth|auth-trunc|enc)(\s.*\s)(0x[0-9a-f]+)�statez\1\2********r �barf)�do_cmd_output_subr )r �xfrm_state_regexpr r r �postproc@ s � ��zLibreswan.postprocN)�__name__� __module__�__qualname__� short_desc�plugin_name�profilesr �option_list�files�packagesr r# r r r r r s ��"r N)�sos.report.pluginsr r r r r r r r r �<module> s