본문 바로가기

I T115

리눅스 보드장치명 # dmidecode -s baseboard-product-name 2015. 8. 30.
mysql db 생성 테이블 생성 mysql> create database arp;Query OK, 1 row affected (0.00 sec) mysql> grant all privileges on arp.* to arp@localhost identified by 'smile_test@mrtg' with grant option;Query OK, 0 rows affected (0.00 sec) mysql> flush privileges;Query OK, 0 rows affected (0.00 sec) mysql> use arp;Database changedmysql> CREATE TABLE `members` ( -> `id` int(4) NOT NULL auto_increment, -> `username` varchar(65) NOT .. 2015. 8. 30.
snmp 메모리 OID 값. snmpwalk -c public -v1 -Of .1.3.6.1.4.1.2021.4 memory used should = memTotalReal - memBuffer - memCached - memAvailReal And swap used should = memTotalSwap - memAvailSwap And total memory should = memTotalSwap + memTotalReal free 명령에서의 used값은 이 graph 상 의 used + bufferd+cached 값이 합쳐진 값이다. 실제로 buffer와 cache값은 used 에서 빠져야 실제 메모리 사용량을 알 수가 있는 것이다. 즉 이 graph 에 나오는 used 값이 실제 메모리 사용량이라고 보면 된다 2015. 8. 30.
tracert 와 traceroute 의 동작원리 및 차이 tracert 와 traceroute 의 동작원리 및 차이 traceroute 는 목적지까지 이르는 네트워크의 경로(라우터)를 보여주는 것으로 목적지에 이르는 outbound 경로만 보여줄 뿐, 돌아오는 inbound 경로는 네트워크 구조와 사정에 따라 같을 수도 있고 다를 수도 있습니다. traceroute 가 사용하는 원리는 동일하지만 구현 방법은 시스템에 따라 다소 상이한데, 일반적인 *nix 계열 및 cisco 계열 라우터의 경우 목적지 시스템의 33434~38000 포트로 TTL 값을 1씩 늘려가면서 udp 패킷을 발송하여 TTL 값의 만기(expiration)로 인하여 돌아오는 "ICMP time exceed" 메시지를 이용합니다. 반면 Windows 계열의 tracert 는 목적지 시스템에 .. 2015. 8. 30.
브라우저 히스토리 tool Browserhistoryspy BrowserHistorySpy 공식홈 : http://securityxploded.com/download.php BrowserHistorySpy는 SecurityXploded 사에서 개발된 툴로 파이어폭스, Google 크롬, 인터넷 익스플로러의 히스토리 파일을 간단하게 확인할 수 있는 프로그램입니다. 2015. 8. 30.
Network monitoring Program Dude ( 무료 ) 다운. 공식홈 : http://www.mikrotik.com/thedude 2015. 8. 29.
VNCViewer 노설치 다운. 다운받고 그냥 실행. 2015. 8. 29.
haproxy 분배 현황 커맨드로 확인하기기 (haproxy stats command line) 로드밸랜서가 가능한 haproxy 는 분배현황을 직관적으로 확인하기가 약간 힘들다.lvs 같은 경우는watch ipvsadm -ln 명령어를 입력하면 아래와 같이 직관적으로 2초마다 확인이 가능하다다 IP Virtual Server version 1.2.1 (size=4096)Prot LocalAddress:Port Scheduler Flags -> RemoteAddress:Port Forward Weight ActiveConn InActConnTCP 192.168.0.1:80 sh -> 192.168.0.2:80 Masq 1 0 0haproxy에서 분배 현황을 확인하는 위해 haproxy.cfg 에 설정을 해줘야 한다 listen stats :10004 stats enable stats uri / st.. 2015. 8. 29.
TCP proxy 사이트 : http://www.quietsche-entchen.de/cgi-bin/wiki.cgi/proxies/TcpProxy 파일 다운로드 및 설치 wget http://www.quietsche-entchen.de/download/tcpproxy-2.0.0-beta15.tar.gz make && make install tcpproxy ESTABLISHED timeout 설정 tcpproxy.c디폴트는 60초인데 기본적으로 60초동안 패킷 통신이 일어나지 않으면 접속을 끊는다는 의미넉넉하게 주면 TCP 끊어질 일은 없음x->timeout = 60; 수정후 재컴파일 하면 적용됨 설정파일/etc/tcpproxy.conf port 80 : 프록시 서버에서 LISTEN 포트interface : 랜카드 eth0.. 2015. 8. 29.