ソスtソス@ソスCソスソスソスソス竄鯉ソスソスmソスVソスXソスeソスソスソスソスソスソス(Tripwire)

ソスナ終ソスXソスVソスソスソスF 2017.11.25

ソスソスソスTソスv

ソスNソスソスソスbソスJソス[ソスノゑソスソスLinuxソスTソス[ソスoソス[ソスフフソス@ソスCソスソスソスフ会ソス竄ゑソスソスソスソスmソスソスソスソスVソスXソスeソスソスソス導難ソスソスソスソスソスB
ソスソスソスソスソスナは、ソスtソス@ソスCソスソスソスソス竄鯉ソスソスmソスVソスXソスeソスソスソスノホソスXソスgソス^IDS(IDS=Intrusion Detection System)ソスソスTripwireソス導難ソスソスソスソスソスB
Tripwireソスヘ、ソスソスソスソスソスソスソスフフソス@ソスCソスソスソスソスヤゑソスソスfソス[ソス^ソスxソス[ソスXソスソスソスソスソスAソスソスソスフデソス[ソス^ソスxソス[ソスXソスニフソス@ソスCソスソスソスフ鯉ソスソスソスソスソスrソスソスソス驍アソスニにゑソスソスAソスtソス@ソスCソスソスソスフ追会ソスソス^ソスマ更ソス^ソス除ソスソスソスソスソスmソスソスソス驍スソス゚、LinuxソスCソスソスソスXソスgソス[ソスソスソスソスフ擾ソスソスソスソスフ段ソスKソスナ難ソスソスソスソスソスソストゑソスソスソスソスフゑソスソス]ソスワゑソスソスソスソスB


ソスソスTripwireソスCソスソスソスXソスgソス[ソスソス

EPELソスソスソス|ソスWソスgソスソスソスソスソスソス(EPEL)ソスソスソスQソスニゑソスソスソスEPELソスソスソス|ソスWソスgソスソスソス導難ソスソスソスソスソス

[root@centos ~]# yum -y install tripwireソス@ソスソスソス@tripwireソスCソスソスソスXソスgソス[ソスソス

[root@centos ~]# tripwire-setup-keyfilesソス@ソスソスソス@tripwireソスソスソスソスソスン抵ソス

----------------------------------------------
The Tripwire site and local passphrases are used to sign a  variety  of
files, such as the configuration, policy, and database files.

Passphrases should be at least 8 characters in length and contain  both
letters and numbers.

See the Tripwire manual for more information.

----------------------------------------------
Creating key files...

(When selecting a passphrase, keep in mind that good passphrases typically
have upper and lower case letters, digits and punctuation marks, and are
at least 8 characters in length.)

Enter the site keyfile passphrase:ソス@ソスソスソス@ソスCソスモのサソスCソスgソスpソスXソスtソスソスソス[ソスYソスソスソスソス
Verify the site keyfile passphrase:ソス@ソスソスソス@ソスCソスモのサソスCソスgソスpソスXソスtソスソスソス[ソスYソスソスソスソス(ソスmソスF)
Generating key (this may take several minutes)...Key generation complete.

(When selecting a passphrase, keep in mind that good passphrases typically
have upper and lower case letters, digits and punctuation marks, and are
at least 8 characters in length.)

Enter the local keyfile passphrase:ソス@ソスソスソス@ソスCソスモのソスソス[ソスJソスソスソスpソスXソスtソスソスソス[ソスYソスソスソスソス
Verify the local keyfile passphrase:ソス@ソスソスソス@ソスCソスモのソスソス[ソスJソスソスソスpソスXソスtソスソスソス[ソスYソスソスソスソス(ソスmソスF)
Generating key (this may take several minutes)...Key generation complete.

----------------------------------------------
Signing configuration file...
Please enter your site passphrase:ソス@ソスソスソス@ソスTソスCソスgソスpソスXソスtソスソスソス[ソスYソスソスソスソス
Wrote configuration file: /etc/tripwire/tw.cfg

A clear-text version of the Tripwire configuration file:
/etc/tripwire/twcfg.txt
has been preserved for your inspection.  It  is  recommended  that  you
move this file to a secure location and/or encrypt it in place (using a
tool such as GPG, for example) after you have examined it.


----------------------------------------------
Signing policy file...
Please enter your site passphrase:ソス@ソスソスソス@ソスTソスCソスgソスpソスXソスtソスソスソス[ソスYソスソスソスソス
Wrote policy file: /etc/tripwire/tw.pol

A clear-text version of the Tripwire policy file:
/etc/tripwire/twpol.txt
has been preserved for  your  inspection.  This  implements  a  minimal
policy, intended only to test  essential  Tripwire  functionality.  You
should edit the policy file to  describe  your  system,  and  then  use
twadmin to generate a new signed copy of the Tripwire policy.

Once you have a satisfactory Tripwire policy file, you should move  the
clear-text version to a secure location  and/or  encrypt  it  in  place
(using a tool such as GPG, for example).

Now run "tripwire --init" to enter Database Initialization  Mode.  This
reads the policy file, generates a database based on its contents,  and
then cryptographically signs the resulting  database.  Options  can  be
entered on the command line to specify which policy, configuration, and
key files are used  to  create  the  database.  The  filename  for  the
database can be specified as well. If no  options  are  specified,  the
default values from the current configuration file are used.

ソスソスTripwireソスン抵ソス

ソスiソスPソスjTripwireソスン抵ソス
[root@centos ~]# vi /etc/tripwire/twcfg.txtソス@ソスソスソス@Tripwireソスン抵ソスtソス@ソスCソスソス(ソスeソスLソスXソスgソスソス)ソス成
LOOSEDIRECTORYCHECKING =trueソス@ソスソスソス@ソスtソス@ソスCソスソスソスマ更ソスソスソスノ擾ソスソスソスソスfソスBソスソスソスNソスgソスソスソスフ変更ソスソスハ知ソスソスソスネゑソスソス謔、ソスノゑソスソスソス

REPORTLEVEL   =4ソス@ソスソスソス@ソスソスソス|ソス[ソスgソスソスソスxソスソスソスソスマ更ソスソスソスソス

[root@centos ~]# twadmin -m F -c /etc/tripwire/tw.cfg -S /etc/tripwire/site.key /etc/tripwire/twcfg.txtソス@ソスソスソス@Tripwireソスン抵ソスtソス@ソスCソスソス(ソステ搾ソスソスソスソスソスソスソス)ソス成
Please enter your site passphrase:ソス@ソスソスソス@ソスTソスCソスgソスpソスXソスtソスソスソス[ソスYソスソスソスソス
Wrote configuration file: /etc/tripwire/tw.cfg

[root@centos ~]# rm -f /etc/tripwire/twcfg.txtソス@ソスソスソス@Tripwireソスン抵ソスtソス@ソスCソスソス(ソスeソスLソスXソスgソスソス)ソス除

ソスソスTripwireソスン抵ソスtソス@ソスCソスソス(ソスeソスLソスXソスgソスソス)ソス復鯉ソスソスソスソスソス鼾
[root@centos ~]# twadmin -m f -c /etc/tripwire/tw.cfg > /etc/tripwire/twcfg.txt

ソスiソスQソスjソス|ソスソスソスVソス[ソスtソス@ソスCソスソスソスン抵ソス
Tripwireソスヘ、ソス|ソスソスソスVソス[ソスtソス@ソスCソスソスソスソスソスソスソスノ作成ソスソスソスソスソスfソス[ソス^ソスxソス[ソスXソスニ、ソスソスソスンのフソス@ソスCソスソスソスソスヤゑソスソスrソスソスソス驍アソスニにゑソスソスAソスtソス@ソスCソスソスソスソスソスマ更ソスソスソス黷スソスソスソスヌゑソスソスソスソスソスソスソスソスmソスソスソス驍ェソスAソスfソスtソスHソスソスソスgソスフポソスソスソスVソス[ソスtソス@ソスCソスソスソスナは托ソスソスンゑソスソスネゑソスソスtソス@ソスCソスソスソスフチソスFソスbソスNソスソスソスLソスソスソスノなゑソスソストゑソスソスソスソスソスAソスtソスノ托ソスソスンゑソスソスソスtソス@ソスCソスソスソスフチソスFソスbソスNソスソスソスソスソスソスソスノなゑソスソストゑソスソスソスソス閧キソス驍スソス゚、ソスソスソスンゑソスソスネゑソスソスtソス@ソスCソスソスソスフチソスFソスbソスNソス無鯉ソスソスノ、ソスソスソスンゑソスソスソスtソス@ソスCソスソスソスフチソスFソスbソスNソスソスLソスソスソスノゑソスソスソスPerlソスXソスNソスソスソスvソスgソスソスソス成ソスソスソスト、ソス|ソスソスソスVソス[ソスtソス@ソスCソスソスソスソスソスナ適ソスソスソスソスソスソスB
[root@centos ~]# vi /etc/tripwire/twpolmake.plソス@ソスソスソス@ソス|ソスソスソスVソス[ソスtソス@ソスCソスソスソスナ適ソスソスソスXソスNソスソスソスvソスgソス成
#!/usr/bin/perl
# Tripwire Policy File customize tool
# ----------------------------------------------------------------
# Copyright (C) 2003 Hiroaki Izumi
# This program is free software; you can redistribute it and/or
# modify it under the terms of the GNU General Public License
# as published by the Free Software Foundation; either version 2
# of the License, or (at your option) any later version.
# This program is distributed in the hope that it will be useful,
# but WITHOUT ANY WARRANTY; without even the implied warranty of
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
# GNU General Public License for more details.
# You should have received a copy of the GNU General Public License
# along with this program; if not, write to the Free Software
# Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA  02111-1307, USA.
# ----------------------------------------------------------------
# Usage:
#    perl twpolmake.pl {Pol file}
# ----------------------------------------------------------------
#
$POLFILE=$ARGV[0];

open(POL,"$POLFILE") or die "open error: $POLFILE" ;
my($myhost,$thost) ;
my($sharp,$tpath,$cond) ;
my($INRULE) = 0 ;

while (<POL>) {
    chomp;
    if (($thost) = /^HOSTNAME\s*=\s*(.*)\s*;/) {
        $myhost = `hostname` ; chomp($myhost) ;
        if ($thost ne $myhost) {
            $_="HOSTNAME=\"$myhost\";" ;
        }
    }
    elsif ( /^{/ ) {
        $INRULE=1 ;
    }
    elsif ( /^}/ ) {
        $INRULE=0 ;
    }
    elsif ($INRULE == 1 and ($sharp,$tpath,$cond) = /^(\s*\#?\s*)(\/\S+)\b(\s+->\s+.+)$/) {
        $ret = ($sharp =~ s/\#//g) ;
        if ($tpath eq '/sbin/e2fsadm' ) {
            $cond =~ s/;\s+(tune2fs.*)$/; \#$1/ ;
        }
        if (! -s $tpath) {
            $_ = "$sharp#$tpath$cond" if ($ret == 0) ;
        }
        else {
            $_ = "$sharp$tpath$cond" ;
        }
    }
    print "$_\n" ;
}
close(POL) ;

[root@centos ~]# perl /etc/tripwire/twpolmake.pl /etc/tripwire/twpol.txt > /etc/tripwire/twpol.txt.newソス@ソスソスソス@ソス|ソスソスソスVソス[ソスtソス@ソスCソスソスソスナ適ソスソス

[root@centos ~]# echo ! "/var/lib/tripwire/`hostname`.twd ;" >> /etc/tripwire/twpol.txt.newソス@ソスソスソス@Tripwireソスfソス[ソス^ソスxソス[ソスXソスソスソスフゑソスソス`ソスFソスbソスNソスホ象外ソスノゑソスソスソス

[root@centos ~]# echo ! "/tmp/tripwire.log ;" >> /etc/tripwire/twpol.txt.newソス@ソスソスソス@TripwireソスソスソスOソスソスソス`ソスFソスbソスNソスホ象外ソスノゑソスソスソスソスソスソスソスqソスソスTripwireソスソスソスソスソスソスソスソスソスソスsソスXソスNソスソスソスvソスgソスナ使ソスp

[root@centos ~]# twadmin -m P -c /etc/tripwire/tw.cfg -p /etc/tripwire/tw.pol -S /etc/tripwire/site.key /etc/tripwire/twpol.txt.newソス@ソスソスソス@ソスナ適ソスソスソスマポソスソスソスVソス[ソスtソス@ソスCソスソスソスソスソスソスソスノポソスソスソスVソス[ソスtソス@ソスCソスソス(ソステ搾ソスソスソスソスソスソスソス)ソス成
Please enter your site passphrase:ソス@ソスソスソス@ソスTソスCソスgソスpソスXソスtソスソスソス[ソスYソスソスソスソス
Wrote policy file: /etc/tripwire/tw.pol

[root@centos ~]# rm -f /etc/tripwire/twpol.txt*ソス@ソスソスソス@ソス|ソスソスソスVソス[ソスtソス@ソスCソスソス(ソスeソスLソスXソスgソスソス)ソス除

ソスソスソス|ソスソスソスVソス[ソスtソス@ソスCソスソス(ソスeソスLソスXソスgソスソス)ソス復鯉ソスソスソスソスソス鼾
[root@centos ~]# twadmin -m p -c /etc/tripwire/tw.cfg -p /etc/tripwire/tw.pol -S /etc/tripwire/site.key > /etc/tripwire/twpol.txt

ソスiソスRソスjソスfソス[ソス^ソスxソス[ソスXソス成
[root@centos ~]# tripwire -m i -s -c /etc/tripwire/tw.cfgソス@ソスソスソス@Tripwireソスfソス[ソス^ソスxソス[ソスXソス成
Please enter your local passphrase:ソス@ソスソスソス@ソスソスソス[ソスJソスソスソスpソスXソスtソスソスソス[ソスYソスソスソスソス


ソスソスTripwireソスmソスF

[root@centos ~]# tripwire -m c -s -c /etc/tripwire/tw.cfgソス@ソスソスソス@Tripwireソス`ソスFソスbソスNソスソスソスs
Open Source Tripwire(R) 2.4.3.1 Integrity Check Report

Report generated by:          root
Report created on:            2017ソスN01ソスソス26ソスソス 10ソスソス33ソスソス26ソスb
Database last updated on:     Never

===============================================================================
Report Summary:
===============================================================================

Host name:                    centos.centossrv.com
Host IP address:              xxx.xxx.xxx.xxx
Host ID:                      None
Policy file used:             /etc/tripwire/tw.pol
Configuration file used:      /etc/tripwire/tw.cfg
Database file used:           /var/lib/tripwire/centos.centossrv.com.twd
Command line used:            tripwire -m c -s -c /etc/tripwire/tw.cfg

===============================================================================
Rule Summary:
===============================================================================

-------------------------------------------------------------------------------
  Section: Unix File System
-------------------------------------------------------------------------------

  Rule Name                       Severity Level    Added    Removed  Modified
  ---------                       --------------    -----    -------  --------
  User binaries                   66                0        0        0
  Tripwire Binaries               100               0        0        0
  Libraries                       66                0        0        0
  Operating System Utilities      100               0        0        0
  File System and Disk Administraton Programs
                                  100               0        0        0
  Kernel Administration Programs  100               0        0        0
  Networking Programs             100               0        0        0
  System Administration Programs  100               0        0        0
  Hardware and Device Control Programs
                                  100               0        0        0
  System Information Programs     100               0        0        0
  Application Information Programs
                                  100               0        0        0
  (/sbin/rtmon)
  Critical Utility Sym-Links      100               0        0        0
  Shell Binaries                  100               0        0        0
  Critical system boot files      100               0        0        0
  Tripwire Data Files             100               0        0        0
  System boot changes             100               0        0        0
  OS executables and libraries    100               0        0        0
  Critical configuration files    100               0        0        0
  Security Control                100               0        0        0
  Login Scripts                   100               0        0        0
  Root config files               100               0        0        0
  Invariant Directories           66                0        0        0
  Temporary directories           33                0        0        0
  Critical devices                100               0        0        0
  (/proc/kcore)

Total objects scanned:  47479
Total violations found:  0ソス@ソスソスソス@ソスマ更ソスネゑソス

===============================================================================
Object Summary:
===============================================================================

-------------------------------------------------------------------------------
# Section: Unix File System
-------------------------------------------------------------------------------

No violations.

===============================================================================
Error Report:
===============================================================================

No Errors

-------------------------------------------------------------------------------
*** End of report ***

Open Source Tripwire 2.4 Portions copyright 2000 Tripwire, Inc. Tripwire is a registered
trademark of Tripwire, Inc. This software comes with ABSOLUTELY NO WARRANTY;
for details use --version. This is free software which may be redistributed
or modified only under certain conditions; see COPYING for details.
All rights reserved.

[root@centos ~]# echo test > test.txtソス@ソスソスソス@ソスソスソスソスソスノテソスXソスgソスtソス@ソスCソスソスソスソスソス成ソスソスソスソス

[root@centos ~]# tripwire -m c -s -c /etc/tripwire/tw.cfgソス@ソスソスソス@Tripwireソス`ソスFソスbソスNソスト趣ソスソスs
Open Source Tripwire(R) 2.4.3.1 Integrity Check Report

Report generated by:          root
Report created on:            2017ソスN01ソスソス26ソスソス 10ソスソス37ソスソス34ソスb
Database last updated on:     Never

===============================================================================
Report Summary:
===============================================================================

Host name:                    centos.centossrv.com
Host IP address:              xxx.xxx.xxx.xxx
Host ID:                      None
Policy file used:             /etc/tripwire/tw.pol
Configuration file used:      /etc/tripwire/tw.cfg
Database file used:           /var/lib/tripwire/centos.centossrv.com.twd
Command line used:            tripwire -m c -s -c /etc/tripwire/tw.cfg

===============================================================================
Rule Summary:
===============================================================================

-------------------------------------------------------------------------------
  Section: Unix File System
-------------------------------------------------------------------------------

  Rule Name                       Severity Level    Added    Removed  Modified
  ---------                       --------------    -----    -------  --------
  User binaries                   66                0        0        0
  Tripwire Binaries               100               0        0        0
  Libraries                       66                0        0        0
  Operating System Utilities      100               0        0        0
  File System and Disk Administraton Programs
                                  100               0        0        0
  Kernel Administration Programs  100               0        0        0
  Networking Programs             100               0        0        0
  System Administration Programs  100               0        0        0
  Hardware and Device Control Programs
                                  100               0        0        0
  System Information Programs     100               0        0        0
  Application Information Programs
                                  100               0        0        0
  (/sbin/rtmon)
  Critical Utility Sym-Links      100               0        0        0
  Shell Binaries                  100               0        0        0
  Critical system boot files      100               0        0        0
  Tripwire Data Files             100               0        0        0
  System boot changes             100               0        0        0
  OS executables and libraries    100               0        0        0
  Critical configuration files    100               0        0        0
  Security Control                100               0        0        0
  Login Scripts                   100               0        0        0
* Root config files               100               1        0        0
  Invariant Directories           66                0        0        0
  Temporary directories           33                0        0        0
  Critical devices                100               0        0        0
  (/proc/kcore)

Total objects scanned:  47480
Total violations found:  1ソス@ソスソスソス@1ソスソスソスフ変更ソスソスソスソスソスmソスソスソスソス

===============================================================================
Object Summary:
===============================================================================

-------------------------------------------------------------------------------
# Section: Unix File System
-------------------------------------------------------------------------------

-------------------------------------------------------------------------------
Rule Name: Root config files (/root)
Severity Level: 100
-------------------------------------------------------------------------------

===============================================================================
Error Report:
===============================================================================

No Errors

-------------------------------------------------------------------------------
*** End of report ***

Open Source Tripwire 2.4 Portions copyright 2000 Tripwire, Inc. Tripwire is a registered
trademark of Tripwire, Inc. This software comes with ABSOLUTELY NO WARRANTY;
for details use --version. This is free software which may be redistributed
or modified only under certain conditions; see COPYING for details.
All rights reserved.

[root@centos ~]# twprint -m r --report-level 1 -c /etc/tripwire/tw.cfg -r /var/lib/tripwire/report/centos.centossrv.com-20170123-184023.twrソス@ソスソスソス@ソス`ソスFソスbソスNソスソスソスハサソス}ソスソスソスQソスソス
Note: Report is not encrypted.
Added:  "/root/test.txt"ソス@ソスソスソス@/root/test.txtソスフ追会ソスソスソスソスソスソスmソスソスソスソス

[root@centos ~]# rm -f test.txtソス@ソスソスソス@ソスeソスXソスgソスtソス@ソスCソスソスソス除(ソスソスnソスソス)

ソスソスTripwireソスソスソスソスソスソスソスソスソスソスsソスン抵ソス

[root@centos ~]# yum -y install tmpwatchソス@ソスソスソス@tmpwatchソスCソスソスソスXソスgソス[ソスソス

[root@centos ~]# vi tripwire.shソス@ソスソスソス@TripwireソスソスソスソスソスソスソスソスソスソスsソスXソスNソスソスソスvソスgソス成
#!/bin/bash

# ソスソスソスソスソスソスTripwireソスソスソスソスソスソスソスソスソスソスsソスン抵ソス除
rm -f /etc/cron.daily/tripwire-check

# ソスpソスXソスtソスソスソス[ソスYソスン抵ソス
LOCALPASS=xxxxxxxx # ソスソスソス[ソスJソスソスソスpソスXソスtソスソスソス[ソスY
SITEPASS=xxxxxxxx  # ソスTソスCソスgソスpソスXソスtソスソスソス[ソスY

TRIPWIRE=/usr/sbin/tripwire
TWADMIN=/usr/sbin/twadmin
TWPRINT=/usr/sbin/twprint
cd /etc/tripwire

# Tripwireソス`ソスFソスbソスNソスソスソスs
# ソスソスソスtソス@ソスCソスソスソスマ更ソスソスソスソスソスmソスソスソスソスソス鼾ソスフゑソスrootソスソスソスノサソス}ソスソスソスソスソスソスソス[ソスソスソスソスソスソス
rm -f /var/lib/tripwire/report/`hostname`-`date +%Y%m%d`-*.twr
${TRIPWIRE} -m c -s -c tw.cfg > /tmp/tripwire.log
if [ $(grep "Total violations found" /tmp/tripwire.log | awk '{print $4}') -ne 0 ]; then
    ${TWPRINT} -m r --report-level 1 -c tw.cfg -r /var/lib/tripwire/report/`hostname`-`date +%Y%m%d`-*.twr | \
    mail -s "Tripwire Integrity Check Report from `hostname`" root
fi

# Tripwireソス`ソスFソスbソスNソスソスソスsソスソスソスハ(ソス゚具ソスソスソスソスjソス除
# ソスソスソス゚具ソス90ソスソスソスソスソスロ奇ソス
tmpwatch -m 2160 /var/lib/tripwire/report

# ソス|ソスソスソスVソス[ソスtソス@ソスCソスソスソスナ新ソスソス
${TWADMIN} -m p -c tw.cfg -p tw.pol -S site.key > twpol.txt
perl twpolmake.pl twpol.txt > twpol.txt.new
${TWADMIN} -m P -c tw.cfg -p tw.pol -S site.key -Q $SITEPASS twpol.txt.new > /dev/null
rm -f twpol.txt* *.bak

# ソスfソス[ソス^ソスxソス[ソスXソスナ新ソスソス
rm -f /var/lib/tripwire/*.twd*
${TRIPWIRE} -m i -s -c tw.cfg -P $LOCALPASS

[root@centos ~]# chmod 700 tripwire.shソス@ソスソスソス@TripwireソスソスソスソスソスソスソスソスソスソスsソスXソスNソスソスソスvソスgソスヨ趣ソスソスsソスソスソスソスソスtソスソス

[root@centos ~]# echo "0 3 * * * root /root/tripwire.sh" > /etc/cron.d/tripwireソス@ソスソスソス@Tripwireソスソスソスソスソスソスソスソスソスソスsソスン抵ソスヌ会ソスソスソスソスソスソスソス3:00ソスソスTripwireソスソスソスソスソスソスsソスXソスNソスソスソスvソスgソスソスソスソスソスsソスソスソスソス

ソスソスソス|ソスソスソスVソス[ソスtソス@ソスCソスソスソスソスソスソスソスeソスiソスソスソスX

ソスソスソスXソスフチソスFソスbソスNソスソスソスハゑソスソスAソスソスソス轤ゥソスソスソス゚変更ソスソスソスかソスソスソストゑソスソスソスfソスBソスソスソスNソスgソスソスソスソスtソス@ソスCソスソスソスノつゑソスソストは鯉ソスソスmソスソスソスソスネゑソスソス謔、ソスノゑソスソスソスB
[root@centos ~]# twadmin -m p -c /etc/tripwire/tw.cfg -p /etc/tripwire/tw.pol -S /etc/tripwire/site.key > /etc/tripwire/twpol.txtソス@ソスソスソス@ソス|ソスソスソスVソス[ソスtソス@ソスCソスソス(ソスeソスLソスXソスgソスソス)ソス成

[root@centos ~]# echo '!/var/log/sa ;' >> /etc/tripwire/twpol.txtソス@ソスソスソス@ソスソスニゑソスソストデソスBソスソスソスNソスgソスソス/var/log/saソスソスソス`ソスFソスbソスNソスホ象外ソスノゑソスソスソス

[root@centos ~]# echo '!/etc/sysconfig/iptables ;' >> /etc/tripwire/twpol.txtソス@ソスソスソス@ソスソスニゑソスソストフソス@ソスCソスソス/etc/sysconfig/iptablesソスソスソス`ソスFソスbソスNソスホ象外ソスノゑソスソスソス

[root@centos ~]# twadmin -m P -c /etc/tripwire/tw.cfg -p /etc/tripwire/tw.pol -S /etc/tripwire/site.key /etc/tripwire/twpol.txtソス@ソスソスソス@ソスナ適ソスソスソスマポソスソスソスVソス[ソスtソス@ソスCソスソスソスソスソスソスソスノポソスソスソスVソス[ソスtソス@ソスCソスソス(ソステ搾ソスソスソスソスソスソスソス)ソス成
Please enter your site passphrase:ソス@ソスソスソス@ソスTソスCソスgソスpソスXソスtソスソスソス[ソスYソスソスソスソス
Wrote policy file: /etc/tripwire/tw.pol

[root@centos ~]# rm -f /etc/tripwire/twpol.txt /etc/tripwire/tw.pol.bakソス@ソスソスソス@ソス|ソスソスソスVソス[ソスtソス@ソスCソスソス(ソスeソスLソスXソスgソスソス&ソスoソスbソスNソスAソスbソスv)ソス除

[root@centos ~]# rm -f /var/lib/tripwire/*.twd* ; tripwire -m i -s -c /etc/tripwire/tw.cfgソス@ソスソスソス@Tripwireソスfソス[ソス^ソスxソス[ソスXソスXソスV
Please enter your local passphrase:ソス@ソスソスソス@ソスソスソス[ソスJソスソスソスpソスXソスtソスソスソス[ソスYソスソスソスソス


ソスソスソスヨ連ソスRソスソスソスeソスソスソスc

<!ソス\ソスeソスLソスXソスgソスフみゑソス4ソスsソス\ソスソスソスノ追会ソスソスソスCソスソスソスソスソスソス\>



ソスソスソスソスソスフペソス[ソスWソスフトソスbソスvソスヨ戻ゑソス

ソスvソスソスソスCソスoソスVソス[ソス|ソスソスソスVソス[
centossrv.com