DDoS공격 방지 iptables

2012년 08월 26일 golgol 0

참조: http://cafe.naver.com/asterisker/1497 DDoS공격으로 의외로 피해를 많이보고있는 현실입니다. 그렇다고 무조건 공격당할수는 없겠죠..그래서 웹민에 디도스공격방어를 할수있는 설정화면을 넣었습니다. 완전한 방어법은 아니지만 어느정도 효과는 있더라구요 리눅스에서도 해주면 되겠지만 […]

SSH 원격이 안될때

2012년 08월 22일 golgol 0

debug 참조 :http://www.thegeekstuff.com/2011/06/iptables-rules-examples/ Ubuntu // ssh 없을시 1. 설치 $ sudo apt-get install ssh 2. 포트 변경 $ sudo vi /etc/ssh/sshd_config # port 22 […]

ssh 포트 변경

2012년 08월 22일 golgol 0

Remark : ssh 접속 포트 22 을 다른 포트 26022 로 변경해 보자 1. /etc/services 파일내용을 아래와 같이 ftp와 ssh 포트를 변경함.

2. /etc/ssh/sshd_config […]

shell 의 종류 및 추가

2012년 08월 21일 golgol 0

cat /etc/shells    —- shells 보기 /bin/sh – 본쉘 /bin/bash – Bourne Again shell /bin/tcsh – TC쉘 /bin/csh – C쉘 /bin/ksh – 콘쉘   1. […]

iptables -L command not found

2012년 08월 20일 golgol 0

iptables -L command not found => su 사용하지 말고 su – 로 root 계정로그인 su 는 root 권한에 포함되어 있는 환경변수는 하나도 가져오지 않습니다. 엄청난 […]

find 명령어

2012년 08월 19일 golgol 0

find /usr/include |xargs grep scoketaddr_in = grep으로 두단어 검색? (1) 자신의 홈 디렉토리에서 확장자가 .txt’인 파일을 찾을 경우 find ~ -name ‘*.txt’ (2) 현재 디렉토리 […]

phpmyadmin 에러들

2012년 08월 19일 golgol 0

The configuration file now needs a secret passphrase (blowfish_secret). vi /usr/share/phpmyadmin/config.inc.php $i++; /* Authentication type */ $cfg[‘blowfish_secret’]=’cookie’; $cfg[‘Servers’][$i][‘auth_type’] = ‘cookie’; /* Server parameters */ $cfg[‘Servers’][$i][‘host’] […]

phpMyadmin 설치

2012년 08월 19일 golgol 0

# yum -y install php* php-* 참조 블로그 http://packages.sw.be/rpmforge-release/ 각 운영체제에 맞는 rpmforge-release 파일이 있습니다.. CentOS 가 아니라면 확인해보시고.. 운영체제에 맞는 걸로 받으시면 됩니다.. 우선 […]

centOS 5 / 6 버전 확인하기

2012년 08월 19일 golgol 0

centOS 5 [root@localhost]# lsb_release -a LSB Version: :core-4.0-ia32:core-4.0-noarch:graphics-4.0-ia32:graphics-4.0-noarch:printing-4.0-ia32:printing-4.0-noarch Distributor ID: CentOS Description: CentOS release 5.8 (Final) Release: 5.8 Codename: Final [root@localhost]# 32/64bit 확인 [root@localhost]# getconf […]

Installing Tomcat 7 on CentOS 6

2012년 08월 17일 golgol 0

Installing Tomcat 7 on CentOS 6 참조 : http://blog.naver.com/PostView.nhn?blogId=cjw8349&logNo=20160687770 참조 : http://www.server-world.info/en/note?os=CentOS_6&p=tomcat7 CentOS is a stable Linux distribution suited for running web application servers such as […]

vsftpd FTP를 위한 Port 변경 방법

2012년 08월 09일 golgol 0

Remark : FTP 포트로 54021 을 사용하고, FTP-Data 포트로 60019~20 을사용하도록 설정해 보자. 서버 방화벽에서 54021, 60019:60023, port가 열려 있어야 한다.Data 포트 60019 하나로도 사용가능 […]

chmod

2012년 08월 09일 golgol 0

0 = no permissions whatsoever; this person cannot read, write, or execute the file 1 = execute only 2 = write only 3 = write […]

[centos] vsftpd 설치

2012년 08월 09일 golgol 0

vsftpd 설치 vsftp 현황 확인

vsftpd 설치

아래 설치 정보에 정리된 블랙 리스트에서 ftp를 사용할 사용자를 빼준다. vi /etc/vsftpd/ftpusers vi /etc/vsftpd/user_list 방화벽에서 20, […]

httpd mysql php 설치 및 세팅

2012년 08월 09일 golgol 0

일단 설치는 알아서들 잘했다고 간주하고 인터넷이 되는지 확인 해보자 그래야 yum이던 뭐든 할것이다. 구글사마께 핑을 드려보자. # ping -c3 google.com 언노운이거나 하면 아래와 같이 파일을 열어서 […]

보안관련 및 기본명령

2012년 08월 09일 golgol 0

<보안관련 및 기본명령> 1.chmod 700변경하기 본 권한변경 목적은 계정을 통하지 않은 불법적인 접근을 막기 위한 방법으로 가능한 필요하지 않은 파일들의 권한을 변경해 주시기 바랍니다. 특히 […]

vsftpd 환경 설정

2012년 08월 09일 golgol 0

vsftpd 환경 설정 <– 미설치시 # yum install vsftpd php 설치 yum -y install php-gd php-imap php-mbstring php-mysql vi /etc/httpd/conf/httpd.conf DirectoryIndex index.html index.htm index.php /etc/vsftpd/vsftpd.conf 파일을 […]

계정추가 삭제

2012년 08월 08일 golgol 0

0. 계정 검색 -> grep test /etc/passwd 1. 계정추가 $> useradd -u [유저ID] -g [그룹ID or 그룹명] -s [사용되는 SHELL] -d [유저 Home 디렉토리] 계정이름 […]