본문 바로가기

I T103

리눅스 1G 파일 만들기 [ dd 명령어 ] To create 1MB file (1024kb), enter: $ dd if=/dev/zero of=test.img bs=1024 count=0 seek=1024You will get an empty files (also known as "sparse file") of arbitrary size using above syntax. To create 10MB file , enter: $ dd if=/dev/zero of=test.img bs=1024 count=0 seek=$[1024*10]To create 100MB file , enter: $ dd if=/dev/zero of=test.img bs=1024 count=0 seek=$[1024*100] $ ls -lh test.imgTo create 1.. 2015. 12. 1.
apache authentication 설정!! apache authentication Apache Authentication ! 위의 그림 처럼 apache 의 보안 인증을 사용 하는 방법. 1. apache 설정 파일인 httpd.conf 의 설정을 변경. 1. 아파치 설정 파일인 httpd.conf 파일의 설정을 변경한다. Options Indexes FollowSymLinks AllowOverride None Order allow,deny Allow from all 위 내용은 설정 파일의 일부분으로 AllowOverride None 라고 되어 있는 부분을 AllowOverride All 로 수정한다. 수정 후 아파치 서버를 재시작 해준다. 이제 인증을 통해 제한할 디렉토리로 이동하여 .htaccess 파일을 작성한다. AuthType Basic.. 2015. 10. 7.
ip SLA with Cisco EEM ip sla responderip sla enable reaction-alertsip sla 1udp-jitter 210.210.210.1 16384 num-packets 100 interval 20 request-data-size 172 tos 176ip sla schedule 1 start-time now life foreverip sla reaction-configuration 1 react jitterDSAvg threshold-value 35 30 threshold-type consecutive 3ip sla reaction-configuration 1 react jitterSDAvg threshold-value 35 30 threshold-type consecutive 3ip sla react.. 2015. 10. 6.
IP Spoofing , ARP Spoofing IP spoofing이란?- spoofing이라는 것은 '속이다'라는 의미이고 IP spoofing은 Ip자체의 보안 취약성을 악용한 것으로 자신의 IP를 속여서 접속(공격)하는 방법을 의미한다. * 현재 알려진 TCP/IP 프로토콜의 약점을 이용한 IP spoofing은 다음과 같다.- 순서제어번호 추측(Sequence number guessing)- 반(Half)접속시도 공격(SYN flooding)- 접속가로채기(Connection hijacking)- RST를 이용한 접속끊기(Connection killing by RST)- FIN을 이용한 접속끊기(Connection killing by FIN)- SYN/RST패킷 생성공격(SYN/RST generation)- 네트워크 데몬 정지(killing .. 2015. 9. 23.
리눅스 log 파일 디렉토리별 의미 *** utmp, utmpx - 시스템에 현재 로그인한 사용자들에 대한 상태를 기록 - wtmp, wtmpx와 파일 포맷은 동일하나 ump(x)에는 현재 시스템에 대한 정보가 남고 wtmp(x)에는 누적된 정보가 남는다는 것이 가장 큰 차이점 - /var/run (Linux) 혹은 /var/adm, /etc/ (Solaris) 등에 위치하며 바이너리 형태로 저장되어 vi 편집기 등으로는 읽을 수 없다 - utmp(x) 파일은 기본적으로 사용자 이름, 터미널 장치 이름, 원격 로그인 시 원격 호스트 이름, 사용자 로그인한 시간 등을 기록하는데, utmp(x) 파일은 텍스트 파일이 아니므로 일반 편집기로는 내용을 정확히 확인하기 곤란 who, w, whodo, users, finger 등의 명령어를 사용하여.. 2015. 8. 30.
wireshark 패턴 2015. 8. 30.
pxe,kickstart 를 이용한 원격 OS 설치 1. TFTP 설치 및 설정[root@localhost /]# yum install tftp tftp-server[root@localhost /]# vi /etc/xinetd.d/tftp# default: off # description: The tftp server serves files using the trivial file transfer \ # protocol. The tftp protocol is often used to boot diskless \ # workstations, download configuration files to network-aware printers, \ # and to start the installation process for some operating syste.. 2015. 8. 30.
100기가 쓰레기 파일 생성 [dd 명령어] 네트워크 BMT 테스트 할 경우 속도 테스트 때문에 용량큰 파일을 옮겨 보는 경우가 많습니다 해당 리눅스 서버에서 아래 명령어를 치면 100기가 용량의 쓰레기 파일을 만들수있습니다. [root@TEST ~]# dd if=/dev/zero of=100g_file bs=100M count=1000 dd (Device Dump) bs=bytes 한번에 읽어들일 바이트수와 출력할 바이트수 두가지 다를 같은수치로 지정합니다. count=blocks 카피할 블록수를 지정합니다. dd는 읽어들일 사이즈와 출력할 사이즈를 다르게 지정할 수 있습니다. 이경우 ibs와 obs를 쓰지요. bs를 쓸경우 입출력사이즈는 동일하게 됩니다. ibs는 input, obs는 output. 2015. 8. 30.
snmpset snmpset -v2c -c test 192.168.100.2 ifAdminstatus = 1 (포트업) snmpset -v2c -c test 192.168.100.2 ifAdminstatus = 2 (포트다운) 2015. 8. 30.