Server IP : 184.107.3.203 / Your IP : 216.73.216.51 Web Server : Apache System : Linux dedicated2.avenfashion.com.ph 4.18.0-553.40.1.el8_10.x86_64 #1 SMP Mon Feb 10 12:11:18 EST 2025 x86_64 User : adminteladeoro ( 1015) PHP Version : 8.2.28 Disable Function : exec,passthru,shell_exec,system MySQL : OFF | cURL : ON | WGET : ON | Perl : ON | Python : ON Directory (0755) : /usr/lib/python3.6/site-packages/sos/report/plugins/__pycache__/ |
[ Home ] | [ C0mmand ] | [ Upload File ] |
---|
3 ~ �g� � @ s. d dl mZmZmZmZ G dd� dee�ZdS )� )�Plugin�IndependentPlugin�SoSPredicate� PluginOptc @ s@ e Zd ZdZdZdZedddd �gZdZdZ dd � Z dd� ZdS )� LibreswanzLibreswan IPsec� libreswan�network�security� openshiftz ipsec-barfFzcollect ipsec barf output)�defaultZdesc�/etc/ipsec.conf�openswanc C st | j dddg� | jddddg� t| dd gd did�}| jd dg|d� | jd�r^| jd� | jddddg� d S )Nz/etc/ipsec.confz/etc/ipsec.dz/proc/net/xfrm_statzipsec verifyzipsec whack --statuszipsec whack --listallzcertutil -L -d sql:/etc/ipsec.dZ xfrm_userZ xfrm_algo�kmods�all)r Zrequiredzip xfrm policyz ip xfrm state)Zpredz ipsec-barfz ipsec barfz/etc/ipsec.secretsz/etc/ipsec.secrets.dz/etc/ipsec.d/*.dbz/etc/ipsec.d/*.secrets)Z add_copy_specZadd_cmd_outputr � get_optionZadd_forbidden_path)�selfZ xfrm_pred� r �/usr/lib/python3.6/libreswan.py�setup s, zLibreswan.setupc C s. d}| j d|d� | jd�r*| j d|d� d S )Nz/(aead|auth|auth-trunc|enc)(\s.*\s)(0x[0-9a-f]+)�statez\1\2********z ipsec-barfZbarf)Zdo_cmd_output_subr )r Zxfrm_state_regexpr r r �postproc@ s zLibreswan.postprocN)r r r )r )r r )�__name__� __module__�__qualname__Z short_descZplugin_nameZprofilesr Zoption_list�filesZpackagesr r r r r r r s "r N)Zsos.report.pluginsr r r r r r r r r �<module> s