Windows2014. 3. 26. 17:27

 

출처 : http://support.microsoft.com/kb/315539/ko

 

기존의 네트워크 어댑터를 삭제하려면 다음과 같이 한다.


 

1. 시작 > 실행 후 cmd.exe 입력

2. 명령 프롬프트에서 set devmgr_show_nonpresent_devices=1 입력

3. start devmgmt.msc입력하면 장치 관리자가 뜬다.

4. 장치관리자의 보기 메뉴에서 숨긴 장치 표시를 체크한 후 네트워크 어댑터를 보면 아이콘이 흐릿한 것이 나타난다.

#2가 붙지 않은 본래 네트워크 어댑터를 선택한후 제거를 한다.

Posted by 배움나눔
Windows2014. 3. 19. 15:59

devcon.exe 을 이용하여 Loopback interface를 자동 설치 가능하다.

 

devcon install %WINDIR%\Inf\Netloop.inf *MSLOOP

 

windows server 2003 : http://support.microsoft.com/kb/311272

 

 

windows server 2008 r2 ~ 2012 r2

설명 : http://msdn.microsoft.com/ko-kr/windows/hardware/hh852365

설치 경로 : http://download.microsoft.com/download/8/6/9/86925F0F-D57A-4BA4-8278-861B6876D78E/wdk/wdksetup.exe

 

 

Posted by 배움나눔
Windows2014. 2. 27. 11:21

1차 DNS 등록

netsh interface ipv4 set dnsservers "이더넷" static 168.126.63.1

 

2차 DNS등록

netsh interface ipv4 add dns name="이더넷" 8.8.8.8 index=2

Posted by 배움나눔
Cacti2014. 1. 27. 19:01

출처 : http://www.unixmen.com/install-cacti-network-monitoring-tool-on-centos-6-4-rhel-6-4-scientific-linux-6-4/

Install required packages

Install the following required packages for Cacti. Cacti and some of the below prerequisites are not included in the CentOS official repository. So let us install them from EPEL repository. To install EPEL repository enter the following commands.

[root@server ~]# wget http://dl.fedoraproject.org/pub/epel/6/i386/epel-release-6-8.noarch.rpm
[root@server ~]# rpm -ivh epel-release-6-8.noarch.rpm

Install Apache

Apache is used to display the the network graphs created by PHP and RRDtool.

[root@server ~]# yum install httpd httpd-devel -y

Install MySQL

MySQL is used to store the Cacti Database details.

[root@server ~]# yum install mysql mysql-server -y

Install PHP

PHP script is used to create graphs using RRDtool.

[root@server ~]# yum install php-mysql php-pear php-common php-gd php-devel php php-mbstring php-cli php-mysql -y

Install PHP-SNMP

It is an extension for SNMP to access data.

[root@server ~]# yum install php-snmp -y

Install NET-SNMP

It is used to manage network.

[root@server ~]# yum install net-snmp-utils net-snmp-libs php-pear-Net-SMTP -y

Install RRDtool

It is a database tool to manage and retrieve data’s like Network Bandwidth and CPU Load etc.

[root@server ~]# yum install rrdtool -y

After installing all the above softwares, start them.

[root@server ~]# /etc/init.d/httpd start
[root@server ~]# /etc/init.d/mysqld start
[root@server ~]# /etc/init.d/snmpd start

Let the above services to start automatically on every reboot.

[root@server ~]# chkconfig httpd on
[root@server ~]# chkconfig mysqld on
[root@server ~]# chkconfig snmpd on

Installing Cacti Tool

[root@server ~]# yum install cacti -y

Configure MySQL

Login to MySQL server as root user and create a database for Cacti. Here i use Cacti database name as cacti, username as cacti and password as centos respectively.

[root@server ~]# mysql -u root -p
Enter password: 
Welcome to the MySQL monitor.  Commands end with ; or \g.
Your MySQL connection id is 7
Server version: 5.1.69 Source distribution

Copyright (c) 2000, 2013, Oracle and/or its affiliates. All rights reserved.

Oracle is a registered trademark of Oracle Corporation and/or its
affiliates. Other names may be trademarks of their respective
owners.

Type 'help;' or '\h' for help. Type '\c' to clear the current input statement.

mysql> create database cacti;
Query OK, 1 row affected (0.01 sec)

mysql> GRANT ALL ON cacti.* TO cacti@localhost IDENTIFIED BY 'centos';
Query OK, 0 rows affected (0.00 sec)

mysql> flush privileges;
Query OK, 0 rows affected (0.01 sec)

mysql> exit
Bye

Now import Cacti Tables to Cacti Database. Find the location of the file cacti.sql and import it to cacti database. To find out this file, enter the following command.

[root@server ~]# rpm -ql cacti | grep cacti.sql
/usr/share/doc/cacti-0.8.8a/cacti.sql

Note down the path of cacti.sql file and import it using the following command.

[root@server ~]# mysql -u cacti -p cacti < /usr/share/doc/cacti-0.8.8a/cacti.sql 
Enter password:

(오류 발생시에는 mysql root 계정의 패스워드 생성 후 다시 시도)

Now the tables are imported into cacti database.

Open the /etc/cacti/db.php and make the following changes.

[root@server ~]# vi /etc/cacti/db.php 
/* make sure these values refect your actual database/host/user/password */
$database_type = "mysql";
$database_default = "cacti";        ## Name of the Cacti Database ##
$database_hostname = "localhost";
$database_username = "cacti";       ## Username for Cacti database ##     
$database_password = "centos";              ## Database password ##
$database_port = "3306";
$database_ssl = false;

/*

Configure Apache server

Open the file /etc/httpd/conf.d/cacti.conf and add your network range or you can add a single ip. In this case, i add my local network ip range 192.168.1.0/24.

[root@server ~]# vi /etc/httpd/conf.d/cacti.conf 
Alias /cacti    /usr/share/cacti

<Directory /usr/share/cacti/>
        <IfModule mod_authz_core.c>
                # httpd 2.4
                Require host localhost
        </IfModule>
        <IfModule !mod_authz_core.c>
                # httpd 2.2
                Order deny,allow
                Deny from all
                Allow from 192.168.1.0/24
        </IfModule>
</Directory>

Restart your apache server finally.

[root@server ~]# /etc/init.d/httpd restart

If you wanna to start the installer from a remote machine, you should allow the apache default port 80 through your iptables.

[root@server ~]# vi /etc/sysconfig/iptables
# Firewall configuration written by system-config-firewall
# Manual customization of this file is not recommended.
*filter
:INPUT ACCEPT [0:0]
:FORWARD ACCEPT [0:0]
:OUTPUT ACCEPT [0:0]
-A INPUT -p udp -m state --state NEW --dport 80 -j ACCEPT
-A INPUT -p tcp -m state --state NEW --dport 80 -j ACCEPT
-A INPUT -p udp -m state --state NEW --dport 53 -j ACCEPT
-A INPUT -p tcp -m state --state NEW --dport 53 -j ACCEPT
-A INPUT -m state --state ESTABLISHED,RELATED -j ACCEPT
-A INPUT -p icmp -j ACCEPT
-A INPUT -i lo -j ACCEPT
-A INPUT -m state --state NEW -m tcp -p tcp --dport 22 -j ACCEPT
-A INPUT -j REJECT --reject-with icmp-host-prohibited
-A FORWARD -j REJECT --reject-with icmp-host-prohibited
COMMIT

Restart iptables.

[root@server ~]# /etc/init.d/iptables restart

Configure Cron for Cacti

Open the file /etc/cron.d/cacti and uncomment the following line.

[root@server ~]# vi /etc/cron.d/cacti
*/5 * * * *     cacti   /usr/bin/php /usr/share/cacti/poller.php > /dev/null 2>&1

The above cron job runs the poller.php script every five minutes and collects the data of the known hosts by Cacti.

Run Cacti installer

Navigate to your web browser using the URL http://ip-address/cacti. The following screen should appear, Click Next.

cacti - Mozilla Firefox_001

Select New install from the drop down box and click Next.

cacti - Mozilla Firefox_002

In the next screen make sure that all the values are valid and click Finish.

cacti - Mozilla Firefox_003

Now the installation is completed and it will ask the cacti username and password to login to admin console. The default username and password of Cacti is admin.

Login to Cacti - Mozilla Firefox_007

It will ask you to change the admin password now. Enter the new password and click Save.

Login to cacti - Mozilla Firefox_009

Now you will get the main console window of Cacti.

Console - Mozilla Firefox_010

Create Graphs

Click New Graphs on the left pane of console screen. Select the Host or create a new one and Select SNMP – Generic OID Template in Graph Templates section and click Create.

Console -- Create New Graphs - Mozilla Firefox_013

Console -- Create New Graphs -- Create Graphs from Data Query - Mozilla Firefox_014

After creating the graphs, you can preview them using graphs tab on the menu bar. Here are some of my localhost Cacti screen-shots.

Localhost – Memory Usage Graph

Graphs -- Tree Mode -- Localhost - Memory Usage - Mozilla Firefox_016

Localhost – Disk space Graph

Graphs -- Tree Mode -- Localhost - Disk Space - -dev-mapper-vg_ - Mozilla Firefox_017

Localhost – Load Average Graph

Graphs -- Tree Mode -- Localhost - Load Average - Mozilla Firefox_018

Localhost – Logged in users Graph

Graphs -- Tree Mode -- Localhost - Logged in Users - Mozilla Firefox_019

Localhost – Processes Graph

Graphs -- Tree Mode -- Localhost - Processes - Mozilla Firefox_020

Thats it. Happy Monitoring!!!

For questions please refer to our Q/A forum at : http://ask.unixmen.com/
Posted by 배움나눔
Windows2014. 1. 24. 16:05

Windows 를 이용하여 SNTP 및 NTP 동기화 하기

http://timesynctool.com/

사이트에서 NTP프로그램을 받는다 (아래 링크)

Download:

Version 3.14:

NetTimeSetup-314.exe (Tistory Upload 파일 : 2014년 01월 버전)

 

Windows time service는 중지 하고

 

프로그램을 이용하여 외부와 동기화를 시켜주고 내부또한 동기화가 가능하다.

Posted by 배움나눔
Windows2014. 1. 24. 15:59

Azure 에서는 VHD 만 지원한다

Hyper-v 에서 생성된 VHDx 파일을 VHD로 변환이 필요 하다.

 

PS C:\> Convert-VHD –Path c:\test\MY-VM.vhdx –DestinationPath c:\test\MY-NEW-VM.vhd

 

example:

clip_image002

Posted by 배움나눔
NAGIOS2013. 11. 11. 18:28

출처 : http://community.spiceworks.com/topic/140762-nagios-check-https

 

This is my command definition:

# 'check_http' with SSL command switch
define command{
command_name check_https
command_line $USER1$/check_http -I $HOSTADDRESS$ -S $ARG1$
}

This is my service definition:

define service{
use generic-service ; Inherit default values from a template
host_name reg.ymcasv.org
service_description HTTP
check_command check_https
}

 

Posted by 배움나눔
Windows2013. 10. 28. 16:58

출처 : http://windows.microsoft.com/ko-kr/windows7/why-can-t-i-connect-using-remote-desktop-connection

 

컴퓨터가 도메인에 속해 있으면 기본적으로 원격 컴퓨터에 연결할 때 자격 증명을 저장할 수 없지만 이 설정을 변경할 수 있습니다.

이러한 단계를 수행하려면 관리자로 로그온해야 합니다.

1.     시작 단추 를 클릭하고 gpedit.msc를 입력한 다음 Enter 키를 누릅니다. 관리자 암호를 묻거나 확인하는 메시지가 표시되면 암호를 입력하거나 확인을 제공합니다.

2.     컴퓨터 구성에서 관리 템플릿, 시스템, 자격 증명 위임을 차례로 두 번 클릭합니다.

3.     오른쪽 창에서 서버 인증이 NTLM 전용일 경우 저장된 자격 증명 위임 허용을 두 번 클릭합니다.

4.     표시되는 대화 상자에서 사용을 클릭한 다음 표시를 클릭합니다.

5.     내용 표시 대화 상자에서 원격 컴퓨터(서버)의 이름을 TERMSRV\computername 형식으로 입력한 다음 확인을 클릭합니다.

참고

·         TERMSRV는 표시된 대로 대문자로 입력해야 합니다. computername 변수는 특정 원격 컴퓨터의 이름(: TERMSRV/myremotepc)으로 지정하거나 별표(*)를 사용하여 컴퓨터 그룹(: TERMSRV/* 또는 TERMSRV/*.corp.com)을 포함할 수 있으며, 원격 컴퓨터에 연결하기 위해 원격 데스크톱 연결 대화 상자의 컴퓨터 상자에 입력한 이름과 정확하게 일치해야 합니다.

 

Posted by 배움나눔
Windows2013. 9. 26. 09:21

출처 : http://technet.microsoft.com/ko-kr/library/cc725766(v=ws.10).aspx

Terminal Services Command Reference

업데이트 날짜: 2007년 9월

적용 대상: Windows Server 2008, Windows Vista

The following is a list of Terminal Services command-line tools.

 

Command Description

Change

Changes terminal server settings for logons, COM port mappings, and install mode.

Change logon

Enables or disables logons from client sessions on a terminal server, or displays current logon status.

Change port

Lists or changes the COM port mappings to be compatible with MS-DOS applications.

Change user

Changes the install mode for the terminal server.

Chglogon

Enables or disables logons from client sessions on a terminal server, or displays current logon status.

Chgport

Lists or changes the COM port mappings to be compatible with MS-DOS applications.

Chgusr

Changes the install mode for the terminal server.

Flattemp

Enables or disables flat temporary folders.

Logoff

Logs off a user from a session on a terminal server and deletes the session from the server.

Msg

Sends a message to a user on a terminal server.

Mstsc

Creates connections to terminal servers or other remote computers.

Qappsrv

Displays a list of all terminal servers on the network.

Qprocess

Displays information about processes that are running on a terminal server.

Query

Displays information about processes, sessions, and terminal servers.

Query process

Displays information about processes that are running on a terminal server.

Query session

Displays information about sessions on a terminal server.

Query termserver

Displays a list of all terminal servers on the network.

Query user

Displays information about user sessions on a terminal server.

Quser

Displays information about user sessions on a terminal server.

Qwinsta

Displays information about sessions on a terminal server.

Rdpsign

Enables you to digitally sign a Remote Desktop Protocol (.rdp) file.

Reset session

Enables you to reset (delete) a session on a terminal server.

Rwinsta

Enables you to reset (delete) a session on a terminal server.

Shadow

Enables you to remotely control an active session of another user on a terminal server.

Tscon

Connects to another session on a terminal server.

Tsdiscon

Disconnects a session from a terminal server.

Tskill

Ends a process running in a session on a terminal server.

Tsprof

Copies the Terminal Services user configuration information from one user to another.

Posted by 배움나눔
Windows2013. 9. 23. 16:23

출처 : http://security-guys.blogspot.kr/2010/04/blog-post.html

 

로그온 유형 코드 이해하기

윈도우 보안감사 로그를 분석하다보면 많은 코드들이 나와 혼란스럽습니다.


이중 중요한 코드가 로그온 유형 코드인데요, 이를 통해서 침입자가 어떤 방식으로 접근했는지를 확인할 수 있습니다.

  1. 로그온 유형 2 (Logon Type 2) : 대화식

    • 콘솔에서 키보드로 로그인 (LogMeIn, TeamView, KVM 포함)


  2. 로그온 유형 3 (Logon Type 3) : 네트워크

    • 네트워크를 통한 원격 로그인. (파일 공유, IIS 접속 등)

  3. 로그온 유형 4 (Logon Type 4) : 자동실행(스케줄)

    • 스케줄에 등록된 배치 작업 실행시 미리 설정된 계정 정보로 로그인

  4. 로그온 유형 5 (Logon Type 5) : 서비스

    • 서비스가 실행될때 미리 설정된 계정 정보로 로그인


  5. 로그온 유형 7 (Logon Type 7) : 잠금해제

    • 화면보호기 잠금 해제시


  6. 로그온 유형 8 (Logon Type 8) : 네트워크 (평문암호)

    • 유형 3과 비슷하지만 계정 정보를 평문으로 전송시 발생 (ASP 기본 암호설정)

  7. 로그온 유형 9 (Logon Type 9) : 새 자격

    • 실행(RunAs)에서 프로그램 실행시 /netonly 옵션을 줄때

  8. 로그온 유형 10 (Logon Type 10) : 원격 대화식

    • 터미널 서비스, 원격 접속, 원격지원으로 로그인

  9. 로그온 유형 11 (Logon Type 11) : 캐쉬된 대화식

    • PC에 캐쉬로 저장된 암호로 자동 입력 로그인시
Posted by 배움나눔