WRT-54G 펌웨어 관련글
원래 글은 60$짜리 라우터를 600$짜리로 바꾼다는 글. 원래 펌웨어에서 지원하지 않는 신호세기 조정이라든지, QoS를 지원한다든지에 관한 글이다. 잠깐봤는데, VLAN도 있는듯. 하지만 지원되는지는 모르겠다.
참고사이트:
http://www.wrtrouters.com/guides/upgradetolinux/
원래 글은 60$짜리 라우터를 600$짜리로 바꾼다는 글. 원래 펌웨어에서 지원하지 않는 신호세기 조정이라든지, QoS를 지원한다든지에 관한 글이다. 잠깐봤는데, VLAN도 있는듯. 하지만 지원되는지는 모르겠다.
참고사이트:
http://www.wrtrouters.com/guides/upgradetolinux/
기억력이 나빠서.. 할때마다 문서찾기..
그냥 적어 놓으련다.
mysql> CREATE database 디비;
Query OK, 0 rows affected (0.00 sec)mysql> GRANT all privileges on 디비.* TO 사용자@localhost
> IDENTIFIED BY ‘패스워드’;
Query OK, 0 rows affected (0.00 sec)
원문은 bigadmin.org의 운영자인 dk가 작성.
필요한 파일을 다운 받아서 /usr/local/src 로 받아둡니다.
초고속으로 설치할 수 있게.. 간단하게 명령어들만 정리했습니다.
자세한 설명은 저도 잘 모르기 때문에.. 생략했습니다.. ^^;;
1. zlib-1.2.1.tar.gz
2. libpng-1.2.5.tar.gz
3. gd-2.0.15.tar.gz
4. mrtg-2.10.5.tar.gz
1. zlib-1.2.1.tar.gz 설치
# gzip -d zlib-1.2.1.tar.gz; tar xvf zlib-1.2.1.tar
# cd zlib-1.2.1
# ./configure –prefix=/usr/local/zlib
# make
# make test
# make install
2. libpng-1.2.5 설치
# cd ..; gzip -d libpng-1.2.5.tar.gz; tar libpng-1.2.5.tar
# mv libpng-1.2.5/ /usr/local/libpng
# cd /usr/local/libpng/
# cp scripts/makefile.linux ./makefile
# make test
# make install
3. gd-2.0.15 설치
# cd /usr/local/src; gzip -d gd-2.0.15.tar.gz; tar xvf gd-2.0.15.tar
# cd gd-2.0.15/
# ./configure –prefix=/usr/local/gd
# make
# make install
4. mrtg-2.10.5 설치
# cd ..; gzip -d mrtg-2.10.5.tar.gz; tar xvf mrtg-2.10.5.tar
# cd mrtg-2.10.5/
# ./configure –prefix=/usr/local/mrtg \
> –with-gd=/usr/local/gd \
> –with-z=/usr/local/zlib \
> –with-png=/usr/local/libpng
# make
# make install
./configure –help=short 이렇게 하시면.. 간단하게 옵션들 보실 수 있습니다.
5. /etc/snmp/snmp.conf 수정
mrtg를 운영하기 위해선 snmpd 가 돌고 있어야 합니다.
/etc/rc.d/snmpd start 해주세용..
ucd-snmp랑 net-snmp 두가지가 있다고 하는데.. 제 머신에는 net-snmp가 설치되어있습니다.
이 부분에 대해서 잘 아시는분은 좀 알려주세요~~
vi 로 파일을 열어서
####
# First, map the community name “public” into a “security name”
# sec.name source community
#com2sec notConfigUser default public
com2sec local servertnt.com dklee
이런 식으로 수정해주세요.
# /etc/rc.d/snmpd restart
6. mrtg.cfg 파일 만들기
# cd /usr/local/mrtg/bin
# mkdir /usr/local/mrtg/conf
# cfgmaker –global ‘WorkDir:/home1/mrtg/public_html’ \
> –global ‘Options[_]:bits,growright’ \
> –output /usr/local/mrtg/conf/mrtg.cfg \
dklee@servertnt.com
마지막 부분은 snmp.conf 에서 수정한 community와 host입니다.
7. crontab 에서 실행 설정
저는 아래와 같이 작업했습니다.. 참고만 하세요..
/root/bin/mrtg.sh 만들기
#!/bin/sh
env LANG=C /usr/local/mrtg/bin/mrtg /usr/local/mrtg/conf/mrtg.cfg
# crontab -u root -e
0/5 * * * * /root/bin/mrtg.sh
여기 까지 입니닷~~. /etc/snmp/snmp.conf 파일을 수정해도 mrtg.cfg 파일이 정상적으로
생성되지 않을 수 있다고 합니다. snmp.conf 이거 받으셔서 /etc/snmp/snmp.conf로
파일을 올리시고.. 원본파일은 snmp.conf.org 정도로 수정해 놓으세요.
아까 5번 부분에서 설명한 부분만 수정해서 다시 데몬을 올려보세요~~
kldp 블로그에 재미있는 글이 있어서.. 이곳에.. 헤에헤..
원문은 여기.. http://blog.kldp.org/node/view/722
Aoccdrnig to a rscheearch at an Elingsh uinervtisy, it deosn’t mttaer in waht oredr the ltteers in a wrod are, the olny iprmoetnt tihng is taht frist and lsat ltteer is at the rghit pclae. The rset can be a toatl mses and you
can sitll raed it wouthit porbelm. Tihs is bcuseae we do not raed ervey lteter by it slef but the wrod as a wlohe.
snoop의 간단한 아주 간단한 사용법.. 헤에헤..
심심해서 써 봅니다..
solaris에서 기본적으로 제공되는 snoop를 이용하면
패킷들을 볼 수 있습니다.
물론, 네트워크의 정상 작동 유무를 확인할 수 있는 툴입니다만
이것을 이용하면, telnet, ftp등이 얼마나 보안에
취약한지도 알 수 있습니다.
각설하고,
snoop -d hme0 host xxx.xxx.xxx.xxx
이렇게 하면, 기본적으로 hme0를 통과해서
목적지가 xxx.xxx.xxx.xxx인 패킷들이 보입니다.
비슷한 툴로는 tcpdump가 있습니다.
자세한 사용법은 man snoop 하십시요 (-:
set filec
Set file-completion for csh
This allows the escape key to be used for filename completion in a csh line command.
Powered by WordPress | Aeros Theme | TheBuckmaker.com WordPress Themes
Bad Behavior has blocked 75 access attempts in the last 7 days.